@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.pulse-warning {
    animation: pulse-warning 2s infinite;
}

.pulse-animation {
    animation: pulse-red 2s infinite;
    border-radius: 50%;
}

: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);
    --warning-glow: rgba(245, 158, 11, 0.3);
    --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;
}

body.light-theme {
    /* Colors - Clean Light Palette */
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    --secondary: #64748b;

    /* Backgrounds */
    --bg-body: #f1f5f9;
    /* Slate 100 */
    --bg-sidebar: rgba(255, 255, 255, 0.9);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-input: rgba(255, 255, 255, 0.9);

    /* Text */
    --text-main: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Borders & Glass */
    --border-color: rgba(148, 163, 184, 0.3);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    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);
}

/* Hide scrollbar for horizonal mobile actions but keep functionality */
.custom-scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.custom-scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 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);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-premium-wrapper {
    width: 64px;
    height: 64px;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.logo-premium-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
}

.logo-premium-wrapper img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.logo-text-premium {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.logo-premium-wrapper-sidebar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 12px;
}

.logo-premium-wrapper-sidebar img {
    height: 20px;
    width: auto;
}

.logo-text-premium-sidebar {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.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: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo img {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.4));
    margin-bottom: 0.5rem;
}

.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;
    gap: 2rem;
}

/* Global search bar removed as per user request to avoid clutter */
.topbar-search {
    display: none !important;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.25rem 1.25rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.search-input-wrapper i {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 0.75rem;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.6rem 0;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.4);
    padding: 0.4rem 0.6rem 0.4rem 1.25rem;
    border-radius: 50px;
    border: var(--glass-border);
    backdrop-filter: blur(8px);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.page-title {
    flex: 1;
    min-width: 0;
}

#page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notifications {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    /* Slightly larger for better hit area and glow */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notifications:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.notifications.active {
    color: white;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.notifications .badge {
    position: absolute;
    top: 2px;
    /* Adjusted for larger container */
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
    z-index: 10;
}

.avatar {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.5);
    object-fit: cover;
}

.avatar-initials {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.user-info {
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 30px;
}

.user-info.active {
    background: rgba(255, 255, 255, 0.05);
}

.user-info.active .avatar-initials {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.7);
    transform: scale(1.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info.active span {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}



/* Notification Item Specifics */
.notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item.sos .icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.notification-item.reservation .icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.notification-item.overdue .icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.notification-content h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.notification-content p {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-time {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.text-danger {
    color: var(--danger) !important;
}

.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;
}

/* Dashboard Layout Adjustments */
.dashboard-content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .dashboard-content-split {
        grid-template-columns: 1fr;
    }
}

.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: 0;
}

.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(auto-fit, minmax(32px, 1fr));
    gap: 0.5rem;
    min-width: 120px;
    justify-content: end;
}

.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-toggle-type {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 18px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.btn-toggle-type:first-child {
    border-radius: 50px 0 0 50px;
    padding-left: 20px;
}

.btn-toggle-type:last-child {
    border-radius: 0 50px 50px 0;
    padding-right: 20px;
    border-left: none;
}

.btn-toggle-type.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 2;
}

.btn-toggle-type:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.branding-toggle-container {
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-sq {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon-sq:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon-sq:active {
    transform: translateY(0);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* 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;
    vertical-align: middle;
}

/* Search Box Premium */
.premium-search-box {
    position: relative;
    max-width: 600px;
    margin: 1.5rem 0 2rem;
    display: flex;
    align-items: center;
}

.premium-search-box i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.premium-search-box .form-control {
    padding-left: 3rem !important;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    height: 52px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-search-box .form-control:focus {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.premium-search-box .form-control:focus+i {
    color: var(--primary);
}

/* Rentals Specific Styles */
.filter-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group .form-control {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.rental-info-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rental-info-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rental-info-row i {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.rental-client-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.rental-vehicle-info {
    color: var(--text-main);
    font-size: 0.85rem;
}

.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,
.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 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;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

/* Elite Transition Classes */
.content-transition {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

.content-transition.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.content-transition.fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: contentReveal 0.3s forwards ease-out;
}

@keyframes contentReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-body {
    padding: 1.5rem;
    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 1rem;
        gap: 0.75rem;
    }

    #page-title {
        font-size: 1.25rem;
    }

    .user-profile {
        padding: 0.35rem 0.35rem 0.35rem 0.5rem;
        gap: 0.5rem;
    }

    .user-profile span {
        display: none;
    }

    .user-profile .notifications {
        width: 36px;
        height: 36px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .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);
    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 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card.clickable {
    cursor: pointer;
}

.info-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

tr.clickable {
    cursor: pointer;
    transition: background 0.2s ease;
}

tr.clickable:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* 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;
    resize: vertical;
    min-height: 100px;
}

/* Base Styles */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* App Segmented Control (Premium) */
.segmented-control-app {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.segmented-control-app .segment {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.segmented-control-app .segment.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.segmented-control-app .segment i {
    opacity: 0.7;
    transition: all 0.3s;
}

.segmented-control-app .segment.active i {
    opacity: 1;
    transform: scale(1.1);
}

.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;
    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;
}

.settings-grid-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.settings-grid-row.cols-2-1 {
    grid-template-columns: 2fr 1fr;
}

.settings-grid-row.cols-1-2-05 {
    grid-template-columns: 1fr 2fr 0.5fr;
}

.settings-grid-row.cols-1-1-04 {
    grid-template-columns: 1fr 1fr 0.4fr;
}

.settings-grid-row.cols-1-1 {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.5rem;
}

.settings-group-title.responsive-title {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {

    .settings-grid-row.cols-2-1,
    .settings-grid-row.cols-1-2-05,
    .settings-grid-row.cols-1-1-04,
    .settings-grid-row.cols-1-1 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 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 */
}

/* Settings Tabs Visibility - FORCE OVERRIDE */
.settings-content .tab-pane {
    display: none !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.settings-content .tab-pane.active {
    display: block !important;
    opacity: 1;
    height: auto;
    overflow: visible;
    animation: slideUp 0.4s ease-out;
}

/* Inspection Photo Cards */
.inspection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4;
    /* Match mobile screen ratio roughly */
    width: 100%;
    /* Ensure it fills grid cell */
    max-width: 100%;
    /* Remove pixel limit, let grid control it */
    margin: 0;
    /* Remove auto margin */
    background: #1e293b;
    /* Solid background to prevent transparency issues */
}

.inspection-card.filled {
    border-color: var(--success);
}

.inspection-card-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inspection-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.inspection-card.filled .inspection-icon {
    background: var(--success);
    color: white;
}

.inspection-label {
    font-weight: 600;
    font-size: 1rem;
}

.inspection-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.inspection-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.inspection-card-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.inspection-action-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.inspection-card-body:hover .inspection-action-text {
    color: white;
}

.inspection-upload-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.inspection-upload-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.inspection-footer-counter {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    /* Negative margin to stretch full width in modal */
}

/* FINAL OVERRIDE FOR DROPDOWNS - COORDINATED VISUAL FIX */
.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 320px !important;
    background-color: #1e1e2d !important;
    /* USER REQUESTED COLOR */
    background: #1e1e2d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    z-index: 9999 !important;
    /* USER REQUESTED Z-INDEX */
    overflow: hidden !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-header {
    padding: 1rem 1.25rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #a2a2ba !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.dropdown-body {
    max-height: 400px !important;
    overflow-y: auto !important;
    background: #1e1e2d !important;
}

.dropdown-item,
.dropdown-body a {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 0.8rem 1.25rem !important;
    color: #e1e1e6 !important;
    font-size: 0.9rem !important;
    transition: background 0.2s !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.dropdown-item:hover,
.dropdown-body a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.dropdown-item i,
.dropdown-body a i {
    width: 18px !important;
    color: #727cf5 !important;
    font-size: 1rem !important;
}

.dropdown-footer {
    padding: 0.8rem !important;
    text-align: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dropdown-footer a {
    color: #727cf5 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
}

.notification-item {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.2s !important;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* =====================================================
   MOBILE CARD LIST — replaces horizontal-scroll tables
   on screens ≤ 768px
   ===================================================== */

.mobile-card-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mobile-card-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-card-header.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mobile-card-header.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.mobile-card-header.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mobile-card-header.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mobile-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
}

.mobile-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mobile-card-badge.available {
    background: #10b981;
}

.mobile-card-badge.rented {
    background: rgba(239, 68, 68, 0.85);
}

.mobile-card-badge.maintenance {
    background: rgba(245, 158, 11, 0.85);
}

.mobile-card-badge.active {
    background: #10b981;
}

.mobile-card-badge.pending {
    background: rgba(245, 158, 11, 0.85);
}

.mobile-card-badge.completed {
    background: rgba(100, 116, 139, 0.85);
}

.mobile-card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mobile-card-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mobile-card-row i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-card-row span {
    color: var(--text-primary);
}

.mobile-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-card-actions .btn {
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.6rem;
    border-radius: 10px;
}

/* Show/hide logic */
@media (max-width: 768px) {
    .mobile-card-list {
        display: flex;
    }

    .desktop-table {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-card-list {
        display: none !important;
    }

    .desktop-table {
        display: block;
    }
}

/* =====================================================
   MOBILE FORM POLISH — modais de cadastro ≤ 768px
   ===================================================== */

@media (max-width: 768px) {

    /* 1. Breathing room inside modal body */
    #modal-body {
        padding: 1.25rem 1rem 2rem !important;
    }

    /* 2. More vertical gap between form groups */
    #modal-body .form-group {
        margin-bottom: 1.25rem !important;
    }

    /* 3. Larger tap targets for inputs and selects */
    #modal-body .form-control,
    #modal-body input,
    #modal-body select,
    #modal-body textarea {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        min-height: 48px;
    }

    /* 4. Labels sit close to their fields */
    #modal-body label {
        font-size: 0.8rem !important;
        margin-bottom: 0.35rem !important;
        display: block;
    }

    /* 5. Collapse 3/4-col grids to 2 cols on mobile */
    #modal-body .form-group[style*="1fr 1fr 1fr 1fr"],
    #modal-body .form-group[style*="1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* 6. Vehicle form section dividers */
    #modal-body [style*="border-bottom"][style*="font-weight: 600"] {
        margin-top: 1.5rem !important;
        font-size: 0.9rem;
    }

    /* =====================================================
       DASHBOARD CARD POLISH — info-cards ≤ 768px
       ===================================================== */

    .dashboard-grid-full {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem !important;
    }

    .info-card {
        display: flex !important;
        flex-direction: column !important;
        height: 150px !important;
        /* Standardize height */
        padding: 1rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .info-card .info-card-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .info-card .info-icon {
        margin-bottom: 0.25rem;
    }

    .info-card .badge {
        position: static !important;
        font-size: 0.7rem;
    }

    .info-card h3 {
        font-size: 1.25rem !important;
        margin: 0.25rem 0 !important;
    }

    .info-card p {
        font-size: 0.8rem !important;
    }

    .info-card-footer {
        display: none !important;
    }

    /* Hide footer on mobile to save space */

    /* Generic Grid Utilities for Mobile Forms */
    .form-row-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .form-row-2-mobile-keep {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Segmented Control Premium App Style */
    .segmented-control-app {
        display: flex;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 16px;
        padding: 6px;
        gap: 4px;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .segmented-control-app .segment {
        flex: 1;
        padding: 10px;
        text-align: center;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--text-muted);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .segmented-control-app .segment:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-main);
    }

    .segmented-control-app .segment.active {
        background: var(--primary);
        color: white;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }


    .form-full-width {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* Financial & Dashboard Mobile Grid Refinements */
    .dashboard-grid-full .info-card,
    .dashboard-grid-full .stat-card,
    .mobile-fin-grid .fin-card {
        height: 150px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem !important;
    }

    .info-card h3,
    .stat-card .value,
    .fin-card h3 {
        font-size: 1.5rem !important;
        margin: 0.25rem 0 !important;
    }

    /* Fixed height for financial cards too */
    .mobile-fin-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .mobile-fin-grid .fin-card {
        height: 120px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem !important;
    }
}

.info-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.5rem !important;
}

.info-card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.info-card-body h3 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 0.2rem !important;
}

.info-card-body p {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 !important;
}

.info-card-footer {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    margin-top: 0.5rem !important;
    font-size: 0.72rem !important;
    opacity: 0.8 !important;
}

.info-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
}

/* Hamburger menu: hidden on desktop, visible on mobile */
.toggle-sidebar {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .toggle-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Skeleton loading pulse animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Instant click feedback — fires on mousedown before JS resolves */
.nav-item:active {
    transform: scale(0.97);
    opacity: 0.82;
    transition: transform 80ms ease, opacity 80ms ease;
}

.clickable:active {
    transform: scale(0.98);
    opacity: 0.85;
    transition: transform 80ms ease, opacity 80ms ease;
}

.btn:active {
    transform: scale(0.97);
    transition: transform 80ms ease;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    #rentals-filters>div:first-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    #rentals-filters .filter-group label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    #rentals-filters .filter-group select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    pointer-events: auto;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.success i {
    color: var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.toast.info i {
    color: var(--primary);
}

/* =====================================================
   MODAL OVERLAY & ANIMATIONS
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Specific to Client Profile Pic */
.profile-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-preview i {
    font-size: 2.5rem;
    color: var(--text-muted);
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-upload-btn {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-upload-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Confirmation Modal Utility (Used by app.confirm) */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.confirm-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.confirm-btn-ok {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}