/* Modern Financial App CSS - Inspired by Rocket Money */

/* CSS Variables for consistent theming */
:root {
    /* Primary Colors - Dark Gray and Orange Theme */
    --primary-orange: rgb(255, 165, 0);
    --primary-orange-hex: #ffa500;
    
    /* Dark Gray Variations */
    --dark-bg: #1C1C1C;
    --dark-gray-100: #2A2A2A;
    --dark-gray-200: #3A3A3A;
    --dark-gray-300: #4A4A4A;
    --dark-gray-400: #5A5A5A;
    --dark-gray-500: #6A6A6A;
    
    /* Orange Variations */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #ffa500;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    
    /* Input Colors */
    --input-bg: #352F27;
    --input-border: #5D5542;
    --hover-row: #4A330C;
    
    /* Button Colors */
    --btn-bg: #000000;
    --btn-border: #5D5542;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-muted: #999999;
    
    /* Accent Colors */
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-white);
    background-color: var(--dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--dark-bg);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-gray-100) 50%, var(--dark-bg) 100%);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    border-right: 1px solid var(--input-border);
}

.sidebar-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    height: 40px;
    width: auto;
    /* Remove the white filter since your logo has colors */
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 0 var(--spacing-md);
}

.nav-item {
    margin-bottom: var(--spacing-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--primary-orange);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background-color: var(--hover-row);
    color: var(--text-white);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--hover-row), var(--dark-gray-200));
    color: var(--text-white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-white);
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.user-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-white);
}

.user-role {
    font-size: 12px;
    color: var(--text-gray);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--dark-bg);
    background-image: url('/images/team_louish_bg.gif');
    background-repeat: repeat;
    background-position: 0 0;
    background-attachment: fixed;
}

/* Top Header */
.top-header {
    background: rgba(58, 58, 58, 0.90);
    border-bottom: 1px solid var(--input-border);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: var(--gray-100);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-icon {
    background: none;
    border: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-icon:hover {
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: none;
    border: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-menu-toggle:hover {
    background-color: var(--gray-100);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--primary-orange) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background-color: var(--hover-row);
    color: var(--primary-orange) !important;
}

.user-menu-item i {
    width: 16px;
    text-align: center;
    color: var(--text-white) !important;
    font-size: 14px;
}

.user-menu-item:hover i {
    color: var(--text-white) !important;
}

.user-menu-divider {
    height: 1px;
    background-color: var(--input-border);
    margin: 4px 0;
}

/* Ensure dropdown doesn't affect layout */
.user-menu {
    position: relative;
    z-index: 1000;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(42, 42, 42, 0.98);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    max-width: 400px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--input-border);
    background: rgba(58, 58, 58, 0.9);
}

.notification-header h4 {
    margin: 0;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.btn-small:hover {
    background: var(--orange-600);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--input-border);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: var(--hover-row);
}

.notification-item.unread {
    background-color: rgba(255, 165, 0, 0.1);
    border-left: 3px solid var(--primary-orange);
}

.notification-item.priority-urgent {
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 3px solid var(--accent-red);
}

.notification-item.priority-high {
    background-color: rgba(255, 165, 0, 0.1);
    border-left: 3px solid var(--primary-orange);
}

.notification-content {
    flex: 1;
    width: 100%;
}

.notification-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.notification-title {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    color: var(--text-muted);
    font-size: 11px;
}

.notification-action {
    margin-top: 8px;
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    font-size: 12px;
}

.btn-icon-small:hover {
    background-color: var(--hover-row);
    color: var(--text-white);
}

.notification-empty {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* Notification Page Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.page-title h1 {
    margin: 0;
    color: var(--text-white);
    font-size: 28px;
    font-weight: 600;
}

.page-title p {
    margin: 4px 0 0 0;
    color: var(--text-gray);
    font-size: 14px;
}

.notification-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: rgba(42, 42, 42, 0.90);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notifications-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.notification-card {
    background: rgba(42, 42, 42, 0.90);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all 0.2s ease;
}

.notification-card:hover {
    background: rgba(58, 58, 58, 0.90);
}

.notification-card.unread {
    border-left: 4px solid var(--primary-orange);
    background: rgba(255, 165, 0, 0.05);
}

.notification-card.priority-urgent {
    border-left: 4px solid var(--accent-red);
    background: rgba(220, 38, 38, 0.05);
}

.notification-card.dismissed {
    opacity: 0.7;
    background: rgba(42, 42, 42, 0.60) !important;
}

.notification-card.dismissed .notification-title {
    color: var(--text-muted);
}

/* Condensed notification card for dismissed notifications */
.notification-card.condensed {
    padding: 8px 12px;
    margin-bottom: 8px;
}

.notification-card.condensed .notification-header {
    padding: 4px 8px;
    margin-bottom: 4px;
}

.notification-card.condensed .notification-content {
    padding: 4px 8px;
    padding-top: 6px;
}

.notification-card.condensed .notification-content p {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.notification-card.condensed .notification-footer {
    padding: 4px 8px;
}

.notification-card.condensed .notification-action {
    margin-top: 4px;
    margin-bottom: 6px;
}

.notification-card.condensed .notification-controls {
    gap: 4px;
}

.notification-card.condensed .btn-small {
    padding: 4px 8px;
    font-size: 11px;
    height: 24px;
}

.notification-header {
    padding: 8px 12px;
    border-bottom: 1px solid var(--input-border);
    background: rgba(58, 58, 58, 0.90) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-footer {
    padding: 8px 12px 10px 12px;
    border-top: 1px solid var(--input-border);
    background: rgba(58, 58, 58, 0.90) !important;
}

.notification-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.notification-title i {
    color: var(--primary-orange);
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.notification-time {
    color: var(--text-muted);
    font-size: 12px;
}

.notification-priority {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-priority.priority-urgent {
    background: var(--accent-red);
    color: white;
}

.notification-priority.priority-high {
    background: var(--primary-orange);
    color: white;
}

.notification-priority.priority-medium {
    background: var(--text-muted);
    color: white;
}

.notification-priority.priority-low {
    background: var(--text-muted);
    color: white;
}

.notification-content {
    padding: 16px 12px;
    padding-top: 20px;
}

.notification-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.notification-action {
    margin-top: 8px;
    margin-bottom: 12px;
}

/* Fix action button styling - make them darker instead of transparent */
.notification-action .btn-primary {
    background-color: var(--btn-bg) !important;
    color: var(--text-white) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.notification-action .btn-primary:hover {
    background-color: #cc6600 !important;
    border-color: var(--primary-orange) !important;
    color: var(--text-white) !important;
    text-decoration: none !important;
}

.notification-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacing-sm);
}

.notification-controls form {
    display: inline-block;
    margin: 0;
}

.notification-response {
    background: rgba(58, 58, 58, 0.5);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
}

.responses-list {
    margin-top: var(--spacing-md);
}

.responses-list h5 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
}

.response-item {
    background: rgba(42, 42, 42, 0.5);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.response-header {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    margin-bottom: 4px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    position: relative !important;
}

.response-header strong {
    color: var(--text-white);
    font-size: 13px;
    flex-shrink: 0;
    margin-right: 8px;
    max-width: 60%;
    position: absolute;
    left: 0;
    top: 0;
}

.response-time {
    color: var(--text-muted);
    font-size: 11px;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
}

.response-text {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
    clear: both;
}

.admin-reply-form {
    background: rgba(42, 42, 42, 0.3);
    border-radius: 4px;
    padding: 8px;
}

.admin-reply-form input[type="text"] {
    font-size: 12px;
    padding: 6px 8px;
}

.admin-reply-form .btn-small {
    font-size: 11px;
    padding: 6px 8px;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) * 2;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.empty-state h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-gray);
    max-width: 400px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: var(--spacing-xl);
    background-color: var(--dark-bg);
    background-image: url('/images/team_louish_bg.gif');
    background-repeat: repeat;
    background-position: 0 0;
    background-attachment: fixed;
}

/* Cards */
.card {
    background: rgba(42, 42, 42, 0.90) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--input-border);
    overflow: hidden;
}

/* Cards with no padding content */
.card-no-padding {
    background: rgba(42, 42, 42, 0.90);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--input-border);
    overflow: hidden;
}

.card-no-padding .card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--input-border);
    background-color: rgba(58, 58, 58, 0.90);
    border-radius: 0; /* No rounded corners on header */
}

.card-no-padding .card-body {
    padding: var(--spacing-xl); /* Add padding back for content */
    background-color: transparent !important;
}

/* Only remove padding for tables within card-no-padding */
.card-no-padding .card-body .table-container {
    margin: calc(-1 * var(--spacing-xl)); /* Negative margin to extend table to edges */
}

.card-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--input-border);
    background-color: rgba(58, 58, 58, 0.90) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
    background-color: transparent !important;
}

.card-body {
    padding: var(--spacing-xl);
    background-color: transparent !important;
}

/* Simplified card styles */

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 0; /* No rounded corners for tables in cards */
    border: none; /* Remove all borders to avoid double borders with card */
    background: transparent !important; /* No background */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    background-color: transparent !important; /* No background on headers */
    color: var(--primary-orange);
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--input-border);
    border-top: none; /* Remove top border to avoid double border with card header */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--input-border);
    border-left: none; /* Remove left border to avoid double border with card */
    border-right: none; /* Remove right border to avoid double border with card */
    color: var(--text-white);
    background-color: transparent !important; /* No background on cells */
}

tr:hover {
    background-color: rgba(74, 51, 12, 0.90); /* Make hover translucent too */
}

tr:last-child td {
    border-bottom: none;
}

/* Status Indicators */
.status-positive {
    color: var(--accent-green);
    font-weight: 600;
}

.status-negative {
    color: var(--accent-red);
    font-weight: 600;
}

.status-pending {
    background: linear-gradient(135deg, var(--dark-gray-200), var(--dark-gray-300));
    color: var(--primary-orange);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--input-border);
}

.status-posted {
    background: linear-gradient(135deg, var(--dark-gray-200), var(--dark-gray-300));
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--input-border);
}

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 80px;
    min-height: 80px;
    text-align: center;
}

.btn i {
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
}

.btn span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

/* Button Container */
.btn-container {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

/* Normal Button (no icon) */
.btn-normal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: var(--btn-bg);
    color: var(--text-white);
    border: 1px solid var(--btn-border);
    height: 32px;
    min-width: auto;
    min-height: auto;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--text-white);
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-md);
    padding: 8px 12px 10px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--dark-gray-200);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background-color: var(--dark-gray-200);
    color: var(--text-white);
    border: 1px solid var(--input-border);
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.btn-secondary:hover {
    background-color: var(--dark-gray-300);
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-full-width {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none !important;
}

/* Responsive User Management Cards */
.responsive-user-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.user-card {
    background: rgba(42, 42, 42, 0.60);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-card:hover {
    background: rgba(58, 58, 58, 0.70);
    border-color: var(--primary-orange);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left !important;
}

.user-name {
    margin: 0;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left !important;
}

.user-email {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left !important;
}

.user-status {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.verified {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.unverified {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.current {
    background: rgba(255, 165, 0, 0.2);
    color: var(--primary-orange);
}

.user-card-details {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
    min-width: 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.detail-value {
    color: var(--text-white);
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Responsive date/time elements */
.date-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.date-main {
    color: var(--text-white);
    font-size: 12px;
    font-weight: 500;
}

.date-secondary {
    color: var(--text-muted);
    font-size: 9px;
}

/* Stack status badges and action buttons when space gets tight */
@media (max-width: 1350px) {
    .user-status {
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
    }
    
    .user-card-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .user-card-actions .btn-small {
        width: 100%;
        min-width: auto;
        padding: 4px 8px;
        height: 28px;
        font-size: 11px;
    }
}

.user-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.user-card-actions .btn-small {
    min-width: 60px;
}

/* Search and Filter Bar */
.admin-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box input {
    width: 100% !important;
    padding: 8px 12px 8px 35px !important;
    background: rgba(42, 42, 42, 0.60) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 6px !important;
    color: var(--text-white) !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.search-box i {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--text-muted) !important;
    font-size: 14px !important;
    z-index: 1 !important;
}

.bulk-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bulk-actions .btn-small {
    min-width: auto;
}

/* Compose Message Popup */
.compose-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.compose-popup.active {
    display: flex;
}

.compose-form {
    background: var(--dark-gray-200);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.compose-form h3 {
    margin: 0 0 16px 0;
    color: var(--text-white);
    font-size: 18px;
}

.compose-form .form-group {
    margin-bottom: 16px;
}

.compose-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
}

.compose-form input,
.compose-form select,
.compose-form textarea {
    width: 100%;
    padding: 8px 12px;
    background: rgba(42, 42, 42, 0.60);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 14px;
}

.compose-form textarea {
    min-height: 100px;
    resize: vertical;
}

.compose-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    /* Fix checkbox alignment - left justify */
    .user-card > input[type="checkbox"] {
        align-self: flex-start;
        margin-bottom: 8px;
    }
    
    .user-card-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    
    .user-info {
        flex: 1;
        gap: 6px;
        text-align: left; /* Left justify text */
    }
    
    .user-name {
        font-size: 18px;
        text-align: left;
    }
    
    .user-email {
        font-size: 14px;
        text-align: left;
    }
    
    .user-status {
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .user-card-details {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
    }
    
    .detail-item {
        flex: 1;
        min-width: 0;
    }
    
    .user-card-actions {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .user-card-actions .btn-small {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .bulk-actions {
        justify-content: space-between;
        flex-direction: row;
    }
    
    .compose-form {
        width: 95%;
        padding: 16px;
    }
    
    /* Keep date font sizes consistent - no shrinking since they're stacked */
    .date-main {
        font-size: 12px !important;
    }
    
    .date-secondary {
        font-size: 9px !important;
    }
    
    /* Additional mobile improvements */
    .status-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .detail-label {
        font-size: 10px;
    }
    
    .detail-value {
        font-size: 11px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .user-card {
        padding: 10px;
        gap: 10px;
    }
    
    .user-card-header {
        gap: 8px;
    }
    
    .user-name {
        font-size: 16px;
    }
    
    .user-email {
        font-size: 12px;
    }
    
    .user-card-details {
        gap: 12px;
    }
    
    .user-card-actions {
        gap: 6px;
    }
    
    .user-card-actions .btn-small {
        min-width: 70px;
        font-size: 11px;
    }
}

/* Tab-style buttons with gradient line indicator */
.btn-tab {
    padding: 8px 12px;
    font-size: 12px;
    background: var(--dark-gray-200);
    color: var(--text-white);
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    position: relative;
    transition: all 0.2s ease;
}

.btn-tab:hover {
    background: var(--dark-gray-300);
    color: var(--text-white);
}

.btn-tab.active {
    background: var(--dark-gray-200);
    color: var(--text-white);
    border-bottom: 3px solid transparent;
}

.btn-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), #ff8c00);
    border-radius: 2px 2px 0 0;
}

/* Tab container for better visual grouping */
.tab-container {
    display: flex;
    gap: 2px;
    align-items: center;
    border-bottom: 1px solid var(--input-border);
    margin-bottom: 20px;
    padding-bottom: 0;
}

.tab-container .btn-tab {
    border-radius: 4px 4px 0 0;
    margin-right: 0;
}

.tab-container .btn-tab:not(:last-child) {
    margin-right: 0;
}

.btn-tab i {
    margin-right: 4px;
    font-size: 12px;
}

.btn-small i {
    margin-right: 4px;
    font-size: 12px;
}

.btn-normal i {
    margin-right: 4px;
    font-size: 12px;
}

.btn-primary i {
    margin-right: 4px;
    font-size: 12px;
}

.btn-secondary i {
    margin-right: 4px;
    font-size: 12px;
}

.btn-success i {
    margin-right: var(--spacing-sm);
    font-size: 14px;
}

.btn-danger i {
    margin-right: var(--spacing-sm);
    font-size: 14px;
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.summary-card {
    background: rgba(42, 42, 42, 0.90);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--input-border);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--orange-600));
}

.summary-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.summary-card-change {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.summary-card-change.positive {
    color: var(--accent-green);
}

.summary-card-change.negative {
    color: var(--accent-red);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-600);
}

.footer-right {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-right a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--primary-orange);
}

/* Form Inputs */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="date"], 
textarea, 
select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="number"]:focus, 
input[type="date"]:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

input[type="text"]::placeholder, 
input[type="email"]::placeholder, 
input[type="password"]::placeholder, 
textarea::placeholder {
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Onboarding Grid */
.onboarding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Onboarding Icon Fix */
.onboarding-icon {
    background: var(--primary-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0; /* Prevent shrinking */
}

.onboarding-icon i {
    font-size: 18px;
}

/* Clean Mobile Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: var(--spacing-lg);
    }
    
    .top-header {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack onboarding buttons on mobile */
    .onboarding-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack button containers on mobile */
    .btn-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-container a {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Admin Tabs */
.admin-tabs {
    margin-bottom: var(--spacing-lg);
}

.admin-tabs .tab-container {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--input-border);
    padding-bottom: 0;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Institution expandable rows */
.institution-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.institution-row:hover {
    background-color: var(--dark-gray-100) !important;
}

.account-details-row {
    background-color: var(--dark-gray-100) !important;
}

.account-details-row td {
    border-top: none !important;
}

.expand-icon {
    transition: transform 0.2s ease;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.account-card {
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 15px;
    transition: border-color 0.2s;
}

.account-card:hover {
    border-color: var(--primary-orange);
}

/* Success message animations */
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(0); opacity: 1; }
    to { transform: translateX(-50%) translateY(-100%); opacity: 0; }
}
