﻿:root {
            --nys-green: #9eeb47;
            --nys-dark-green: #5f8f2a;
            --nys-red: #B71C1C;
            --nys-black: #1a1a1a;
            --nys-gold: #FFD700;
            --nys-cream: #F5F5DC;
            --sidebar-width: 280px;
            --header-height: 80px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            color: var(--nys-black);
        }

        /* Header Styles */
        .main-header {
            position: fixed;
            top: 0;
            width: 100%;
            height: var(--header-height);
            background: linear-gradient(90deg, var(--nys-dark-green) 0%, var(--nys-green) 100%);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 1000;
            display: flex;
            align-items: center;
            padding: 0 30px;
            border-bottom: 4px solid var(--nys-gold);
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo-img {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 50%;
            padding: 5px;
            border: 3px solid var(--nys-gold);
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .logo-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .header-text h1 {
            font-family: 'Playfair Display', serif;
            color: white;
            font-size: 1.5rem;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .header-text p {
            color: var(--nys-gold);
            font-size: 0.85rem;
            font-weight: 500;
            letter-spacing: 2px;
        }

        .header-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .clock-display {
            background: rgba(255,255,255,0.1);
            padding: 10px 20px;
            border-radius: 30px;
            color: white;
            font-weight: 600;
            border: 1px solid rgba(255,215,0,0.3);
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            color: white;
            cursor: pointer;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: var(--nys-gold);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--nys-dark-green);
            font-weight: bold;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: var(--header-height);
            width: var(--sidebar-width);
            height: calc(100vh - var(--header-height));
            background: white;
            box-shadow: 4px 0 15px rgba(0,0,0,0.05);
            overflow-y: auto;
            z-index: 999;
            border-right: 1px solid #e0e0e0;
        }

        .nav-section {
            padding: 20px;
            border-bottom: 1px solid #eee;
        }

        .nav-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #999;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            margin-bottom: 5px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            color: #555;
            text-decoration: none;
            font-weight: 500;
        }

        .nav-item:hover {
            background: rgba(27, 94, 32, 0.1);
            color: var(--nys-green);
            transform: translateX(5px);
        }

        .nav-item.active {
            background: var(--nys-green);
            color: white;
        }

        .nav-item i {
            width: 20px;
            text-align: center;
        }

        .badge {
            margin-left: auto;
            background: var(--nys-red);
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
        }

        /* Main Content */
        .main-content {
            margin-left: var(--sidebar-width);
            margin-top: var(--header-height);
            padding: 30px;
            min-height: calc(100vh - var(--header-height));
        }

        .page-title {
            margin-bottom: 30px;
        }

        .page-title h2 {
            color: var(--nys-dark-green);
            font-size: 1.8rem;
            margin-bottom: 5px;
        }

        .breadcrumb {
            color: #666;
            font-size: 0.9rem;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            border-left: 4px solid var(--nys-green);
            transition: transform 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .stat-card.vvip {
            border-left-color: var(--nys-red);
            background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
        }

        .stat-card.alumni {
            border-left-color: var(--nys-gold);
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            background: rgba(27, 94, 32, 0.1);
            color: var(--nys-green);
        }

        .stat-card.vvip .stat-icon {
            background: rgba(183, 28, 28, 0.1);
            color: var(--nys-red);
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--nys-dark-green);
        }

        .stat-label {
            color: #666;
            font-size: 0.9rem;
            margin-top: 5px;
        }

        /* Quick Actions */
        .quick-actions {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            margin-bottom: 30px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--nys-dark-green);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .action-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .action-btn {
            padding: 20px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
            text-decoration: none;
            color: inherit;
        }

        .action-btn:hover {
            border-color: var(--nys-green);
            background: rgba(27, 94, 32, 0.05);
            transform: translateY(-2px);
        }

        .action-btn i {
            font-size: 2rem;
            color: var(--nys-green);
            margin-bottom: 10px;
            display: block;
        }

        .action-btn.vvip-btn i {
            color: var(--nys-red);
        }

        .action-btn span {
            font-weight: 600;
            color: #333;
            display: block;
            margin-bottom: 5px;
        }

        .action-btn small {
            color: #666;
            font-size: 0.8rem;
        }

        /* Content Grid */
        .content-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
        }

        .panel {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .panel-header {
            padding: 20px 25px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .panel-title {
            font-weight: 600;
            color: var(--nys-dark-green);
            font-size: 1.1rem;
        }

        .panel-body {
            padding: 25px;
        }

        /* Activity List */
        .activity-list {
            list-style: none;
        }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .activity-item:last-child {
            border-bottom: none;
        }

        .activity-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .activity-icon.staff { background: #E3F2FD; color: #1565C0; }
        .activity-icon.visitor { background: #FFF3E0; color: #E65100; }
        .activity-icon.student { background: #E8F5E9; color: #2E7D32; }
        .activity-icon.vvip { background: #FFEBEE; color: #C62828; }
        .activity-icon.vehicle { background: #F3E5F5; color: #6A1B9A; }

        .activity-details {
            flex: 1;
        }

        .activity-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 3px;
        }

        .activity-meta {
            font-size: 0.85rem;
            color: #666;
        }

        .activity-time {
            color: #999;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-in { background: #E8F5E9; color: #2E7D32; }
        .status-out { background: #FFEBEE; color: #C62828; }
        .status-pending { background: #FFF8E1; color: #F9A825; }

        /* Vehicle Section */
        .vehicle-grid {
            display: grid;
            gap: 15px;
        }

        .vehicle-card {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s;
        }

        .vehicle-card:hover {
            border-color: var(--nys-green);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .vehicle-plate {
            background: var(--nys-dark-green);
            color: white;
            padding: 8px 15px;
            border-radius: 6px;
            font-weight: 700;
            letter-spacing: 1px;
            font-family: monospace;
            border: 2px solid var(--nys-gold);
        }

        .vehicle-plate.vvip {
            background: var(--nys-red);
            border-color: var(--nys-gold);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(183, 28, 28, 0); }
            100% { box-shadow: 0 0 0 0 rgba(183, 28, 28, 0); }
        }

        .vehicle-info h4 {
            font-size: 0.95rem;
            color: #333;
            margin-bottom: 3px;
        }

        .vehicle-info p {
            font-size: 0.8rem;
            color: #666;
        }

        /* Search Bar */
        .search-container {
            position: relative;
            margin-bottom: 25px;
        }

        .search-input {
            width: 100%;
            padding: 15px 20px 15px 50px;
            border: 2px solid #e0e0e0;
            border-radius: 30px;
            font-size: 1rem;
            transition: all 0.3s;
            font-family: inherit;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--nys-green);
            box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s;
            }
            
            .sidebar.open {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .content-grid {
                grid-template-columns: 1fr;
            }
        }

        /* VVIP Alert Banner */
        .vvip-alert {
            background: linear-gradient(90deg, var(--nys-red) 0%, #D32F2F 100%);
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 15px;
            animation: slideIn 0.5s ease-out;
            border: 2px solid var(--nys-gold);
        }

        .vvip-alert.show {
            display: flex;
        }

        @keyframes slideIn {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .vvip-alert i {
            font-size: 1.5rem;
            color: var(--nys-gold);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .modal.is-open {
            display: flex;
        }

        .modal-content {
            background: white;
            width: 90%;
            max-width: 600px;
            border-radius: 12px;
            overflow: hidden;
            animation: modalSlide 0.3s;
        }

        @keyframes modalSlide {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            background: var(--nys-green);
            color: white;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-body {
            padding: 25px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        .form-input, .form-select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-family: inherit;
            font-size: 1rem;
        }

        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--nys-green);
        }

        .btn {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-family: inherit;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: var(--nys-green);
            color: white;
        }

        .btn-primary:hover {
            background: var(--nys-dark-green);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
        }

        .btn-vvip {
            background: var(--nys-red);
            color: white;
        }

        .btn-vvip:hover {
            background: #8B0000;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Category Tags */
        .category-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .tag {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .tag.active {
            background: var(--nys-green);
            color: white;
        }

        .tag:not(.active) {
            background: #f0f0f0;
            color: #666;
        }

        .tag:hover:not(.active) {
            background: #e0e0e0;
        }

        .tag.vvip-tag.active {
            background: var(--nys-red);
        }
/* App: login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 20%, #b9f57a 0%, var(--nys-green) 32%, var(--nys-dark-green) 100%);
}
.login-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.30);
    overflow: hidden;
    border: 3px solid var(--nys-gold);
}
.login-card-header {
    background: linear-gradient(90deg, var(--nys-dark-green) 0%, var(--nys-green) 100%);
    color: white;
    padding: 28px 24px;
    text-align: center;
    border-bottom: 3px solid var(--nys-gold);
}
.login-card-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.login-card-header p {
    color: var(--nys-gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
}
.login-card-body { padding: 30px 28px 34px; }
.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: white;
    border-radius: 50%;
    padding: 6px;
    border: 3px solid var(--nys-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.login-field { margin-bottom: 18px; }
.login-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.login-field input[type=text], .login-field input[type=password] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.login-field input[type=email],
.login-field input[type=tel],
.login-field input[type=date],
.login-field select,
.login-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.3;
    background: #fff;
    color: #1f2937;
}
.login-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #5f8f2a 50%), linear-gradient(135deg, #5f8f2a 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
.login-field textarea {
    min-height: 86px;
    resize: vertical;
}
.login-field input:focus {
    outline: none;
    border-color: var(--nys-green);
}
.login-field select:focus,
.login-field textarea:focus {
    outline: none;
    border-color: var(--nys-green);
}
.login-remember { margin-bottom: 20px; font-size: 0.9rem; }
.login-remember .form-check,
.login-remember .checkbox {
    margin: 0;
}
.login-remember input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}
.login-error { color: var(--nys-red); font-size: 0.85rem; margin-top: 6px; }
.btn-login-submit {
    width: 100%;
    padding: 14px 16px;
    background: var(--nys-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-login-submit:hover {
    background: var(--nys-dark-green);
    transform: translateY(-1px);
}
.login-hint { margin-top: 16px; font-size: 0.8rem; color: #666; text-align: center; line-height: 1.45; }

/* Admin chrome */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    top: var(--header-height);
}
.sidebar-backdrop.show {
    display: block;
}
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: 8px;
    color: white;
    cursor: pointer;
}
@media (max-width: 1024px) {
    .sidebar-toggle { display: flex; }
}
button.nav-item {
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.nav-item-logout {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Tables (admin lists) */
.data-table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    font-weight: 600;
    color: var(--nys-dark-green);
    background: #f9faf9;
}
.data-table tr:hover td { background: #fafafa; }

.alert-banner {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--nys-green);
    background: #e8f5e9;
    color: #1b5e20;
}

/* Self registration forms */
.selfreg-card {
    width: 100%;
}
.selfreg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}
.selfreg-review-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
}
.selfreg-photo-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    background: #fafafa;
}
.selfreg-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.selfreg-photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    background: #fff;
}
.selfreg-ref {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nys-dark-green);
    text-align: center;
    word-break: break-word;
}
.selfreg-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px 14px;
}
.selfreg-meta-grid div {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.selfreg-meta-grid span {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 4px;
}
.selfreg-meta-grid strong {
    color: #111827;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .login-page {
        padding: 16px;
        align-items: flex-start;
    }
    .selfreg-card {
        max-width: 100% !important;
    }
    .login-card-body {
        padding: 20px 16px 24px;
    }
    .selfreg-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .selfreg-review-grid {
        grid-template-columns: 1fr;
    }
    .selfreg-meta-grid {
        grid-template-columns: 1fr;
    }
    .btn-login-submit {
        min-height: 46px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 10px;
    }
    .login-card-header {
        padding: 20px 14px;
    }
    .login-card-header h1 {
        font-size: 1.25rem;
    }
    .login-card-header p {
        letter-spacing: 1px;
        font-size: 0.72rem;
    }
}


/* Icons are provided by web/vendor/fontawesome/css/all.min.css */

