/* =====================================================
   SMS Go SaaS - Main Stylesheet
   Brand Colors:
   - Blue (SMS): #1a73e8, #0d47a1
   - Green (GO): #34a853, #1e8e3e
   - Orange (Accent): #f59e0b, #ea580c
   ===================================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #1e293b;
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .sms {
    color: #ffffff;
}

.logo-text .go {
    color: #34a853;
}

/* Header metrics styling */
.header-metrics {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.metric-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.metric-box:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.funds-box {
    /* Color set dynamically via style attribute */
}

.members-box {
    color: #ffffff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-metrics {
        order: 2;
        gap: 0.5rem;
    }
    
    .user-menu {
        order: 3;
    }
    
    .logo img {
        height: 32px;
    }
}

/* =====================================================
   Layout & Containers
   ===================================================== */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}

.btn:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1e3a8a 100%);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e8e3e 0%, #166534 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

/* Orange accent button for important actions */
.btn-accent, .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.btn-accent:hover, .btn-warning:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Blue button option */
.btn-info {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #1e3a8a 100%);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

/* Danger/Cancel button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 14px;
}

/* =====================================================
   Forms
   ===================================================== */
.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

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

.help-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* =====================================================
   Flash Messages
   ===================================================== */
.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #34a853;
}

.flash-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.flash-warning {
    background: #fffbeb;
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #1a73e8;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Dashboard Specific
   ===================================================== */
.welcome {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Colored left border accent for stat cards */
.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.stat-card.stat-success::before {
    background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%);
}

.stat-card.stat-warning::before {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.stat-card.stat-info::before {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.stat-icon.icon-blue {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.stat-icon.icon-green {
    background: rgba(52, 168, 83, 0.1);
    color: #34a853;
}

.stat-icon.icon-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-icon.icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1e293b;
}

.stat-label {
    color: #64748b;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.actions h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #1e293b;
    font-size: 1.25rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    justify-content: center;
}

/* Dashboard action cards — blue hover instead of green */
.dash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: #4a5568;
    background: #f8fafc;
    border: 2px solid #1a73e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dash-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1e3a8a 100%);
    transition: left 0.3s ease;
    z-index: 1;
}

.dash-action:hover::before {
    left: 0;
}

.dash-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.25);
    color: white;
    border-color: #0d47a1;
}

/* Orange accent dashboard action buttons */
.dash-action.action-accent {
    border-color: #f59e0b;
}

.dash-action.action-accent::before {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #c2410c 100%);
}

.dash-action.action-accent:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    border-color: #ea580c;
}

/* Blue dashboard action buttons */
.dash-action.action-info {
    border-color: #1a73e8;
}

.dash-action.action-info::before {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1e3a8a 100%);
}

.dash-action.action-info:hover {
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.25);
    border-color: #0d47a1;
}

/* LEGACY: Keep .action-btn as alias for .dash-action for backward compat */
.action-buttons .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: #4a5568;
    background: #f8fafc;
    border: 2px solid #1a73e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-buttons .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1e3a8a 100%);
    transition: left 0.3s ease;
    z-index: 1;
}

.action-buttons .action-btn:hover::before {
    left: 0;
}

.action-buttons .action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.25);
    color: white;
    border-color: #0d47a1;
}

.action-buttons .action-btn.action-accent {
    border-color: #f59e0b;
}

.action-buttons .action-btn.action-accent::before {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #c2410c 100%);
}

.action-buttons .action-btn.action-accent:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    border-color: #ea580c;
}

.action-buttons .action-btn.action-info {
    border-color: #1a73e8;
}

.action-buttons .action-btn.action-info::before {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1e3a8a 100%);
}

.action-buttons .action-btn.action-info:hover {
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.25);
    border-color: #0d47a1;
}

.action-icon,
.action-label {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.action-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

/* =====================================================
   Event Creation Specific
   ===================================================== */
.breadcrumb {
    margin-bottom: 1rem;
    color: #64748b;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.info-box h4 {
    margin: 0 0 0.5rem 0;
    color: #1e40af;
}

.info-box p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9rem;
}

.info-box.info-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #34a853;
}

.info-box.info-success h4,
.info-box.info-success p {
    color: #166534;
}

.info-box.info-warning {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}

.info-box.info-warning h4,
.info-box.info-warning p {
    color: #b45309;
}

.threshold-display {
    background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.threshold-number {
    font-size: 2rem;
    font-weight: bold;
}

.threshold-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.preview-section {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.message-preview {
    background: #1e293b;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-line;
}

.expandable {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.expandable:hover {
    border-color: #cbd5e1;
}

.expandable-header {
    background: #f8fafc;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.expandable-header:hover {
    background: #f1f5f9;
}

.expandable-content {
    padding: 1rem;
    display: none;
}

.expandable.expanded .expandable-content {
    display: block;
}

.expandable.expanded .expandable-header {
    border-radius: 8px 8px 0 0;
}

/* =====================================================
   Authentication Pages
   ===================================================== */
.auth-container {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 500px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 50px;
    width: auto;
}

.auth-logo h1 {
    margin: 0;
    color: #1e293b;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* =====================================================
   Tables
   ===================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

tr:hover {
    background: #f8fafc;
}

/* =====================================================
   Progress Bars
   ===================================================== */
.progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.progress-fill.progress-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.progress-fill.progress-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* =====================================================
   Badges & Tags
   ===================================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .action-buttons .action-btn,
    .dash-action {
        padding: 1rem 0.5rem;
        min-height: 80px;
    }
    
    .action-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .action-label {
        font-size: 0.75rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card:hover {
        transform: none;
    }
    
    .auth-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-buttons .action-btn,
    .dash-action {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        min-height: 60px;
        text-align: left;
    }
    
    .action-icon {
        font-size: 1.25rem;
        margin-bottom: 0;
        margin-right: 0.75rem;
    }
    
    .action-label {
        font-size: 0.875rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .action-buttons {
        grid-template-columns: repeat(5, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-blue { color: #1a73e8; }
.text-green { color: #34a853; }
.text-orange { color: #f59e0b; }
.text-red { color: #ef4444; }
.text-gray { color: #64748b; }

.bg-blue { background-color: #1a73e8; }
.bg-green { background-color: #34a853; }
.bg-orange { background-color: #f59e0b; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* =====================================================
   Tooltips
   ===================================================== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* =====================================================
   DROPDOWN MENU
   ===================================================== */

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 210px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.user-dropdown-menu a:hover {
    background: #f1f5f9;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.25rem 0;
}

.dropdown-disabled {
    color: #9ca3af !important;
    pointer-events: none;
    cursor: default;
    font-style: italic;
}

.dropdown-disabled::after {
    content: " (coming soon)";
    font-size: 0.75rem;
}

.dropdown-logout {
    color: #dc2626 !important;
}

.dropdown-logout:hover {
    background: #fef2f2 !important;
}