/* Pioneer Airlines VMS - Main Stylesheet */

:root {
    --primary-color: #19275E;
    --primary-dark: #0f1a3d;
    --primary-light: #2d3d7e;
    --accent-color: #731A1E;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #111827;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure form elements use the same font */
input,
select,
textarea,
button {
    font-family: 'Sansation', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Sansation', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gotu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #19275E 0%, #0f1a3d 25%, #2d3d7e 50%, #19275E 75%, #0f1a3d 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.login-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 45px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.airline-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 10px 0;
}

.logo-img {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo-placeholder i {
    font-size: 48px;
}

.logo-placeholder span {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Gotu', sans-serif;
    letter-spacing: 1px;
}

.login-header h1 {
    font-size: 26px;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 400;
    font-family: 'Gotu', sans-serif;
    letter-spacing: 1px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.login-form label i {
    color: var(--primary-color);
    font-size: 16px;
}

.login-form label {
    font-family: 'Sansation', sans-serif;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f9fafb;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.login-form input::placeholder {
    color: #9ca3af;
}

.btn-login {
    padding: 14px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Sansation', sans-serif;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(25, 39, 94, 0.3);
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 39, 94, 0.4);
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Sansation', sans-serif;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(25, 39, 94, 0.3);
}

.security-badge i {
    font-size: 14px;
}

.login-footer p {
    margin: 8px 0;
    font-size: 12px;
}

.login-footer .small {
    font-size: 11px;
}

.login-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    font-family: 'Sansation', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.info-item i {
    font-size: 16px;
    opacity: 0.8;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-card {
        padding: 35px 25px;
    }
    
    .logo-img {
        max-width: 220px;
        max-height: 100px;
    }
    
    .airline-logo {
        min-height: 90px;
        margin-bottom: 25px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-info {
        display: none;
    }
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Gotu', sans-serif;
    color: var(--primary-color);
    padding: 15px 0;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.nav-link .badge {
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 4px;
    font-weight: 600;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle .nav-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s;
}

.nav-dropdown.active .nav-dropdown-toggle .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    padding: 5px 0;
}

.nav-dropdown.active .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 0;
    white-space: nowrap;
}

.nav-submenu-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.nav-submenu-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    margin-left: 10px;
    border-left: 1px solid var(--border-color);
    flex-shrink: 0;
}

.nav-user > span:first-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.role-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Sansation', sans-serif;
    white-space: nowrap;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Gotu', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
}

.card-header h2 {
    font-size: 20px;
    color: var(--primary-color);
    font-family: 'Gotu', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 20px;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.blue { background: var(--primary-color); }
.stat-icon.accent { background: var(--accent-color); }
.stat-icon.green { background: var(--success-color); }
.stat-icon.orange { background: var(--warning-color); }
.stat-icon.gray { background: var(--text-muted); }

.stat-content h3 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.stat-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Stat cards with colored backgrounds - white text for better contrast */
.colored-stat-card .stat-content h3,
.colored-stat-card .stat-content p {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.colored-stat-card .stat-content p {
    font-weight: 500;
    opacity: 0.95;
}

.colored-stat-card .stat-icon {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

/* Fallback for inline styles */
.stat-card[style*="background:"] .stat-content h3,
.stat-card[style*="background:"] .stat-content p {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-card[style*="background:"] .stat-icon {
    background: rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--light-color);
}

.table th {
    padding: 12px;
    text-align: left;
    font-weight: 400;
    font-family: 'Sansation', sans-serif;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--light-color);
}

.table-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.table-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Register Visitor Layout */
.register-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.register-form-container {
    min-width: 0;
}

.register-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 25px;
    color: white;
    box-shadow: 0 4px 12px rgba(25, 39, 94, 0.2);
}

.sidebar-card h3 {
    font-family: 'Gotu', sans-serif;
    font-size: 18px;
    margin: 15px 0 12px 0;
    color: white;
    font-weight: 400;
}

.sidebar-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.sidebar-list li i.fas.fa-check {
    color: #10b981;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 50%;
    font-size: 10px;
}

.sidebar-list li i.fas.fa-lightbulb {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 50%;
    font-size: 12px;
}

/* Forms */
.form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #1f2937;
    font-family: 'Sansation', sans-serif;
    font-weight: 500;
    line-height: 1.5;
}

/* Make form helper text more visible - darker color for better readability */
.form-group .form-text {
    color: #1f2937 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Exception for error messages - keep red */
.form-text[style*="color: #ef4444"],
.form-text#contact_error,
.form-text#email_error {
    color: #ef4444 !important;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:focus.error,
.form-group textarea:focus.error,
.form-group select:focus.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Sansation', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Phone Input with Country Code */
.phone-input-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    min-width: 0; /* Allow flex items to shrink */
    position: relative;
}

.country-code-select {
    width: 30% !important;
    min-width: 140px;
    max-width: 200px;
    flex-shrink: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Sansation', sans-serif;
}

/* Select2 styling for country code */
.phone-input-wrapper .select2-container {
    width: 30% !important;
    min-width: 140px;
    max-width: 200px;
    flex-shrink: 0;
    display: inline-block;
}

.phone-input-wrapper .select2-container--bootstrap-5 .select2-selection {
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 6px 0 0 6px;
    min-height: 42px;
    height: 42px;
}

.phone-input-wrapper .select2-container--bootstrap-5 .select2-selection--single {
    height: 42px;
}

.phone-input-wrapper .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 12px;
    padding-right: 30px;
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}

.phone-input-wrapper .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.phone-input-wrapper .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.phone-input-wrapper .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 39, 94, 0.1);
    z-index: 1;
}

/* Ensure phone input is always visible */
.phone-input-wrapper .phone-number-input {
    width: 70% !important;
    flex: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 200px !important;
}

/* Fix for Select2 container in phone wrapper */
.phone-input-wrapper {
    position: relative;
}

.phone-input-wrapper .select2-container {
    position: relative !important;
    display: inline-block !important;
    vertical-align: middle;
}

/* Ensure proper alignment */
.phone-input-wrapper .select2-container + .phone-number-input {
    margin-left: 0;
    border-left: none;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 39, 94, 0.1);
    z-index: 1;
}

.country-code-select:hover {
    border-color: var(--primary-light);
}

.country-code-select option {
    padding: 8px 12px;
    font-size: 14px;
}

.phone-number-input {
    flex: 1;
    min-width: 0; /* Allow input to shrink */
    width: 70% !important;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Sansation', sans-serif;
    height: 42px;
    box-sizing: border-box;
}

.phone-number-input:focus {
    outline: none;
    border-color: var(--primary-color);
    border-left: 1px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 39, 94, 0.1);
    z-index: 1;
}

.phone-number-input:hover {
    border-color: var(--primary-light);
}

/* When country code is focused, connect the borders */
.country-code-select:focus + .phone-number-input,
.phone-input-wrapper .select2-container--bootstrap-5.select2-container--focus + .phone-number-input {
    border-left: 1px solid var(--primary-color);
}

/* Connect borders when Select2 is focused */
.phone-input-wrapper .select2-container--bootstrap-5.select2-container--focus .select2-selection + .phone-number-input,
.phone-input-wrapper .select2-container--bootstrap-5.select2-container--focus ~ .phone-number-input {
    border-left: 1px solid var(--primary-color);
}

/* Error states */
.country-code-select.error,
.phone-number-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.country-code-select.error:focus,
.phone-number-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Success state */
.phone-number-input[style*="border-color: rgb(16, 185, 129)"] {
    border-color: #10b981 !important;
}

.country-code-select:focus + .phone-number-input[style*="border-color: rgb(16, 185, 129)"] {
    border-left: 1px solid #10b981;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .phone-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .country-code-select {
        width: 100%;
        border-radius: 6px;
        background-position: right 12px center;
    }
    
    .phone-number-input {
        width: 100%;
        border-left: 1px solid var(--border-color);
        border-radius: 6px;
    }
    
    .country-code-select:focus + .phone-number-input {
        border-left: 1px solid var(--border-color);
    }
}

/* Form Error Messages */
.form-error {
    display: block !important;
    margin-top: 5px;
    font-size: 12px;
    color: #ef4444;
    font-family: 'Sansation', sans-serif;
}

/* Visitor Pass/ID Card Design */
.visitor-pass-card {
    max-width: 900px;
    margin: 30px auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

/* Pass Header with Company Branding */
.pass-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--accent-color);
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo i {
    font-size: 48px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
}

.company-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    font-family: 'Gotu', sans-serif;
    letter-spacing: 1px;
}

.company-info p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.pass-type {
    text-align: right;
}

.badge-type {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Pass Content */
.pass-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding: 30px;
    background: white;
}

.pass-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 25px;
    border-right: 2px dashed var(--border-color);
}

.pass-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pass-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.no-photo-placeholder i {
    font-size: 80px;
    color: #9ca3af;
}

.photo-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.pass-qr {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.qr-code-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 3px solid white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 8px;
}

.qr-label {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pass Right - Visitor Information */
.pass-right {
    padding-left: 30px;
}

.pass-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    align-items: start;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    color: var(--primary-color);
    font-size: 14px;
    width: 18px;
}

.info-value {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    word-break: break-word;
}

.code-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.badge-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

.host-dept {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
}

.expiry-value {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-checked_in_security {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-inside_premises {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-in {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-out {
    background: #fee2e2;
    color: #991b1b;
}

/* Pass Footer */
.pass-footer {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-left i,
.footer-right i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Print Styles for Visitor Pass */
@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .page-header,
    .alert,
    .form-actions,
    .navbar,
    .main-content > *:not(.visitor-pass-card) {
        display: none !important;
    }
    
    .visitor-pass-card {
        margin: 0;
        box-shadow: none;
        border: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .pass-header {
        background: #19275E !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .badge-type {
        background: #731A1E !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pass-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .pass-left {
        border-right: none;
        border-bottom: 2px dashed var(--border-color);
        padding-right: 0;
        padding-bottom: 25px;
    }
    
    .pass-right {
        padding-left: 0;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .pass-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pass-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pass-type {
        text-align: center;
    }
}

.form-group input:focus:not(.error) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 39, 94, 0.1);
}

.form-group input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input[style*="border-color: rgb(16, 185, 129)"] {
    border-color: #10b981 !important;
}

/* Duplicate removed - using main .form-text definition above */

/* Photo Capture Styles */
.photo-capture-container {
    margin-top: 10px;
}

.photo-input-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-preview-area {
    margin-top: 15px;
    text-align: center;
}

.photo-preview-area img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.photo-preview-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-container {
    margin-top: 15px;
    text-align: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.camera-container video {
    width: 100%;
    max-width: 640px;
    display: block;
    background: #000;
}

.camera-controls {
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.camera-controls .btn {
    min-width: 120px;
}

@media (max-width: 480px) {
    .photo-input-actions {
        flex-direction: column;
    }
    
    .photo-input-actions .btn,
    .photo-input-actions label {
        width: 100%;
        justify-content: center;
    }
    
    .photo-preview-area img {
        max-height: 300px;
    }
    
    .camera-controls {
        flex-direction: column;
    }
    
    .camera-controls .btn {
        width: 100%;
        min-width: auto;
    }
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    font-family: 'Sansation', sans-serif;
    font-weight: 400;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 39, 94, 0.4);
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--light-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--light-color);
    color: var(--text-color);
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

/* Visitor Details */
.visitor-details {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.visitor-photo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.no-photo i {
    font-size: 48px;
    margin-bottom: 10px;
}

.visitor-info h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.visitor-info p {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* QR Code */
.qr-display {
    text-align: center;
    padding: 30px;
}

.qr-code-container {
    margin: 20px 0;
}

.qr-image {
    max-width: 300px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-info {
    margin-top: 20px;
    color: var(--text-muted);
}

/* QR Scanner */
.qr-scanner-container {
    text-align: center;
    padding: 20px;
}

.qr-scanner-container video {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.qr-result {
    margin-top: 15px;
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.notification-item.unread {
    background: #eff6ff;
    border-color: var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.notification-text {
    flex: 1;
}

.notification-text h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.notification-text p {
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.close:hover {
    color: var(--text-color);
}

/* Visitor Details Modal */
.visitor-details-modal {
    width: 100%;
}

.visitor-details-modal img {
    max-width: 100%;
    height: auto;
}

/* Responsive styles for visitor details modal */
@media (max-width: 1024px) {
    .visitor-details-modal > div[style*="grid-template-columns: 250px 250px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .visitor-details-modal > div[style*="grid-template-columns: 250px 250px 1fr"] > div {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        max-width: 95%;
    }
    
    .visitor-details-modal > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Report Filters */
.report-filters {
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* Responsive Design - Mobile First Approach */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .register-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .register-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-dropdown {
        position: relative;
    }
    
    .nav-submenu {
        min-width: 180px;
    }
    
    .nav-user {
        padding-left: 10px;
        margin-left: 5px;
    }
    
    .nav-user > span:first-child {
        display: none;
    }
}

/* Mobile and Tablet (768px and below) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        min-height: 56px;
    }
    
    .nav-toggle {
        display: flex;
        order: 2;
        z-index: 1001;
    }
    
    .nav-brand {
        order: 1;
        flex: 1;
        font-size: 18px;
        padding: 12px 0;
    }
    
    .nav-brand span {
        font-size: 18px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        flex-direction: column;
        width: 280px;
        max-width: 85%;
        background: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 70px 0 20px 0;
        gap: 0;
        align-items: stretch;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 20px;
        justify-content: flex-start;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 15px;
    }
    
    .nav-link:hover {
        background-color: var(--light-color);
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
    }
    
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: var(--light-color);
        display: none;
    }
    
    .nav-dropdown.active .nav-submenu {
        display: block;
    }
    
    .nav-submenu-link {
        padding-left: 40px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-user {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
        border-top: 2px solid var(--border-color);
        border-left: none;
        margin-top: 10px;
        background: var(--light-color);
    }
    
    .nav-user > span:first-child {
        display: block;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-color);
    }
    
    .nav-user .role-badge {
        align-self: center;
        display: inline-block;
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .nav-user .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        margin: 0;
        padding: 10px 16px;
    }
    
    /* Overlay for mobile menu */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .register-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .register-sidebar {
        position: static;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .sidebar-card h3 {
        font-size: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .visitor-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 28px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        max-width: 95%;
    }
    
    .qr-display {
        padding: 20px 15px;
    }
    
    .qr-image {
        max-width: 100%;
    }
    
    .visitor-photo img,
    .no-photo {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .logo-img {
        max-width: 180px;
        max-height: 80px;
    }
    
    .airline-logo {
        min-height: 80px;
        margin-bottom: 20px;
    }
    
    .nav-container {
        padding: 0 12px;
        min-height: 52px;
    }
    
    .nav-brand {
        font-size: 16px;
        padding: 10px 0;
    }
    
    .nav-brand span {
        font-size: 16px;
    }
    
    .nav-menu {
        width: 260px;
        max-width: 80%;
        padding: 60px 0 15px 0;
    }
    
    .nav-link {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .nav-user {
        padding: 15px;
        gap: 12px;
    }
    
    .nav-user > span:first-child {
        font-size: 14px;
    }
    
    .nav-user .role-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .nav-user .btn {
        padding: 9px 14px;
        font-size: 13px;
    }
    
    .nav-toggle {
        padding: 6px 10px;
        font-size: 18px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .card-header h2 {
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
    
    .table-photo,
    .table-photo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .visitor-info h2 {
        font-size: 20px;
    }
    
    .notification-item {
        padding: 12px;
    }
    
    .notification-photo {
        width: 50px;
        height: 50px;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .login-card {
        padding: 20px 15px;
    }
    
    .nav-brand {
        font-size: 14px;
    }
    
    .nav-brand span {
        font-size: 14px;
    }
    
    .nav-brand i {
        font-size: 16px;
    }
    
    .nav-menu {
        width: 240px;
        padding: 55px 0 15px 0;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 22px;
    }
    
    .card-header,
    .card-body {
        padding: 12px;
    }
}


/* Select2 Custom Styling */
.select2-container {
    font-family: 'Sansation', sans-serif;
}

.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    padding-right: 20px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 8px;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Sansation', sans-serif;
}

.select2-container--bootstrap-5 .select2-results__option {
    font-family: 'Sansation', sans-serif;
    padding: 8px 12px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--success-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-color);
}

/* Print Styles */
@media print {
    .navbar,
    .nav-menu,
    .btn,
    .form-actions,
    .select2-container {
        display: none;
    }
}

/* Error Handler Styles */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.error-modal-content {
    animation: modalFadeIn 0.3s ease;
}

.error-alert {
    position: relative;
}

.error-alert:hover {
    transform: translateX(-5px);
    transition: transform 0.2s ease;
}

/* Inline Error Display */
.page-error-display {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-error-display.error-critical {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: white;
    border-color: #dc2626;
}

.page-error-display i {
    font-size: 24px;
    color: #ef4444;
    flex-shrink: 0;
}

.page-error-display.error-critical i {
    color: white;
}

.page-error-display .error-content {
    flex: 1;
}

.page-error-display .error-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #991b1b;
}

.page-error-display.error-critical .error-title {
    color: white;
}

.page-error-display .error-message {
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.6;
}

.page-error-display.error-critical .error-message {
    color: rgba(255, 255, 255, 0.95);
}

.page-error-display .error-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.page-error-display.error-critical .error-details {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.page-error-display .error-details pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    overflow-x: auto;
    margin: 0;
}

.page-error-display.error-critical .error-details pre {
    background: rgba(0, 0, 0, 0.3);
    color: #f9fafb;
}

/* Success Display */
.page-success-display {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Error Modal Styles */
.error-modal-content .modal-header {
    border-radius: 8px 8px 0 0;
}

.error-modal-content .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.error-modal-content .error-details pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}
    
    .main-content {
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}
