:root {
    /* Colors - Ultra Premium Dark Palette */
    --primary: #6366f1;
    /* Indigo 500 */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --secondary: #94a3b8;
    /* Slate 400 */
    --success: #10b981;
    /* Emerald 500 */
    --warning: #f59e0b;
    /* Amber 500 */
    --danger: #ef4444;
    /* Red 500 */

    /* Backgrounds */
    --bg-body: #0f172a;
    /* Slate 900 */
    --bg-sidebar: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --bg-card: rgba(30, 41, 59, 0.6);
    /* Glass effect base */
    --bg-input: rgba(15, 23, 42, 0.5);
    /* Darker transparent input */

    /* Text */
    --text-main: #f1f5f9;
    /* Slate 100 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    /* Borders & Glass */
    --border-color: rgba(148, 163, 184, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 25%);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Login Screen */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Ensure full viewport height */
    background: #0f172a;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
    display: flex;
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
    z-index: 9999;
    overflow: hidden;
}

/* Background Animation Elements */
.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.login-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(25px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(99, 102, 241, 0.1);
    /* Glow effect */
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.login-logo i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

.login-card h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-card .form-group {
    margin-bottom: 1.2rem;
}

.login-card .form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-footer a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    border-bottom: var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.sidebar-nav {
    flex: 1;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    /* Light Indigo */
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.nav-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.topbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: transparent;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(30, 41, 59, 0.4);
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    border-radius: 50px;
    border: var(--glass-border);
    backdrop-filter: blur(8px);
}

.notifications {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.notifications:hover {
    color: var(--text-main);
}

.notifications .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

.avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.5);
    padding: 2px;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    /* Reduced from 3rem */
}

/* Cards & Stats */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    /* Reduced gap */
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    /* Reduced padding */
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Icon Colors with glow */
.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.icon-box.green {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.icon-box.orange {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.icon-box.purple {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.icon-box.red {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-info .value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Content Sections */
.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.5s ease-out forwards;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.data-table .rentals-actions,
.data-table .grid-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: max-content;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

.data-table td:first-child {
    border-radius: 12px 0 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.02);
}

.data-table td:last-child {
    border-radius: 0 12px 12px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
}

.data-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.data-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Modal */

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    /* Darker overlay */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    width: 100%;
    max-width: 900px;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0) !important;
    opacity: 1 !important;
}

.modal-header {
    background: transparent;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.close-modal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    /* Custom Scrollbar for modal */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.modal-footer .btn-secondary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    box-shadow: none;
    font-weight: 600;
}

.modal-footer .btn-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
    color: #f87171;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        height: 100vh;
        width: 85%;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 1.5rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Financial Dashboard Specifics */
.fin-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.fin-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.fin-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fin-card small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.fin-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.fin-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.fin-card.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.fin-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.alert-box {
    background: rgba(255, 170, 0, 0.1);
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-box .alert-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Dashboard Reference Style */
.dashboard-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--bg-card);
    /* Glass effect */
    backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    /* Slightly sharper corners like reference */
    border: var(--glass-border);
    border-left: 4px solid var(--primary);
    /* Default border color */
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    /* Fixed height for uniformity */
}

/* Upload Styles */
.file-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-zone i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.file-upload-zone:hover i {
    color: var(--primary);
}

.file-upload-zone p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.file-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Profile Picture Upload */
.profile-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-preview i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.profile-upload-btn {
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-upload-btn:hover {
    text-decoration: underline;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    /* Square with rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
}

.info-action {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.info-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.info-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Card Colors variations */
.info-card.cyan {
    border-left-color: #06b6d4;
}

.info-card.cyan .info-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.info-card.indigo {
    border-left-color: #6366f1;
}

.info-card.indigo .info-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.info-card.green {
    border-left-color: #10b981;
}

.info-card.green .info-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.info-card.orange {
    border-left-color: #f59e0b;
}

.info-card.orange .info-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.info-card.red {
    border-left-color: #ef4444;
}

.info-card.red .info-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.info-card.blue {
    border-left-color: #3b82f6;
}

.info-card.blue .info-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .4s;
    display: inline-block;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-switch input:checked+.slider {
    background-color: var(--primary);
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* =========================================
   Mobile Simulator & Client App Styles
   ========================================= */

/* Mobile Frame Container */
.mobile-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    margin-top: 1rem;
    overflow: hidden;
    min-height: 850px;
}

.mobile-device-frame {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    box-shadow:
        0 0 0 12px #1f2937,
        0 0 0 14px #374151,
        0 25px 50px -12px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    border: 8px solid #000;
}

/* Simulated App Content */
.client-app-container {
    width: 100%;
    height: 100%;
    background: #0f172a;
    color: #f8fafc;
    overflow-y: auto;
    position: relative;
    font-family: 'Outfit', sans-serif;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

/* Hide Scrollbar in App */
.client-app-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* App Header */
.app-header {
    padding: 2.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(to bottom, #0f172a, rgba(15, 23, 42, 0.95));
    position: sticky;
    top: 0;
    z-index: 10;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.user-info small {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
}

.user-info h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.notification-bell {
    position: relative;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.notification-bell .dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

/* Vehicle Card Main */
.vehicle-card-main {
    margin: 0.5rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.vehicle-card-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.vehicle-header span {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vehicle-card-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
    color: white;
}

.vehicle-plate {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: #e2e8f0;
}

.vehicle-image-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.vehicle-image-placeholder i {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

/* Alerts Grid */
.alerts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

.app-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-card.danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.1);
}

.app-card.warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.1);
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.app-card.danger .card-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.app-card.warning .card-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.app-card small {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
}

.app-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.app-card .highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.bad-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    align-self: flex-start;
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: 0 1.5rem 2rem;
}

.action-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.action-btn .icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.action-btn:active .icon {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
}

.action-btn span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.section-title {
    padding: 0 1.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px;
    /* Safe area */
}

.bottom-nav .nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.7rem;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.bottom-nav .nav-icon i {
    font-size: 1.25rem;
}

.bottom-nav .nav-icon.active {
    color: #6366f1;
}

/* =========================================
   Web Browser Simulator Styles
   ========================================= */

.browser-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    margin-top: 1rem;
    min-height: 850px;
    width: 100%;
}

.browser-frame {
    width: 100%;
    max-width: 1200px;
    height: 800px;
    background: #0f172a;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-header {
    height: 40px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dot.red {
    background: #ef4444;
}

.browser-dot.yellow {
    background: #f59e0b;
}

.browser-dot.green {
    background: #10b981;
}

.browser-address-bar {
    flex: 1;
    height: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    color: #64748b;
}

/* =========================================
   Settings Module Styles
   ========================================= */

.settings-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.settings-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tabs */
.settings-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1px;
}

.settings-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 0;
    margin-right: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    top: 1px;
}

.settings-tab-btn:hover {
    color: var(--text-main);
}

.settings-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Cards */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.settings-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-group-title i {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 8px;
    font-size: 1rem;
}

.settings-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-sm {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.user-details h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.user-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.role-badge.admin {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-indicator.active {
    color: var(--success);
}

.status-indicator.active .status-dot {
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Responsive adjustments for Web View */
.browser-frame .client-app-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 0;
    /* Web doesn't have bottom nav usually, but we keep it for now or hide it */
    display: flex;
    flex-direction: column;
}

.browser-frame .app-header {
    padding: 1rem 2rem;
}

.browser-frame .vehicle-card-main {
    margin: 1rem 2rem;
    max-width: 600px;
    align-self: center;
    width: calc(100% - 4rem);
}

.browser-frame .alerts-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Keep as grid */
    padding: 0 2rem 2rem;
    max-width: 800px;
    width: 100%;
    align-self: center;
    gap: 1.5rem;
}

.browser-frame .quick-actions {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 2rem 2rem;
    max-width: 800px;
    width: 100%;
    align-self: center;
}

.browser-frame .section-title {
    padding-left: 2rem;
    max-width: 800px;
    align-self: center;
    width: 100%;
}

.browser-frame .bottom-nav {
    position: relative;
    /* Not fixed at bottom for web view usually, but let's keep it sticky or relative */
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    /* Push to bottom */
}