* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-solid: #1e1e30;
    --bg-select: #2a2a3e;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --text-primary: #fff;
    --text-secondary: #ccc;
    --text-muted: #888;
    --text-dim: #999;
    --text-dark: #666;
    --accent: #00d9ff;
    --accent-green: #00ff88;
    --accent-gold: #ffcc00;
    --accent-red: #ff6b6b;
    --accent-orange: #ff9f43;
    --accent-orange-dark: #ffa500;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --shadow: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(255, 255, 255, 0.1);
    --gradient-start: #1a1a2e;
    --gradient-end: #16213e;
    --btn-success-text: #1a1a2e;
    --btn-warning-text: #1a1a2e;
    --receipt-bg: #fff;
    --receipt-text: #000;
    --receipt-border: #ccc;
    --copyright-color: #666;
}

.light-theme {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-solid: #f5f5f5;
    --bg-select: #e0e0e0;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --text-primary: #222;
    --text-secondary: #444;
    --text-muted: #777;
    --text-dim: #666;
    --text-dark: #999;
    --accent: #0077b6;
    --accent-green: #2d6a4f;
    --accent-gold: #b8860b;
    --accent-red: #c0392b;
    --accent-orange: #d35400;
    --accent-orange-dark: #e67e22;
    --border: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.15);
    --shadow: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(0, 0, 0, 0.05);
    --gradient-start: #e8f4f8;
    --gradient-end: #dce8e0;
    --btn-success-text: #fff;
    --btn-warning-text: #fff;
    --receipt-bg: #fff;
    --receipt-text: #000;
    --receipt-border: #ccc;
    --copyright-color: #888;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
    background: var(--header-bg);
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(0, 217, 255, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    color: var(--btn-success-text);
}

.main-content {
    display: grid;
    gap: 30px;
}

.entry-section, .exit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.camera-container, .manual-entry {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.camera-container h2, .manual-entry h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

#reader, #exitReader {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

#plateVideo, #exitVideo {
    width: 100%;
    border-radius: 10px;
}

.plate-overlay {
    position: relative;
    margin-top: -180px;
    margin-bottom: 120px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.plate-frame {
    border: 3px dashed #00ff88;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.scan-status {
    text-align: center;
    padding: 15px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 500;
}

.plate-highlight {
    animation: plateFlash 0.5s ease-in-out 3;
    border-color: #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5) !important;
}

@keyframes plateFlash {
    0%, 100% { border-color: #00ff88; box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
    50% { border-color: #00d9ff; box-shadow: 0 0 20px rgba(0, 217, 255, 0.7); }
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d9ff, #0099cc);
    color: var(--text-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, #666, #444);
    color: var(--text-primary);
}

select.btn-secondary,
select.btn {
    background: linear-gradient(135deg, #666, #444);
    color: var(--text-primary);
    appearance: auto;
    -webkit-appearance: auto;
}

select.btn-secondary option,
select.btn option {
    background: var(--bg-select);
    color: var(--text-primary);
    padding: 8px;
}

/* ALL SELECT ELEMENTS */
select {
    background: var(--bg-select);
    color: var(--text-primary);
}

select option {
    background: var(--bg-select);
    color: var(--text-primary);
    padding: 8px;
}

.btn-success {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: var(--btn-success-text);
}

.btn-warning {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    color: var(--btn-success-text);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: var(--text-primary);
}

.btn-danger:hover {
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.3);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid #00d9ff;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
}

.close:hover {
    color: #ff4444;
}

.ticket {
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.ticket-header {
    text-align: center;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ticket-header h3 {
    color: var(--btn-success-text);
    font-size: 1.3rem;
}

.ticket-header p {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.ticket-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.qr-code {
    flex-shrink: 0;
}

.qr-code img {
    width: 120px;
    height: 120px;
}

.ticket-info {
    flex: 1;
}

.ticket-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.ticket-footer {
    text-align: center;
    border-top: 2px dashed #ccc;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.exit-details {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.exit-details h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.details-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
    border-top: 2px solid #00d9ff;
    margin-top: 10px;
    padding-top: 15px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.login-section {
    max-width: 400px;
    margin: 50px auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.login-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent);
}

.login-form {
    text-align: center;
}

.hint {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Legacy admin-panel (unused but kept for compatibility) */
.admin-panel {
    display: grid;
    gap: 30px;
}
.admin-panel h2 {
    color: var(--accent);
    text-align: center;
}

/* ===== ADMIN SIDEBAR LAYOUT ===== */
.admin-layout {
    display: flex;
    align-items: stretch;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 15px 0 0 15px;
    border: 1px solid var(--border);
    border-right: none;
    display: flex;
    flex-direction: column;
}

.sidebar-toggle {
    display: none;
}

.admin-clock {
    text-align: center;
    padding: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
    border-left-color: #00d9ff;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-sub {
    padding-left: 55px !important;
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    border-left-color: transparent !important;
}

.sidebar-sub::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-sub i {
    font-size: 0.9rem;
    color: var(--accent-green);
}

.sidebar-sub:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green) !important;
}

.sidebar-sub.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green) !important;
    border-left-color: #00ff88 !important;
}

.sidebar-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-red);
}

.sidebar-logout:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff4444;
}

.admin-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border-radius: 0 15px 15px 0;
    border: 1px solid var(--border);
    border-left: none;
    padding: 30px;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.admin-section h3 {
    color: var(--accent-green);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
    font-size: 1.4rem;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.fee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fee-item label {
    min-width: 100px;
}

.fee-item input {
    width: 100px;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.vehicles-list {
    max-height: 400px;
    overflow-y: auto;
}

.vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.vehicle-item .plate {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.vehicle-item .info {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.vehicle-item:hover {
    background: rgba(0, 0, 0, 0.35);
}

.report {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-tab {
    min-width: 120px;
}

.report-tab.active {
    background: linear-gradient(135deg, #00d9ff, #00ff88) !important;
    color: #1a1a2e !important;
    font-weight: bold;
}

.ticket-info hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 10px 0;
}

.ticket-info .total {
    font-size: 1.2rem;
    color: var(--btn-success-text);
}

@media print {
    body * {
        visibility: hidden;
    }
    .ticket, .ticket *, #printReceipt, #printReceipt *, #printArea, #printArea * {
        visibility: visible;
    }
    .ticket, #printReceipt, #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 58mm;
        max-height: 200mm;
        overflow: hidden;
        padding: 2mm;
        margin: 0;
        background: #fff;
        color: #000;
        page-break-inside: avoid;
        page-break-after: avoid;
    }
    @page {
        size: 58mm auto;
        margin: 0;
    }
}

body.printing-receipt > *:not(#printArea) {
    display: none !important;
}
body.printing-receipt #printArea {
    display: block !important;
    position: static !important;
    width: 58mm !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .entry-section, .exit-section {
        grid-template-columns: 1fr;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .fee-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-radius: 15px 15px 0 0;
        border: 1px solid var(--border);
        border-bottom: none;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: rgba(0, 217, 255, 0.15);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--accent);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

    .sidebar-toggle:hover {
        background: rgba(0, 217, 255, 0.25);
    }

    .sidebar-toggle.open i::before {
        content: "\f00d";
    }

    .sidebar-nav {
        display: none;
        flex-direction: column;
        padding: 8px;
        gap: 2px;
    }

    .sidebar-nav.show {
        display: flex;
    }

    .sidebar-link {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-left: none;
        border-radius: 8px;
        border-bottom: none;
    }

    .sidebar-link.active {
        border-left-color: transparent;
        background: rgba(0, 217, 255, 0.2);
    }

    .sidebar-sub {
        padding-left: 45px !important;
        font-size: 0.9rem;
    }

    .sidebar-sub::before {
        left: 30px;
    }

    .sidebar-logout {
        margin-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        border-radius: 8px;
    }

    .admin-content {
        border-radius: 0 0 15px 15px;
        border: 1px solid var(--border);
        border-top: none;
        padding: 20px;
    }
}

/* ===== NEW INDEX PAGE STYLES ===== */

.login-card {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--btn-success-text);
}

.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ACTION BUTTONS - BIG TOUCH FRIENDLY */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.action-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.entry-action {
    border-color: rgba(0, 255, 136, 0.3);
}

.entry-action:hover, .entry-action.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.2));
    border-color: #00ff88;
}

.exit-action {
    border-color: rgba(255, 107, 107, 0.3);
}

.exit-action:hover, .exit-action.active {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 159, 67, 0.2));
    border-color: #ff6b6b;
}

.action-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.entry-action .action-icon {
    background: linear-gradient(135deg, #00ff88, #00d9ff);
    color: var(--btn-success-text);
}

.exit-action .action-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    color: var(--text-primary);
}

.action-label {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 3px;
}

.action-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* PAYMENT ACTION BUTTON */
.payment-action {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-color: rgba(255, 107, 107, 0.3);
    flex-direction: row;
    gap: 15px;
    min-height: 80px;
    padding: 20px 30px;
}

.payment-action .action-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff9f43);
    color: var(--text-primary);
    position: relative;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
}

.payment-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #ff0000;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff0000;
}

.payment-action .action-label {
    font-size: 1.4rem;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.payment-action .action-sub {
    color: #ff9f43;
    font-size: 0.9rem;
}

.urgent-pulse {
    animation: urgent-glow 1.5s infinite !important;
    border-color: rgba(255, 0, 0, 0.8) !important;
}

@keyframes urgent-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

/* PAYMENT PANEL */
.payment-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 159, 67, 0.3));
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
}

.payment-header h2 {
    color: var(--accent-red);
}

.payment-panel-list {
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .payment-action {
        flex-direction: row;
        gap: 12px;
        min-height: 70px;
        padding: 15px 20px;
    }

    .payment-action .action-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .payment-action .action-label {
        font-size: 1.1rem;
    }
}

/* PANELS */
.panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.2));
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.panel-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--accent-green);
}

.exit-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 159, 67, 0.2));
    border-bottom-color: rgba(255, 107, 107, 0.3);
}

.exit-header h2 {
    color: var(--accent-red);
}

.close-panel {
    background: var(--header-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-panel:hover {
    background: rgba(255, 107, 107, 0.5);
}

.panel-body {
    padding: 25px;
}

.camera-section h3, .manual-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-dark);
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--header-bg);
}

.divider span {
    padding: 0 15px;
    font-weight: bold;
    color: var(--text-muted);
}

.plate-input {
    font-size: 1.5rem !important;
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding: 15px !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.full-width {
    width: 100%;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.result-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border);
}

.result-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.result-info p {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.total-fee {
    font-size: 1.3rem;
    color: var(--accent-green);
    text-align: center;
    padding-top: 15px !important;
}

.qr-exit-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border: 1px dashed rgba(255, 107, 107, 0.3);
}

.qr-exit-section h3 {
    color: var(--accent-red);
    margin-bottom: 10px;
}

/* PAYMENT REMINDER BAR */
.payment-bar {
    margin-top: 25px;
    background: rgba(255, 50, 50, 0.15);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 15px;
    overflow: hidden;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { border-color: rgba(255, 107, 107, 0.5); box-shadow: 0 0 10px rgba(255, 50, 50, 0.2); }
    50% { border-color: rgba(255, 107, 107, 1); box-shadow: 0 0 25px rgba(255, 50, 50, 0.5); }
}

.payment-bar-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 159, 67, 0.3));
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--accent-red);
    font-size: 1rem;
}

.payment-bar-header i {
    font-size: 1.2rem;
    animation: ring 1s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.payment-bar-list {
    padding: 10px 15px;
    max-height: 300px;
    overflow-y: auto;
}

.payment-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
}

.payment-item.urgent {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.payment-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.payment-item-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.payment-item-plate {
    color: var(--accent);
    font-size: 0.8rem;
    word-break: break-all;
}

.payment-item-phone {
    color: var(--accent-green);
    font-size: 0.8rem;
}

.payment-item-amount {
    text-align: center;
}

.payment-fee {
    background: linear-gradient(135deg, #00ff88, #00d9ff);
    color: var(--btn-success-text);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.payment-item-date {
    text-align: right;
    color: var(--accent-red);
    font-weight: bold;
    font-size: 0.85rem;
    white-space: nowrap;
}

.payment-item-urgent {
    color: #ff0000;
    font-size: 0.75rem;
    animation: blink 1s infinite;
}

.payment-status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
}

.payment-status-badge.overdue {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    animation: blink 1s infinite;
}

.payment-status-badge.today {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    animation: blink 1s infinite;
}

.payment-status-badge.tomorrow {
    background: rgba(255, 200, 0, 0.2);
    color: #ffc800;
}

.payment-status-badge.upcoming {
    background: rgba(0, 217, 255, 0.2);
    color: var(--accent);
}

.payment-status-badge.paid {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-green);
}

.payment-item.paid-item {
    border-left-color: #00ff88;
    opacity: 0.7;
}

.payment-item.paid-item:hover {
    opacity: 1;
}

.payment-item:not(.paid-item):hover {
    background: rgba(255, 107, 107, 0.15);
    transform: translateX(5px);
    transition: all 0.2s;
}

/* WHATSAPP BUTTON */
.payment-item-whatsapp {
    display: flex;
    align-items: center;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--text-primary);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .payment-item-whatsapp {
        width: 100%;
        justify-content: flex-end;
    }

    .whatsapp-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* PAYMENT STATS */
.payment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card.pending {
    border-color: rgba(255, 165, 0, 0.5);
}

.stat-card.paid {
    border-color: rgba(0, 255, 136, 0.5);
}

.stat-card.overdue {
    border-color: rgba(255, 0, 0, 0.5);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0;
}

.stat-card.pending .stat-number { color: #ffa500; }
.stat-card.paid .stat-number { color: #00ff88; }
.stat-card.overdue .stat-number { color: #ff0000; }

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-amount {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* PAYMENT MONTHS GRID */
.payment-months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.month-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.month-card.current-month {
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.current-month .month-header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 255, 136, 0.3));
}

.month-name {
    font-weight: bold;
    color: var(--accent);
    font-size: 0.9rem;
}

.current-month .month-name {
    color: var(--text-primary);
}

.month-count {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.month-amounts {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.month-total {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
}

.month-paid {
    font-size: 0.75rem;
    color: var(--accent-green);
}

.month-list {
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.month-empty {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    padding: 15px 5px;
}

.month-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin: 3px 0;
    background: var(--bg-card);
    border-radius: 5px;
    border-left: 3px solid #888;
}

.month-item.paid {
    border-left-color: #00ff88;
    opacity: 0.7;
}

.month-item.overdue {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.month-item.warning {
    border-left-color: #ffa500;
}

.month-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.month-item-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.month-item-plate {
    font-size: 0.7rem;
    color: var(--accent);
}

.month-item-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.month-item-fee {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-primary);
}

.whatsapp-btn-sm {
    background: #25D366;
    color: var(--text-primary);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-btn-sm {
    background: #00ff88;
    color: var(--btn-success-text);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paid-badge {
    color: var(--accent-green);
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .payment-months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .payment-months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .payment-months-grid {
        grid-template-columns: 1fr;
    }

    .payment-stats {
        grid-template-columns: 1fr;
    }
}

/* PAYMENT MONTHS TABS */
.payment-months-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.month-tab {
    flex: 1;
    min-width: 60px;
    padding: 10px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.month-tab:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--text-primary);
}

.month-tab.current {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
    color: var(--accent);
}

.month-tab.selected {
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    color: var(--btn-success-text);
    font-weight: bold;
    border-color: transparent;
}

.month-tab.has-subs {
    border-color: rgba(255, 165, 0, 0.5);
}

.month-tab-name {
    font-size: 0.8rem;
}

.month-tab-badge {
    background: #ff6b6b;
    color: var(--text-primary);
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.month-tab.selected .month-tab-badge {
    background: var(--bg-primary);
}

/* PAYMENT MONTH CONTENT */
.payment-month-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    min-height: 150px;
}

.month-detail-empty {
    text-align: center;
    color: var(--text-dark);
    padding: 40px 20px;
    font-size: 1rem;
}

.month-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.month-detail-header h4 {
    color: var(--accent);
    margin: 0;
    font-size: 1.1rem;
}

.month-detail-summary {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.month-detail-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.month-detail-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 3px solid #888;
}

.month-detail-item.paid {
    border-left-color: #00ff88;
    opacity: 0.7;
}

.month-detail-item.overdue {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.08);
}

.detail-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.detail-plate {
    color: var(--accent);
    font-size: 0.8rem;
}

.detail-phone {
    color: var(--accent-green);
    font-size: 0.75rem;
    margin-top: 2px;
}

.detail-fee {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.detail-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
}

.status-badge.paid { background: rgba(0, 255, 136, 0.2); color: #00ff88; }
.status-badge.overdue { background: rgba(255, 0, 0, 0.2); color: #ff0000; }
.status-badge.warning { background: rgba(255, 165, 0, 0.2); color: #ffa500; }
.status-badge.upcoming { background: rgba(0, 217, 255, 0.2); color: #00d9ff; }

.detail-actions {
    display: flex;
    gap: 4px;
}

@media (max-width: 768px) {
    .month-detail-item {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .detail-date, .detail-status {
        display: none;
    }

    .month-detail-summary {
        flex-direction: column;
        gap: 5px;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.payment-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 15px;
}

/* MOBILE RESPONSIVE - PAYMENT BAR */
@media (max-width: 768px) {
    .payment-bar {
        margin-top: 20px;
    }

    .payment-bar-header {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .payment-bar-list {
        padding: 8px 10px;
        max-height: 250px;
    }

    .payment-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .payment-item-amount {
        text-align: left;
    }

    .payment-item-date {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .payment-item-name {
        font-size: 0.9rem;
    }

    .payment-item-plate {
        font-size: 0.75rem;
    }

    .payment-fee {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .action-btn {
        min-height: 140px;
        padding: 30px 20px;
    }

    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .action-label {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .plate-input {
        font-size: 1.2rem !important;
        letter-spacing: 3px;
    }

    .panel-body {
        padding: 15px;
    }

    .login-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.8rem;
    }

    .header-actions {
        gap: 6px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .theme-toggle {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .user-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .action-btn {
        min-height: 120px;
        padding: 25px 15px;
    }

    .action-label {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .action-sub {
        font-size: 0.75rem;
    }
}

/* DAILY ENTRY CARDS */
.daily-entry-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-solid);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #4a90d9;
    gap: 15px;
}

.daily-entry-card.active {
    border-left-color: #2ecc71;
}

.daily-entry-card.exited {
    opacity: 0.6;
    border-left-color: #666;
}

.entry-main {
    flex: 1;
}

.entry-plate {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.entry-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.entry-time {
    color: var(--text-dim);
    font-size: 0.85rem;
}

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

.entry-duration {
    color: #2ecc71;
    font-weight: bold;
}

.entry-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.entry-badge.active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.entry-badge.exited {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
}

.entry-qr {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}

.entry-qr img {
    width: 100% !important;
    height: 100% !important;
}

/* SUMMARY STATS */
.daily-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.daily-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.daily-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent);
}

.daily-stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* RECEIPT GRID */
.receipt-grid {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

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

.receipt-value {
    color: var(--text-primary);
    font-weight: 500;
}

.receipt-divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 6px 0;
}

.receipt-total {
    border-top: 1px solid rgba(255, 204, 0, 0.3);
    padding-top: 6px;
    margin-top: 4px;
}

.receipt-total .receipt-label {
    color: var(--accent-gold);
    font-weight: bold;
}

.receipt-total .receipt-value {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1rem;
}

/* RECEIPT CARDS - Birebirprinted fiş tasarımı */
.receipts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.receipt-card {
    background: #fff;
    color: #000;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    position: relative;
    border: 1px dashed #ccc;
}

.r-header {
    text-align: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #000;
}

.r-parking-name {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.r-parking-info {
    font-size: 10px;
    color: #333;
}

.r-qr {
    text-align: center;
    margin: 8px 0;
}

.r-qr img {
    width: 60px;
    height: 60px;
}

.r-body {
    margin: 8px 0;
}

.r-row {
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
    font-size: 11px;
}

.r-label {
    color: #333;
    font-weight: normal;
}

.r-val {
    color: #000;
    font-weight: bold;
}

.r-plate {
    font-size: 13px;
    letter-spacing: 1px;
}

.r-divider {
    border-top: 1px dashed #000;
    margin: 6px 0;
}

.r-total {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #000;
    font-size: 13px;
    font-weight: bold;
}

.r-total .r-label { color: #000; }
.r-total .r-val { color: #000; }

.r-footer {
    text-align: center;
    font-size: 10px;
    color: var(--text-dark);
    padding-top: 6px;
    margin-top: 6px;
}

.r-status {
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    margin-top: 8px;
    border-radius: 4px;
}

.r-status.active {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.r-status.exited {
    background: rgba(136, 136, 136, 0.15);
    color: var(--text-dark);
    border: 1px solid #999;
}

@media (max-width: 768px) {
    .receipts-grid {
        grid-template-columns: 1fr;
    }
}

/* ENTRY LIST */
.entry-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-solid);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid #4a90d9;
}

.entry-item:hover {
    background: #2a2a40;
    border-left-color: #00d9ff;
    transform: translateX(3px);
}

.entry-item-left {
    flex: 1;
}

.entry-item-plate {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.entry-item-info {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.entry-item-time {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.entry-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.entry-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.entry-status.active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.entry-status.exited {
    background: rgba(136, 136, 136, 0.2);
    color: var(--text-muted);
}

.entry-item-fee {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.entry-item-arrow {
    color: #555;
    font-size: 0.7rem;
}

/* RECEIPT PRINT */
.receipt-print {
    background: #fff;
    color: #000;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.rp-header { text-align: center; padding-bottom: 8px; margin-bottom: 8px; }
.rp-car-icon { font-size: 28px; color: #000; margin-bottom: 4px; display: block; }
.rp-name { font-size: 14px; font-weight: bold; }
.rp-info { font-size: 10px; color: #333; }
.rp-receipt-no { font-size: 9px; color: #888; margin-top: 4px; letter-spacing: 1px; }
.rp-qr { text-align: center; margin: 10px 0; }
.rp-qr img { width: 140px; height: 140px; }
.rp-body { margin: 8px 0; }
.rp-body p { margin: 3px 0; font-size: 11px; }
.rp-body strong { display: inline-block; width: 60px; }
.rp-hr { border: none; border-top: 1px dashed #000; margin: 8px 0; }
.rp-total { font-size: 13px; font-weight: bold; border-top: 1px solid #000; padding-top: 6px; margin-top: 6px; }
.rp-fiscal { text-align: center; font-size: 9px;     color: var(--text-dim); margin-top: 8px; font-style: italic; }
.rp-footer { text-align: center; font-size: 10px; color: #666; padding-top: 4px; margin-top: 4px; }
.rp-status { text-align: center; font-size: 10px; font-weight: bold; padding: 4px 8px; margin-top: 8px; border-radius: 4px; }
.rp-active { background: #e8f5e9; color: #27ae60; border: 1px solid #27ae60; }
.rp-exited { background: #f5f5f5; color: #666; border: 1px solid #999; }

/* MONTH SELECTOR */
.month-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.month-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.month-btn:hover {
    background: rgba(0, 217, 255, 0.15);
    color: var(--text-primary);
}

.month-btn.current {
    border-color: #00d9ff;
    color: var(--accent);
}

.month-btn.selected {
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    color: var(--btn-success-text);
    font-weight: bold;
    border-color: transparent;
}

/* DAY GRID */
.day-grid {
    margin-bottom: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.day-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
}

.day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.day-btn:hover:not(.future) {
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.3);
}

.day-btn.today {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.day-btn.selected {
    background: linear-gradient(135deg, #00d9ff, #00ff88);
    color: var(--btn-success-text);
    font-weight: bold;
    border-color: transparent;
}

.day-btn.future {
    opacity: 0.3;
    cursor: not-allowed;
}

.day-num {
    font-size: 1.1rem;
    font-weight: bold;
}

.day-name {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.day-btn.selected .day-name {
    color: var(--btn-success-text);
}

@media (max-width: 768px) {
    .month-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }

    .day-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    }

    .day-btn {
        padding: 6px 2px;
    }

    .day-num {
        font-size: 0.9rem;
    }
}

.copyright-footer {
    text-align: center;
    padding: 16px;
    color: var(--text-dark);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.logout-bottom {
    margin-top: 30px;
    padding: 0 20px 10px;
}

.logout-user-info {
    text-align: center;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.logout-user-info i {
    color: var(--accent);
    margin-right: 6px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle:hover {
    background: var(--border);
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--border);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    min-width: 140px;
    box-shadow: 0 8px 24px var(--shadow);
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.lang-dropdown a:hover {
    background: var(--border);
}

.chart-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--border);
}

.receipt-lang-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.receipt-lang-bar label {
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.receipt-lang-bar select {
    background: var(--bg-select);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.customer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.customer-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.customer-stat-card .cs-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.customer-stat-card .cs-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.backup-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

[dir="rtl"] .sidebar { direction: rtl; text-align: right; }
[dir="rtl"] .sidebar-nav { direction: rtl; }
[dir="rtl"] .sidebar-link { text-align: right; justify-content: flex-end; }
[dir="rtl"] .sidebar-link i { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .main-content { direction: rtl; }
[dir="rtl"] .nav { direction: rtl; }
[dir="rtl"] .header { direction: rtl; }
[dir="rtl"] .logo { flex-direction: row-reverse; }
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .copyright-footer { direction: rtl; }
