     * {
            box-sizing: border-box;
        }

        * {
            box-sizing: border-box;
        }

        :root {
            --bg: #f3f6f9;
            --card: #ffffff;
            --primary: #2563eb;
            /* blue */
            --accent: #16a34a;
            /* green */
            --muted: #6b7280;
            --slot-bg: #ecfdf5;
            --slot-border: #bbf7d0;
            --dark-btn: #0f172a;
        }

        body {
            margin: 0;
            padding: 24px;
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .header {
            text-align: left;
            color: #0f172a;
            margin: 0 auto 20px;
            padding: 12px 18px;
            background: var(--card);
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
            max-width: 1400px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header h1 {
            margin: 0;
            font-size: 2.8em;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
            font-weight: 700;
            letter-spacing: 1px;
        }

        .header p {
            margin: 10px 0 0 0;
            opacity: 0.95;
            font-size: 1.1em;
            letter-spacing: 0.5px;
        }

        .container {
            display: flex;
            gap: 20px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        /* Left Panel */
        .left-panel {
            flex: 2;
            min-width: 640px;
            background: var(--card);
            padding: 28px;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
            border: 1px solid rgba(16, 24, 40, 0.04);
            transition: 0.25s ease;
        }

        .left-panel:hover {
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
        }

        .left-panel h2 {
            color: var(--dark-btn);
            margin-top: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.6em;
            font-weight: 700;
        }

        .lot-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
            gap: 12px;
            align-items: start;
        }

        .slot {
            background: var(--slot-bg);
            border: 2px solid var(--slot-border);
            padding: 10px 8px;
            border-radius: 10px;
            text-align: center;
            font-size: 12px;
            cursor: pointer;
            transition: transform 0.22s ease, box-shadow 0.22s ease;
            height: 72px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-weight: 700;
            color: var(--accent);
        }

        .slot:hover {
            transform: translateY(-6px);
            box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
        }

        .slot::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.3);
            transition: left 0.6s ease;
            z-index: -1;
        }

        .slot:hover::before {
            left: 100%;
        }

        .slot:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 20px rgba(16, 24, 40, 0.08);
        }

        .slot.occupied {
            background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
            border-color: #fecaca;
            color: #b91c1c;
        }

        .slot.reserved {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            border-color: #93c5fd;
            color: #1e40af;
        }

        .slot.path-row {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-color: #fbbf24;
            box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
        }

        .slot.path-target {
            background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
            border-color: #22c55e;
            box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
        }

        .entrance-indicator {
            padding: 10px;
            background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
            color: white;
            border-radius: 8px;
            margin-bottom: 15px;
            text-align: center;
            font-weight: 600;
            font-size: 13px;
        }

        .slot-number {
            font-weight: 700;
            font-size: 11px;
            position: absolute;
            top: 6px;
            left: 8px;
            color: var(--muted);
        }

        .slot-icon {
            font-size: 20px;
            margin-bottom: 4px;
            background: #f0fdf4;
            border-radius: 6px;
            padding: 6px;
            color: var(--accent);
            box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.03);
        }

        .slot-icon i {
            font-size: 18px;
            color: #667eea;
        }

        .slot.occupied .slot-icon i {
            color: #ef4444;
        }

        .slot.reserved .slot-icon i {
            color: #3b82f6;
        }

        /* Right Panel */
        .right-panel {
            flex: 1;
            min-width: 320px;
            max-width: 380px;
        }

        .status-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .status-box {
            flex: 1;
            background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
            padding: 25px;
            border-radius: 16px;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.1);
            text-align: center;
            border-left: 5px solid #667eea;
            transition: all 0.3s ease;
            position: relative;
        }

        .status-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
        }

        .status-box h3 {
            margin: 0;
            color: #667eea;
            font-size: 16px;
            font-weight: 700;
        }

        .status-box .value {
            font-size: 32px;
            font-weight: 900;
            background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-top: 12px;
        }

        .status-box .label {
            color: #888;
            font-size: 13px;
            margin-top: 8px;
            font-weight: 500;
        }

        .tabs {
            display: flex;
            gap: 12px;
            margin: 25px 0;
            background: rgba(255, 255, 255, 0.5);
            padding: 8px;
            border-radius: 15px;
            backdrop-filter: blur(5px);
        }

        .tab {
            flex: 1;
            padding: 14px 16px;
            text-align: center;
            background: white;
            border-radius: 12px;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 2px solid transparent;
            font-weight: 700;
            color: #555;
            font-size: 14px;
        }

        .tab.active {
            background: #ffffff;
            color: var(#000);
            border-color: rgba(59, 130, 246, 0.14);
            box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
        }

        .tab:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
        }

        .box {
            background: white;
            padding: 30px;
            border-radius: 18px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            border: 1px solid rgba(102, 126, 234, 0.08);
            transition: all 0.3s ease;
        }

        .box:hover {
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        }

        .box h3 {
            color: #667eea;
            margin-top: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.3em;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        label {
            display: block;
            color: #333;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
        }

        input,
        select {
            width: 100%;
            padding: 13px 15px;
            margin-top: 0;
            margin-bottom: 0;
            border-radius: 12px;
            border: 2px solid #e0e0e0;
            font-size: 14px;
            transition: all 0.35s ease;
            background: #fafafa;
        }

        input::placeholder {
            color: #bbb;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        /* search input specifically */
        .search-input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid rgba(16, 24, 40, 0.06);
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
        }

        .search-input::placeholder {
            color: #9ca3af;
        }

        button {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 700;
            transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            margin-top: 10px;
            letter-spacing: 0.5px;
        }

        .primary-btn {
            background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
            color: white;
            margin-bottom: 10px;
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
        }

        .primary-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
        }

        .primary-btn:active {
            transform: translateY(-1px);
        }

        .outline-btn {
            background: var(--dark-btn);
            border: none;
            color: white;
            margin-bottom: 10px;
            box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
        }

        .outline-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(2, 6, 23, 0.15);
        }

        .white-btn {
            background: #ffffff;
            color: var(--primary);
            margin-bottom: 10px;
            box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
            border: 1px solid rgba(16, 24, 40, 0.04);
        }

        .white-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 28px rgba(16, 24, 40, 0.09);
        }

        .white-btn:active {
            transform: translateY(-1px);
        }

        .secondary-btn {
            background: #dc3545;
            color: white;
            padding: 8px 15px;
            width: auto;
            margin: 5px;
            border-radius: 8px;
            border: none;
        }

        .secondary-btn:hover {
            background: #c82333;
        }

        /* Table Box */
        table {
            width: 100%;
            border-collapse: collapse;
        }

        table th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            text-align: left;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.5px;
        }

        table td {
            padding: 14px 15px;
            border-bottom: 1px solid #f0f0f0;
        }

        table tbody tr {
            transition: all 0.3s ease;
        }

        table tbody tr:hover {
            background: #f9f9f9;
            transform: scale(1.01);
        }

        .alert {
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-item {
            background: var(--card);
            color: var(--dark-btn);
            padding: 12px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid rgba(16, 24, 40, 0.04);
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
        }

        .stat-item .label {
            font-size: 12px;
            opacity: 0.9;
        }

        .stat-item .value {
            font-size: 24px;
            font-weight: bold;
            margin-top: 5px;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-content {
            background: white;
            margin: 10% auto;
            padding: 30px;
            border-radius: 15px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.3s ease;
        }

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

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 15px;
        }

        .modal-header h2 {
            margin: 0;
            color: #667eea;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            width: auto;
            padding: 0;
            margin: 0;
        }

        .close-btn:hover {
            color: #667eea;
        }

        .modal-body {
            margin-bottom: 25px;
        }

        .confirmation-details {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            border-left: 4px solid #667eea;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            margin: 10px 0;
            font-size: 15px;
        }

        .detail-label {
            color: #666;
            font-weight: 600;
        }

        .detail-value {
            color: #333;
            font-weight: bold;
        }

        .modal-footer {
            display: flex;
            gap: 10px;
        }

        .btn-confirm {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            transition: 0.3s;
        }

        .btn-confirm.yes {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-confirm.yes:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-confirm.no {
            background: #e9ecef;
            color: #333;
        }

        .btn-confirm.no:hover {
            background: #dee2e6;
        }

        /* Expiry Warning Styles */
        .slot.expiring {
            animation: pulse 1s infinite;
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
            border-color: #ff6b6b !important;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        .expiry-badge {
            display: inline-block;
            background: #ff6b6b;
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: bold;
            margin-left: 8px;
        }

        .vehicle-item-expiring {
            border-left: 4px solid #ff6b6b;
            background: #fff5f5 !important;
        }

        .expiry-warning {
            color: #ff6b6b;
            font-weight: 600;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .time-remaining {
            display: inline-block;
            background: #fff3cd;
            color: #856404;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
        }

        @media (max-width: 1200px) {

            .left-panel,
            .right-panel {
                min-width: 100%;
                flex: 100%;
            }

            .lot-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }