/* ============================================
   SIM TECH TRACKER - Dashboard Styles
   ============================================ */

/* Dashboard Layout */
.dashboard-page {
    min-height: 100vh;
    background: var(--color-bg-primary);
    padding-top: var(--header-height);
}

/* Dashboard Header */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.dashboard-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header .container>div {
    display: flex;
    align-items: center;
}

.dashboard-logo {
    height: 60px;
    width: auto;
    display: block;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: var(--text-base);
}

.user-email {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.header-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    margin-right: var(--space-3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


/* Dashboard Content */
.dashboard-content {
    padding: var(--space-8) 0;
}

.dashboard-title {
    margin-bottom: var(--space-8);
}

.dashboard-title h1 {
    font-size: var(--text-4xl);
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Profile Section */
.profile-content {
    display: grid;
    gap: var(--space-6);
}

.profile-info {
    display: grid;
    gap: var(--space-4);
}

.profile-field {
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.profile-field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field p {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin: 0;
}

/* App Management */
.app-management {
    padding: var(--space-2) 0;
}

.app-management p {
    margin-bottom: var(--space-6);
    color: var(--color-text-secondary);
}

.app-management strong {
    color: var(--color-accent-yellow);
    font-weight: 600;
}

/* Stats Grid (Optional Enhancement) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: var(--color-accent-blue);
    transform: translateY(-2px);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-bottom: var(--space-2);
}

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

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.action-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.action-card:hover {
    border-color: var(--color-accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 179, 228, 0.1), rgba(255, 200, 69, 0.1));
    border-radius: var(--radius-lg);
    color: var(--color-accent-blue);
}

.action-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.action-card p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-user {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .user-info {
        display: none;
    }

    .dashboard-title h1 {
        font-size: var(--text-3xl);
    }

    .profile-info {
        grid-template-columns: 1fr;
    }
}

/* Card Styles - Consistent, No Hover */
.card {
    background: rgba(30, 36, 52, 0.6);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: none;
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.card-body {
    padding: var(--space-6);
}

/* Section Separator */
.section-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: var(--space-6) 0;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

/* Card Section Styles */
.card-section {
    padding: var(--space-6) 0;
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
}

.text-muted {
    color: var(--color-text-muted);
}


/* Avatar Styles */
.profile-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.profile-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.avatar-container:hover .profile-avatar {
    transform: scale(1.1);
}

/* Button Styles - Consistent Design */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: rgba(251, 146, 60, 0.15);
    color: #FB923C;
    border-color: rgba(251, 146, 60, 0.5);
}

.btn-primary:hover {
    background: rgba(251, 146, 60, 0.3);
    border-color: #FB923C;
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.5);
    color: #FFA55C;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: 0.45rem 1.2rem;
    font-size: 0.8125rem;
}

/* Form Styles for Inline Editing */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: rgba(255, 255, 255, 0.05);
    /* Slight highlight */
}

.w-full {
    width: 100%;
}

.separator {
    height: 1px;
    background: var(--color-border);
    margin: 1.5rem 0;
}

/* Profile Layout Refactor */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    /* responsive */
    gap: 2rem;
    align-items: flex-start;
}

.profile-inputs {
    flex: 2;
    min-width: 250px;
}

.profile-avatar-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    gap: 1rem;
}

/* Adjust avatar container in new context */
.profile-avatar-section .avatar-container {
    margin: 0;
}

/* Adjust Save Button */
#save-profile-btn {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column-reverse;
        /* Inputs top, avatar bottom? Or standard column */
        flex-direction: column;
    }

    .profile-avatar-section {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Input Group Styles */
.input-group {
    display: flex;
    align-items: center;
}

.input-group .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-group .btn-icon {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-left: none;
    padding: 0.75rem 1rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0;
}

.input-group .btn-icon:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.input-group .btn-icon:hover {
    background: var(--color-bg-hover);
}

#confirm-token {
    width: 80%;
    margin: 1rem auto;
    text-align: center;
    font-family: monospace;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    white-space: nowrap;
}

/* Role Badges */
.badge-role-user {
    background: rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.badge-role-developer {
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-role-moderator {
    background: rgba(14, 165, 233, 0.25);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.badge-role-betatester {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-role-admin {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Status Badges */
.badge-status-active {
    background: rgba(34, 197, 94, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-status-deactivated,
.badge-status-banned {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-status-inactive {
    background: rgba(100, 116, 139, 0.25);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.4);
}

/* Verified Badge */
.badge-verified-yes {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
}

.badge-verified-no {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Profile Details Spacing */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Danger Zone */
.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-6) !important;
}

.border-danger {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.opacity-20 {
    opacity: 0.2;
}

.bg-dark-subtle {
    background: rgba(0, 0, 0, 0.2);
}

.text-info {
    color: #5eb3e4 !important;
}

.font-bold {
    font-weight: 700;
}

/* ============================================
   Admin Table Styles
   ============================================ */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead {
    background: rgba(94, 179, 228, 0.1);
}

.admin-table thead th {
    padding: var(--space-2);
    text-align: center;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--color-accent-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(94, 179, 228, 0.3);
}

.admin-table tbody tr {
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody td {
    padding: 0.6rem 0.5rem;
    font-size: 0.725rem;
    color: var(--color-text-primary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Verification Status Badges */
.status-badge.verified {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-badge.unverified {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Account Status Badges */
.status-badge.active {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-badge.inactive {
    background: rgba(156, 163, 175, 0.15);
    color: #9CA3AF;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Role Badges */
/* Online Status Indicator */
.online-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.online-indicator.online {
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.online-indicator.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.admin-table tbody td {
    padding: 0.6rem 0.5rem;
    font-size: 0.725rem;
    color: var(--color-text-primary);
    vertical-align: middle;
}

.status-badge.role-user {
    background: rgba(94, 179, 228, 0.15);
    color: #5EB3E4;
    border: 1px solid rgba(94, 179, 228, 0.3);
}

/* App Active Badges */
.status-badge.app-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-badge.app-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Inline Select Dropdowns */
.inline-select {
    display: inline-flex;
    align-items: center;
    padding: 3px 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-position: right 0.35rem center;
    background-repeat: no-repeat;
    background-size: 10px;
    padding-right: 1.25rem;
    min-width: 80px;
}

.inline-select:hover {
    opacity: 0.8;
}

.inline-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 179, 228, 0.3);
}

.inline-select.updating {
    opacity: 0.5;
    cursor: wait;
}

/* Verified Checkmark */
.verified-check {
    display: inline;
    margin-right: var(--space-1);
    color: #34D399;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Systems Select Styling */
.inline-select.systems-select {
    background: rgba(94, 179, 228, 0.15);
    color: #5EB3E4;
    border-color: rgba(94, 179, 228, 0.3);
    min-width: 50px;
}

.inline-select.systems-select:hover {
    background: rgba(94, 179, 228, 0.25);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-1);
    justify-content: flex-start;
}

.action-buttons .btn {
    min-width: 45px;
    padding: 4px 6px;
    font-size: 0.7rem;
}

/* Status Select Styling */
.inline-select.status-select option[value="active"],
.inline-select.status-select:has(option[value="active"]:checked) {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.3);
}

.inline-select.status-select option[value="inactive"],
.inline-select.status-select:has(option[value="inactive"]:checked) {
    background: rgba(156, 163, 175, 0.15);
    color: #9CA3AF;
    border-color: rgba(156, 163, 175, 0.3);
}

.inline-select.status-select option[value="suspended"],
.inline-select.status-select:has(option[value="suspended"]:checked) {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border-color: rgba(251, 191, 36, 0.3);
}

.inline-select.status-select option[value="banned"],
.inline-select.status-select:has(option[value="banned"]:checked) {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Role Select Styling */
.inline-select.role-select option[value="admin"],
.inline-select.role-select:has(option[value="admin"]:checked) {
    background: rgba(251, 146, 60, 0.15);
    color: #FB923C;
    border-color: rgba(251, 146, 60, 0.3);
}

.inline-select.role-select option[value="user"],
.inline-select.role-select:has(option[value="user"]:checked) {
    background: rgba(94, 179, 228, 0.15);
    color: #5EB3E4;
    border-color: rgba(94, 179, 228, 0.3);
}

.inline-select.role-select option[value="developer"],
.inline-select.role-select:has(option[value="developer"]:checked) {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
    border-color: rgba(168, 85, 247, 0.3);
}

.inline-select.role-select option[value="tester"],
.inline-select.role-select:has(option[value="tester"]:checked) {
    background: rgba(34, 211, 238, 0.15);
    color: #22D3EE;
    border-color: rgba(34, 211, 238, 0.3);
}

/* App Select Styling */
.inline-select.app-select option[value="true"],
.inline-select.app-select:has(option[value="true"]:checked) {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.3);
}

.inline-select.app-select option[value="false"],
.inline-select.app-select:has(option[value="false"]:checked) {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .admin-table {
        font-size: var(--text-xs);
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: var(--space-2) var(--space-3);
    }

    .status-badge,
    .inline-select {
        font-size: 0.65rem;
        padding: 2px var(--space-2);
    }
}

/* Edit User Modal Styles */
.edit-user-popup {
    background: var(--color-bg-card) !important;
    border: 1px solid var(--color-border) !important;
}

.edit-user-modal h3 {
    color: var(--color-accent-blue-light);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
    text-align: center;
}

.user-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--space-2);
}

.data-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.data-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-field input {
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-family: monospace;
}

.data-field input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-6);
    padding: var(--space-4);
    gap: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-btn {
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(94, 179, 228, 0.15);
    border-color: rgba(94, 179, 228, 0.3);
    color: var(--color-accent-blue-light);
}

.pagination-btn.active {
    background: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: var(--space-3);
    }
}
/* ============================================
   Flight Logs Styles
   ============================================ */

.flight-search-container #flight-search-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

#clear-flight-search-btn:hover {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.flight-logs-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.flight-logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 36, 52, 0.4);
}

.flight-logs-table thead {
    background: rgba(94, 179, 228, 0.1);
}

.flight-logs-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-accent-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(94, 179, 228, 0.3);
}

.flight-logs-table tbody tr {
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.flight-logs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.flight-logs-table tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    vertical-align: middle;
}

.flight-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
    color: #7dd3fc;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Roboto Mono', 'Courier New', monospace;
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(125, 211, 252, 0.25);
}

.airport-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.airport-name {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    font-weight: 500;
}

.airport-code {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

/* Flight Detail Modal */
.flight-detail-modal .swal2-html-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Responsive Flight Logs */
@media (max-width: 768px) {
    .flight-logs-table {
        font-size: 0.75rem;
    }
    
    .flight-logs-table thead th,
    .flight-logs-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .airport-name {
        font-size: 0.75rem;
    }
    
    .airport-code {
        font-size: 0.7rem;
    }
}

/* PIREP Badge and Form Styles */
.flight-id-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.pirep-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    line-height: 1.2;
}

.pirep-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.pirep-form-group label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.pirep-input {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.pirep-input:focus {
    border-color: #38bdf8;
}

.pirep-upload-zone {
    border: 2px dashed #475569;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pirep-upload-zone:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.pirep-preview-thumb {
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #334155;
    cursor: pointer;
    transition: transform 0.2s;
}

.pirep-preview-thumb:hover {
    transform: scale(1.03);
}

.pirep-diff-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.pirep-diff-old {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    text-decoration: line-through;
}

.pirep-diff-new {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-weight: 600;
}

/* ============================================
   User Messages & Notification Bell Styles
   ============================================ */
.notification-bell-container {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-color: #38bdf8;
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1f2e;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Messages Card & List */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.message-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.message-item.unread {
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid #38bdf8;
}

.message-item.category-pirep_accepted {
    border-left: 3px solid #22c55e;
}

.message-item.category-pirep_rejected {
    border-left: 3px solid #ef4444;
}

.message-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-icon-box.pirep-accepted {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.message-icon-box.pirep-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.message-icon-box.direct-message {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.message-icon-box.system {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.message-title {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

.message-time {
    font-size: 12px;
    color: #64748b;
}

.message-body-snippet {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.message-meta-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* ============================================
   Compact Profile Header Styles
   ============================================ */
.compact-profile-card {
    background: rgba(30, 36, 52, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.compact-profile-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 22px;
    flex-wrap: wrap;
}

.compact-avatar-col {
    position: relative;
    flex-shrink: 0;
}

.compact-avatar-container {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50%;
    border: 2px solid rgba(251, 146, 60, 0.5);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.25);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.compact-avatar-container .profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-remove-avatar-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 1px solid #fff;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.15s ease;
}

.compact-remove-avatar-btn:hover {
    transform: scale(1.15);
}

.compact-details-col {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.compact-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-user-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
    line-height: 1.2;
}

.compact-badges-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.compact-meta-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
}

.meta-label {
    font-weight: 600;
    color: #64748b;
}

.meta-val {
    color: #cbd5e1;
    font-weight: 500;
}

.compact-actions-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.compact-token-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3px 10px;
}

.token-pill-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.compact-token-input {
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 12px;
    font-family: monospace;
    width: 140px;
    padding: 0;
}

.compact-icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 13px;
    border-radius: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.compact-icon-btn:hover {
    color: #fff;
    transform: scale(1.15);
}

.compact-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compact-edit-drawer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 22px;
}

.compact-edit-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .compact-actions-col {
        align-items: flex-start;
        width: 100%;
    }

    .compact-btn-row {
        justify-content: flex-start;
        width: 100%;
    }
}




/* ── FPM Clickable Landing Map Button ───────────────────────────────────────── */
.fpm-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.2;
}

.fpm-badge-btn:hover {
    transform: translateY(-1.5px);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 12px currentColor;
    border-color: currentColor;
}

.fpm-badge-btn:active {
    transform: translateY(0);
}

.fpm-badge-btn .fpm-icon {
    opacity: 0.75;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fpm-badge-btn:hover .fpm-icon {
    opacity: 1;
    transform: scale(1.18);
}

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

.touchdown-modal-popup {
    border: 1px solid rgba(94, 179, 228, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(94, 179, 228, 0.15) !important;
    border-radius: 12px !important;
}
