/* SmartPatrol - Elegant Mobile Design */

/* Custom Font */
@font-face {
    font-family: 'Familjen Grotesk';
    src: url('../fonts/FamiljenGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Familjen Grotesk';
    src: url('../fonts/FamiljenGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Familjen Grotesk';
    src: url('../fonts/FamiljenGrotesk-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Familjen Grotesk';
    src: url('../fonts/FamiljenGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Brand Color Palette */
:root {
    --primary-dark: #101820;
    --primary-purple: #403A60;
    --primary-blue: #3F4D97;
    --accent-blue: #5B6DBE;
    --white: #FFFFFF;

    /* Refined Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Safe Areas for iOS */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-purple) 45%, var(--primary-blue) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle Ambient Glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(91, 109, 190, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(64, 58, 96, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Selection */
::selection {
    background: rgba(91, 109, 190, 0.35);
    color: var(--white);
}

/* ===== LAYOUT ===== */
.container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: calc(80px + var(--safe-bottom));
}

/* ===== TOP HEADER ===== */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(16, 24, 32, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--spacing-md);
    padding-top: calc(var(--spacing-md) + var(--safe-top));
}

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

.header-logo {
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 36px;
}

/* Legacy navbar support */
.navbar {
    background: rgba(16, 24, 32, 0.75) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--spacing-sm) 0 !important;
    padding-top: calc(var(--spacing-sm) + var(--safe-top)) !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.navbar-brand-wrapper {
    text-align: center;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white) !important;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar-brand img {
    height: 28px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

.navbar-brand span {
    margin-top: -2px;
}

/* Top Navigation Tabs */
.navbar-menu {
    display: flex;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 4px;
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    text-decoration: none;
    position: relative;
}

.nav-link i {
    font-size: 1rem;
    transition: var(--transition-normal);
}

.nav-link span {
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, rgba(63, 77, 151, 0.4), rgba(91, 109, 190, 0.25));
    box-shadow: 0 2px 12px rgba(91, 109, 190, 0.2);
}

.nav-link.active i {
    filter: drop-shadow(0 0 6px rgba(91, 109, 190, 0.5));
}

/* ===== BOTTOM NAVIGATION (Mobile) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(16, 24, 32, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-sm);
    padding-bottom: calc(var(--spacing-sm) + var(--safe-bottom));
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.bottom-nav-item {
    flex: 1;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
}

.bottom-nav-item.active {
    color: var(--white);
    background: linear-gradient(135deg, rgba(63, 77, 151, 0.35), rgba(91, 109, 190, 0.2));
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 8px rgba(91, 109, 190, 0.6));
}

/* ===== SUB NAVIGATION ===== */
.sub-nav {
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--spacing-md);
}

.sub-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    text-decoration: none;
}

.sub-nav-item i {
    font-size: 1rem;
}

.sub-nav-item:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
}

.sub-nav-item.active {
    color: var(--white);
    background: linear-gradient(135deg, rgba(63, 77, 151, 0.4), rgba(91, 109, 190, 0.25));
    box-shadow: 0 2px 12px rgba(91, 109, 190, 0.2);
}

.sub-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(91, 109, 190, 0.5));
}

/* ===== PAGE TITLE ===== */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.page-title i {
    font-size: 1.25rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px rgba(91, 109, 190, 0.4));
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.glass-card-title i {
    font-size: 1.125rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 6px rgba(91, 109, 190, 0.4));
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'Familjen Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn i {
    font-size: 1rem;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(63, 77, 151, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
    box-shadow: 0 6px 20px rgba(63, 77, 151, 0.45);
    transform: translateY(-1px);
    color: var(--white);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
    color: var(--white);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
    color: var(--white);
}

/* Light/Ghost Button */
.btn-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid var(--glass-border);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-hover);
    color: var(--white);
}

/* Small Button */
.btn-sm {
    padding: 8px 14px;
    min-height: 36px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* Full Width */
.btn.w-100 {
    width: 100%;
}

/* Delete Button - Compact Icon */
.delete-btn {
    padding: 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: var(--radius-sm) !important;
}

.delete-btn i {
    font-size: 1rem;
    margin: 0;
}

/* ===== FORM CONTROLS ===== */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.form-control {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--white);
    padding: 14px 16px;
    min-height: 48px;
    width: 100%;
    transition: var(--transition-normal);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 109, 190, 0.15);
    color: var(--white);
    outline: none;
}

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

/* File Input */
input[type="file"].form-control {
    padding: 10px 16px;
}

input[type="file"]::file-selector-button {
    font-family: 'Familjen Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    margin-right: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
}

input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
}

/* ===== IMAGE PREVIEW ===== */
.image-preview-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-md);
}

.image-preview-container h6 {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-md);
}

.image-preview-container img {
    border-radius: var(--radius-md);
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ===== PROFILE GRID ===== */
.profile-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
}

.profile-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.profile-name i {
    font-size: 1rem;
    color: var(--accent-blue);
}

.profile-images {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.profile-image-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.profile-image-thumb:hover {
    transform: scale(1.08);
    border-color: var(--accent-blue);
}

/* ===== IMAGE GRID (View Modal) ===== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.image-thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.image-thumbnail:hover {
    border-color: var(--accent-blue);
}

.image-thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.thumbnail-overlay i {
    font-size: 1.25rem;
    color: var(--white);
}

.image-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

/* ===== ALERTS ===== */
.alert {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: var(--spacing-lg);
    margin: var(--spacing-md) 0;
    color: var(--white);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.4);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(251, 191, 36, 0.35);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.35);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.35);
}

/* Floating Alert (Toast) */
.floating-alert {
    position: fixed;
    top: calc(var(--spacing-md) + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    max-width: calc(100% - 32px);
    width: auto;
    min-width: 280px;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== PROGRESS BAR ===== */
.progress {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    height: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

/* ===== BADGES ===== */
.badge {
    font-family: 'Familjen Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue)) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10B981, #059669) !important;
}

.badge.bg-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FBBF24, #F59E0B) !important;
    color: var(--primary-dark) !important;
}

/* ===== HISTORY SECTION ===== */
.history-card {
    padding: var(--spacing-md) !important;
}

.history-card h6 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.history-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
}

.history-item .fw-bold {
    font-size: 0.9375rem;
    font-weight: 600;
}

.history-item small {
    font-size: 0.75rem;
}

/* ===== MODAL ===== */
/* Fix modal blocking issue */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

.modal-dialog {
    position: relative;
    z-index: auto;
}

.modal-content {
    position: relative;
    z-index: auto;
    background: rgba(16, 24, 32, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: var(--spacing-md) var(--spacing-lg);
}

.modal-title {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-sm);
}

.modal-footer .btn {
    flex: 1;
}

/* Modal Close Button */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
}

.btn-close-white:hover {
    opacity: 1;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* View Images Modal */
#viewImagesModal .modal-dialog {
    max-width: 400px;
}

/* Image Preview Modal - Fullscreen */
#imagePreviewModal .modal-content {
    background: rgba(0, 0, 0, 0.96);
    border: none;
}

#imagePreviewModal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    border: none;
    padding: var(--spacing-md);
}

/* Processing Modal */
#processingModal .modal-content {
    max-width: 280px;
    margin: 0 auto;
}

#processingModal .modal-body {
    padding: var(--spacing-xl);
}

/* ===== SPINNER ===== */
.spinner-border {
    border-color: rgba(255, 255, 255, 0.15);
    border-right-color: var(--accent-blue);
}

/* ===== UTILITIES ===== */
.text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

.text-success {
    color: #10B981 !important;
}

.text-danger {
    color: #EF4444 !important;
}

.text-warning {
    color: #FBBF24 !important;
}

/* Gap utilities */
.gap-1 { gap: var(--spacing-xs) !important; }
.gap-2 { gap: var(--spacing-sm) !important; }
.gap-3 { gap: var(--spacing-md) !important; }
.gap-4 { gap: var(--spacing-lg) !important; }

/* Margin utilities */
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }

/* Icon Effects */
.fa-check-circle,
.fa-user-check {
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.fa-question-circle,
.fa-user-slash {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.fa-exclamation-circle,
.fa-exclamation-triangle {
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5));
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 20px;
        --spacing-xl: 28px;
    }

    .container {
        padding: var(--spacing-sm);
        padding-bottom: calc(76px + var(--safe-bottom));
    }

    .page-title {
        font-size: 1.375rem;
    }

    .glass-card {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .glass-card-title {
        font-size: 0.9375rem;
    }

    .profile-card {
        padding: var(--spacing-md);
    }

    .profile-name {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .modal-dialog {
        margin: var(--spacing-md);
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 24px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 10px 14px;
    }
}

/* ===== ANIMATION HELPERS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.9375rem;
    margin: 0;
}

/* Table - Legacy Support */
.table {
    color: var(--white);
    font-size: 0.875rem;
}

.table thead {
    background: rgba(255, 255, 255, 0.06);
}

.table th {
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.table td {
    border-color: var(--glass-border);
    padding: var(--spacing-sm) var(--spacing-md);
    vertical-align: middle;
}

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