/* Narula Field Track - Premium SaaS Web Admin Panel Stylesheet (Stripe/Linear style) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Inter', sans-serif;
    
    /* Default/Dark Theme Color Tokens */
    --bg-main: #0b0f19;
    --bg-panel: rgba(17, 24, 39, 0.7);
    --bg-sidebar: #0f172a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accents */
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --primary-border: rgba(99, 102, 241, 0.3);
    
    /* Semantic Colors */
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.1);
    --color-yellow: #eab308;
    --color-yellow-glow: rgba(234, 179, 8, 0.1);
    --color-orange: #f97316;
    --color-orange-glow: rgba(249, 115, 22, 0.1);
    --color-red: #ef4444;
    --color-red-glow: rgba(239, 68, 68, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 28px -3px rgba(0, 0, 0, 0.4), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    --shadow-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);

    /* Dimensions */
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Color Tokens overrides */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-panel: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Accents */
    --primary: #4f46e5; /* Indigo */
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.08);
    --primary-border: rgba(79, 70, 229, 0.2);
    
    /* Semantic Glows */
    --color-green-glow: rgba(16, 185, 129, 0.08);
    --color-yellow-glow: rgba(234, 179, 8, 0.08);
    --color-orange-glow: rgba(249, 115, 22, 0.08);
    --color-red-glow: rgba(239, 68, 68, 0.08);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --shadow-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Base gradients (Dark mode only) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
[data-theme="light"] body::before {
    opacity: 0.15;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* App Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Collapsible Left Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition-smooth);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-brand {
    height: var(--navbar-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-brand {
    padding: 0 22px;
}

.sidebar-brand svg {
    flex-shrink: 0;
}

.sidebar-brand h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.15s ease;
}

.sidebar.collapsed .sidebar-brand h2 {
    opacity: 0;
    pointer-events: none;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar.collapsed .sidebar-menu {
    padding: 16px 8px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
    border: 1px solid transparent;
}

.sidebar.collapsed .sidebar-item a {
    padding: 10px 0;
    justify-content: center;
    width: 100%;
}

.sidebar-item a:hover {
    color: var(--text-primary);
    background: var(--primary-glow);
    border-color: rgba(99, 102, 241, 0.08);
}

.sidebar-item.active a {
    color: var(--text-primary);
    background: var(--primary-glow);
    border-color: var(--primary-border);
    font-weight: 600;
}

.sidebar-item a svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.sidebar-item.active a svg, .sidebar-item a:hover svg {
    color: var(--primary);
}

.sidebar-item a span {
    transition: opacity 0.15s ease;
}

.sidebar.collapsed .sidebar-item a span,
.sidebar.collapsed .sidebar-item a .menu-text,
.sidebar.collapsed .sidebar-item a .menu-badge {
    display: none;
}

.sidebar.collapsed .sidebar-item a {
    padding: 10px 0;
    justify-content: center !important;
    width: 100%;
}

/* Sidebar Footer Badge */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 12px 0;
    align-items: center;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.sidebar.collapsed .user-badge {
    justify-content: center;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-glow);
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

.sidebar.collapsed .user-info {
    display: none;
}

.user-info .user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Fixed Top Navbar Header */
.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 90;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.sidebar-collapsed .top-navbar {
    left: 70px;
}

.top-navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.menu-toggle-btn:hover {
    background: var(--primary-glow);
    color: var(--text-primary);
}

.menu-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Breadcrumbs */
.breadcrumbs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.breadcrumbs-nav a:hover {
    color: var(--primary);
}

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

.breadcrumbs-current {
    font-weight: 600;
    color: var(--text-primary);
}

/* Top Navbar Right Tools */
.top-navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search bar styling */
.nav-search-wrapper {
    position: relative;
    width: 220px;
}

@media (max-width: 768px) {
    .nav-search-wrapper {
        display: none;
    }
}

.nav-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 12px 7px 32px;
    color: var(--text-primary);
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

[data-theme="light"] .nav-search-input {
    background: rgba(0, 0, 0, 0.03);
}

.nav-search-input:focus {
    outline: none;
    border-color: var(--primary);
    width: 260px;
    background: rgba(0,0,0,0.15);
}

.nav-search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Icon Action Buttons */
.nav-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-action-btn:hover {
    background: var(--primary-glow);
    color: var(--text-primary);
}

.nav-action-btn svg {
    width: 18px;
    height: 18px;
}

.nav-notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: var(--color-red);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-panel);
}

/* User Avatar Dropdown trigger */
.nav-user-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-user-dropdown:hover {
    background: var(--primary-glow);
}

/* Dropdown menus styling */
.dropdown-menu-box {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 150;
    animation: dropdownFade 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu-box.show {
    display: flex;
}

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

.dropdown-header-info {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.dropdown-header-info .name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.dropdown-header-info .email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition-smooth);
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item-link:hover {
    background: var(--primary-glow);
    color: var(--text-primary);
}

.dropdown-item-link svg {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
}

.dropdown-item-link:hover svg {
    color: var(--primary);
}

/* Notifications Dropdown Panel */
.dropdown-menu-notifications {
    width: 320px;
    padding: 0;
}

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.notification-panel-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.notification-panel-header a {
    font-size: 0.78rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.notification-panel-list {
    max-height: 280px;
    overflow-y: auto;
}

.notification-row-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.notification-row-item:hover {
    background: rgba(255, 255, 255, 0.01);
}

.notification-row-item.unread {
    background: rgba(99, 102, 241, 0.03);
}

.notification-icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.notification-row-content {
    display: flex;
    flex-direction: column;
    font-size: 0.82rem;
}

.notification-row-text {
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-row-text strong {
    color: var(--text-primary);
}

.notification-row-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-panel-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notification-panel-footer a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.notification-panel-footer a:hover {
    color: var(--primary);
}

/* Main View Pane Layout */
.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-left: var(--sidebar-width);
    transition: var(--transition-smooth);
}

.sidebar-collapsed .main-container {
    padding-left: 70px;
}

.main-content {
    flex-grow: 1;
    padding: 32px;
    margin-top: var(--navbar-height);
    min-width: 0;
}

/* Header bar inside pages (below top navbar) */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-title h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}

.header-title p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Glassmorphic Container Utilities */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-color);
}
[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.02);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}
[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-red);
    border-color: rgba(239, 68, 68, 0.15);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Stat Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.stat-details h3 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.stat-details .number {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 6px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.primary { background: var(--primary-glow); color: var(--primary); }
.stat-icon.success { background: var(--color-green-glow); color: var(--color-green); }
.stat-icon.warning { background: var(--color-yellow-glow); color: var(--color-yellow); }
.stat-icon.orange { background: var(--color-orange-glow); color: var(--color-orange); }
.stat-icon.danger { background: var(--color-red-glow); color: var(--color-red); }

/* Charts Layout */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

/* Forms styling */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    font-weight: 500;
}

[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(0, 0, 0, 0.2);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* Legacy Tables Layout (Responsive wraps) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.05);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.88rem;
    vertical-align: middle;
    transition: var(--transition-smooth);
}

.table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.badge-green { background: var(--color-green-glow); color: var(--color-green); border-color: rgba(16, 185, 129, 0.15); }
.badge-yellow { background: var(--color-yellow-glow); color: var(--color-yellow); border-color: rgba(234, 179, 8, 0.15); }
.badge-orange { background: var(--color-orange-glow); color: var(--color-orange); border-color: rgba(249, 115, 22, 0.15); }
.badge-red { background: var(--color-red-glow); color: var(--color-red); border-color: rgba(239, 68, 68, 0.15); }
.badge-primary { background: var(--primary-glow); color: var(--primary); border-color: var(--primary-border); }

/* Details grid layout */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.detail-item {
    margin-bottom: 12px;
}

.detail-item label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.detail-item p {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 4px;
    color: var(--text-primary);
}

/* Modals Refined */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 28px;
    transform: translateY(16px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.modal-backdrop.show .modal-box {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--primary-glow);
    color: var(--text-primary);
}

/* Filters row */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.filter-item {
    flex: 1;
    min-width: 180px;
}

/* Login Page Layout (Light/Dark mode responsive) */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--bg-main);
    transition: var(--transition-smooth);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

/* Leaflet maps custom override */
#map {
    height: 350px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.leaflet-container {
    background: #0f172a !important;
}

/* Messages alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 600;
}
.alert-success {
    background: var(--color-green-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-green);
}
.alert-danger {
    background: var(--color-red-glow);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-red);
}

/* General Layout spacing modifications */
@media (max-width: 768px) {
    .top-navbar {
        padding: 0 16px;
        left: 0;
    }
    .main-container {
        padding-left: 0;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-show {
        transform: translateX(0);
    }
    .main-content {
        padding: 16px;
    }
}

/* Premium SaaS Custom Pagination Style */
.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

[data-theme="light"] .page-link {
    background: rgba(0, 0, 0, 0.02);
}

.page-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

[data-theme="light"] .page-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.page-item.active .page-link {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    opacity: 0.5;
    background: transparent;
    border-color: var(--border-color);
    cursor: not-allowed;
    pointer-events: none;
}
