/* ============================================
   FONTOURA CAR - Design System
   Premium Dark Theme
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #050505;
    --bg-secondary: #111111;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;
    --bg-input: #1a1a1a;
    --bg-sidebar: #000000;

    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;

    --accent-primary: #ef4444;
    /* Brand Red */
    --accent-primary-hover: #dc2626;
    --accent-primary-glow: rgba(239, 68, 68, 0.3);

    --accent-success: #10b981;
    --accent-success-bg: rgba(16, 185, 129, 0.12);
    --accent-danger: #ef4444;
    --accent-danger-bg: rgba(239, 68, 68, 0.12);
    --accent-warning: #f59e0b;
    --accent-warning-bg: rgba(245, 158, 11, 0.12);
    --accent-info: #3b82f6;
    --accent-info-bg: rgba(59, 130, 246, 0.12);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --sidebar-width: 260px;
    --topbar-height: 64px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.2));
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-menu {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary-hover);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version {
    font-size: 11px;
    color: var(--text-muted);
}

.offline-badge {
    font-size: 11px;
    color: var(--accent-success);
    background: var(--accent-success-bg);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* === Sidebar Overlay === */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
}

/* === Main Content === */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* === Top Bar === */
.topbar {
    height: var(--topbar-height);
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-card);
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.current-date {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* === Page Container === */
.page-container {
    padding: 24px;
    max-width: 1400px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stats-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-primary::before {
    background: linear-gradient(90deg, var(--accent-primary), #a855f7);
}

.stat-success::before {
    background: linear-gradient(90deg, var(--accent-success), #34d399);
}

.stat-info::before {
    background: linear-gradient(90deg, var(--accent-info), #60a5fa);
}

.stat-warning::before {
    background: linear-gradient(90deg, var(--accent-warning), #fbbf24);
}

.stat-danger::before {
    background: linear-gradient(90deg, var(--accent-danger), #f87171);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 32px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* === Dashboard Grid === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-grid .card:last-child {
    grid-column: span 2;
}

.finance-summary {
    display: flex;
    gap: 20px;
}

.finance-item {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.finance-item.income {
    background: var(--accent-success-bg);
}

.finance-item.expense {
    background: var(--accent-danger-bg);
}

.finance-item.profit {
    background: var(--accent-info-bg);
}

.finance-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.finance-value {
    font-size: 20px;
    font-weight: 700;
}

.income .finance-value {
    color: var(--accent-success);
}

.expense .finance-value {
    color: var(--accent-danger);
}

.profit .finance-value {
    color: var(--accent-info);
}

/* === Pending List === */
.pending-list,
.rentals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.pending-item,
.rental-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-warning);
    transition: var(--transition);
}

.rental-item {
    border-left-color: var(--accent-success);
}

.pending-item:hover,
.rental-item:hover {
    background: var(--bg-card-hover);
}

.pending-info,
.rental-info-brief {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pending-name,
.rental-name {
    font-weight: 600;
    font-size: 13px;
}

.pending-detail,
.rental-detail {
    font-size: 11px;
    color: var(--text-secondary);
}

.pending-value {
    font-weight: 700;
    color: var(--accent-warning);
    font-size: 14px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-success), #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-danger), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-warning), #d97706);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--accent-info), #2563eb);
    color: white;
}

.btn-info:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-icon {
    padding: 8px;
    min-width: 36px;
}

.recording-btn {
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* === Page Actions === */
.page-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* === Forms === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-text,
.input-select,
.input-textarea,
.input-search {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.input-text:focus,
.input-select:focus,
.input-textarea:focus,
.input-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.input-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10L6 8z' fill='%238892a8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.input-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892a8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 38px;
    max-width: 300px;
}

.input-textarea {
    resize: vertical;
    min-height: 60px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

/* === Toggle === */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
}

.toggle input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle input:checked+.toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle input:checked+.toggle-slider::after {
    transform: translateX(20px);
    background: white;
}

.toggle-label {
    color: var(--text-secondary);
}

/* === Video Capture === */
.video-capture-area {
    background: var(--bg-input);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.video-preview {
    width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    background: #000;
    display: none;
    margin-bottom: 12px;
}

.video-preview.active {
    display: block;
}

.video-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.recorded-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.recorded-video-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent-success);
}

.recorded-video-item .remove-video {
    cursor: pointer;
    color: var(--accent-danger);
    font-size: 14px;
}

/* === Data Grid === */
.data-grid {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    /* Smaller font */
}

.data-table th {
    text-align: left;
    padding: 8px 10px;
    /* Reduced padding */
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 8px 10px;
    /* Reduced padding */
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Specific column adjustments */
.data-table td.obs-col {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* === Status Badges === */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: var(--accent-success-bg);
    color: var(--accent-success);
}

.badge-danger {
    background: var(--accent-danger-bg);
    color: var(--accent-danger);
}

.badge-warning {
    background: var(--accent-warning-bg);
    color: var(--accent-warning);
}

.badge-info {
    background: var(--accent-info-bg);
    color: var(--accent-info);
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* === Detail Card === */
.detail-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    grid-column: span 2;
}

.rental-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rental-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rental-info-item .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.rental-info-item .value {
    font-size: 14px;
    font-weight: 600;
}

.checkin-details {
    display: contents;
}

/* === Financial Filters === */
.financial-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.financial-filters .input-select {
    width: auto;
    min-width: 140px;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

/* === Toast === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    font-size: 13px;
}

.toast.success {
    border-left: 4px solid var(--accent-success);
}

.toast.error {
    border-left: 4px solid var(--accent-danger);
}

.toast.warning {
    border-left: 4px solid var(--accent-warning);
}

.toast.info {
    border-left: 4px solid var(--accent-info);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* === Empty State === */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
}

/* === Filter Group === */
.filter-group {
    display: flex;
    gap: 8px;
}

.filter-group .input-select {
    width: auto;
    min-width: 120px;
    padding: 6px 32px 6px 10px;
    font-size: 12px;
}

/* === Action Buttons in Tables === */
.action-btns {
    display: flex;
    gap: 6px;
}

/* === Report Content === */
.report-section {
    margin-bottom: 24px;
}

.report-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid .card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .page-container {
        padding: 16px;
    }

    .topbar {
        padding: 0 16px;
    }

    .stats-grid,
    .stats-3 {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .finance-summary {
        flex-direction: column;
    }

    .financial-filters {
        flex-direction: column;
    }

    .financial-filters .input-select {
        width: 100%;
    }

    .page-actions {
        flex-direction: column;
    }

    .page-actions .input-search {
        max-width: 100%;
    }

    .detail-card {
        grid-column: span 1;
    }

    .checkin-details {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        font-size: 12px;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {

    .stats-grid,
    .stats-3 {
        grid-template-columns: 1fr;
    }

    html {
        font-size: 13px;
    }
}

/* === Neon Status Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.badge-success {
    /* Disponível */
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge-danger {
    /* Alugado */
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.badge-warning {
    /* Manutenção */
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-secondary {
    /* Vendido */
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    /* Purple Neon */
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* Hover effects for extra flair */
.badge:hover {
    transform: scale(1.05);
}

.badge-success:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.2);
}

.badge-danger:hover {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.2);
}

.badge-warning:hover {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.2);
}

.badge-secondary:hover {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.2);
}