/* =====================================================
   STOCKTRIC.COM - Main Stylesheet
   Modern Stock & Equipment Management System
   ===================================================== */

:root {
    /* Primary Colors - Red Theme */
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --primary-bg: #fef2f2;
    
    /* Secondary Colors */
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    
    /* Status Colors */
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --topbar-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-outline {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: white;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--primary);
    color: white;
}

.badge-success { background: var(--success); }
.badge-warning { background: var(--warning); }
.badge-danger { background: var(--danger); }
.badge-info { background: var(--info); }

/* Status Tags */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
}

.status-available { background: var(--success-bg); color: var(--success); }
.status-reserved { background: var(--warning-bg); color: var(--warning); }
.status-checked_out { background: var(--info-bg); color: var(--info); }
.status-maintenance { background: var(--danger-bg); color: var(--danger); }

/* =====================================================
   LANDING PAGE
   ===================================================== */

#landing-page {
    min-height: 100vh;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--gray-700);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, white 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.preview-header {
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #10b981; }

.preview-content {
    display: flex;
    height: 400px;
}

.preview-sidebar {
    width: 60px;
    background: var(--gray-800);
}

.preview-main {
    flex: 1;
    padding: 20px;
    background: var(--gray-50);
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preview-card {
    height: 80px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.preview-chart {
    height: 200px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-600);
}

.price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
}

.price .period {
    font-size: 16px;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.pricing-features li i {
    color: var(--success);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.landing-footer {
    padding: 60px 0 30px;
    background: var(--gray-900);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
}

.footer-brand .logo {
    color: white;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--gray-400);
}

.footer-links a {
    display: block;
    color: var(--gray-300);
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-500);
}

/* =====================================================
   MODALS
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-400);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.auth-modal {
    padding: 48px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* =====================================================
   APP LAYOUT
   ===================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gray-900);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition-slow);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .sidebar-header span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-details {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-800);
}

.sidebar-header .logo {
    color: white;
    font-size: 20px;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--gray-800);
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-400);
    border-radius: var(--border-radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--gray-800);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-item .badge {
    position: absolute;
    right: 12px;
    background: var(--danger);
}

.nav-divider {
    height: 1px;
    background: var(--gray-800);
    margin: 16px 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--gray-800);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition-slow);
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.mobile-sidebar-toggle {
    display: none;
    font-size: 20px;
    color: var(--gray-600);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--gray-100);
    border-radius: var(--border-radius-sm);
    width: 320px;
}

.search-box i {
    color: var(--gray-400);
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.topbar-btn:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.user-btn {
    width: auto;
    padding: 4px 12px;
    gap: 8px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    min-width: 180px;
    display: none;
    z-index: 100;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-50);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

/* Page Content */
.page-content {
    padding: 24px;
    min-height: calc(100vh - var(--topbar-height));
}

/* =====================================================
   DASHBOARD
   ===================================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card-icon.primary { background: var(--primary-bg); color: var(--primary); }
.stat-card-icon.success { background: var(--success-bg); color: var(--success); }
.stat-card-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-card-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-card-icon.info { background: var(--info-bg); color: var(--info); }

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-card-label {
    color: var(--gray-500);
    font-size: 14px;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-top: 8px;
}

.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* =====================================================
   TABLES
   ===================================================== */

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table .item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-table .item-image {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.data-table .item-name {
    font-weight: 500;
    color: var(--gray-900);
}

.data-table .item-sku {
    font-size: 12px;
    color: var(--gray-500);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray-500);
    transition: var(--transition);
}

.table-actions button:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.pagination-info {
    color: var(--gray-500);
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 4px;
}

.pagination-buttons button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    transition: var(--transition);
}

.pagination-buttons button:hover {
    background: var(--gray-50);
}

.pagination-buttons button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =====================================================
   INVENTORY GRID
   ===================================================== */

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.inventory-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.inventory-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.inventory-card-image {
    height: 160px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 48px;
}

.inventory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inventory-card-body {
    padding: 16px;
}

.inventory-card-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.inventory-card-sku {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.inventory-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inventory-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

/* =====================================================
   CALENDAR
   ===================================================== */

.calendar-container {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-nav button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
}

.calendar-nav h3 {
    font-size: 18px;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day-number {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.calendar-day.other-month .calendar-day-number {
    color: var(--gray-400);
}

.calendar-day.today .calendar-day-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
}

.calendar-event {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event.reservation {
    background: var(--info-bg);
    color: var(--info);
}

.calendar-event.event {
    background: var(--success-bg);
    color: var(--success);
}

.calendar-event.vehicle {
    background: var(--warning-bg);
    color: var(--warning);
}

/* =====================================================
   MESSAGING
   ===================================================== */

.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - var(--topbar-height) - 48px);
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.conversations-list {
    border-right: 1px solid var(--gray-200);
    overflow-y: auto;
}

.conversations-header {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conversations-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: var(--gray-50);
}

.conversation-item.active {
    background: var(--primary-bg);
}

.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.conversation-preview {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    text-align: right;
}

.conversation-time {
    font-size: 12px;
    color: var(--gray-400);
}

.conversation-unread {
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-left: auto;
}

.chat-container {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
}

.message-bubble {
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    border-top-left-radius: 4px;
}

.message.sent .message-bubble {
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

.chat-input {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary);
}

/* =====================================================
   SCANNER
   ===================================================== */

.scanner-modal {
    max-width: 500px;
    padding: 24px;
}

.scanner-modal h2 {
    text-align: center;
    margin-bottom: 20px;
}

.scanner-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: black;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.scanner-actions {
    margin-bottom: 20px;
}

.scanner-actions select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
}

.scanner-result {
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    min-height: 60px;
}

/* =====================================================
   NOTIFICATIONS PANEL
   ===================================================== */

.notifications-panel {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    width: 380px;
    height: calc(100vh - var(--topbar-height));
    background: white;
    border-left: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: var(--transition-slow);
    z-index: 200;
    overflow-y: auto;
}

.notifications-panel.active {
    transform: translateX(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.notifications-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.notifications-header button {
    font-size: 13px;
    color: var(--primary);
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--primary-bg);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.info { background: var(--info-bg); color: var(--info); }
.notification-icon.success { background: var(--success-bg); color: var(--success); }
.notification-icon.warning { background: var(--warning-bg); color: var(--warning); }
.notification-icon.danger { background: var(--danger-bg); color: var(--danger); }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--gray-400);
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gray-400);
    animation: toastSlideIn 0.3s ease;
    min-width: 300px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--gray-900);
}

.toast-message {
    font-size: 13px;
    color: var(--gray-500);
}

.toast-close {
    color: var(--gray-400);
    font-size: 18px;
}

/* =====================================================
   DRAG AND DROP
   ===================================================== */

.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    box-shadow: var(--shadow-lg);
}

.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    color: var(--gray-500);
    transition: var(--transition);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

.drop-zone i {
    font-size: 48px;
    margin-bottom: 16px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-list {
        display: none;
    }
    
    .conversations-list.active {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        background: white;
        z-index: 10;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        width: 200px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .notifications-panel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .auth-modal {
        padding: 32px 24px;
    }
    
    .search-box {
        display: none;
    }
}

/* =====================================================
   LOADING STATES
   ===================================================== */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   EMPTY STATES
   ===================================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* =====================================================
   FILTERS & TOOLBAR
   ===================================================== */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: white;
    min-width: 150px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.view-toggle button {
    padding: 8px 12px;
    background: white;
    color: var(--gray-500);
    border-right: 1px solid var(--gray-300);
}

.view-toggle button:last-child {
    border-right: none;
}

.view-toggle button.active {
    background: var(--primary);
    color: white;
}

/* =====================================================
   ITEM DETAIL MODAL
   ===================================================== */

.item-detail-modal {
    max-width: 800px;
}

.item-detail-header {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.item-detail-image {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 64px;
    flex-shrink: 0;
}

.item-detail-info {
    flex: 1;
}

.item-detail-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.item-detail-sku {
    color: var(--gray-500);
    margin-bottom: 16px;
}

.item-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.item-detail-meta-item {
    display: flex;
    flex-direction: column;
}

.item-detail-meta-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.item-detail-meta-value {
    font-weight: 500;
    color: var(--gray-900);
}

.item-detail-body {
    padding: 24px;
}

.item-detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.item-detail-tab {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.item-detail-tab:hover {
    color: var(--gray-700);
}

.item-detail-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.item-detail-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* =====================================================
   ADDITIONAL PAGE FIXES
   ===================================================== */

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 16px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.filters-bar .search-filter {
    flex: 1;
    min-width: 200px;
}

.filters-bar .search-filter input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: var(--gray-50);
}

.filters-bar select {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: white;
    min-width: 140px;
}

.filters-bar input[type="date"] {
    padding: 10px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: white;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
}

/* Page Section Full Width */
.page-section {
    width: 100%;
    min-height: calc(100vh - var(--topbar-height) - 48px);
}

/* Fix notifications panel - prevent infinite scroll */
.notifications-panel {
    max-height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
}

.notifications-list {
    max-height: calc(100vh - var(--topbar-height) - 60px);
    overflow-y: auto;
}

/* Loading overlay - properly styled */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.loading-message {
    margin-top: 16px;
    color: var(--gray-600);
    font-size: 14px;
}

/* Ensure page content takes full width */
.page-content {
    width: 100%;
    padding: 24px;
    min-height: calc(100vh - var(--topbar-height));
}

/* Fix inventory table to show full width */
.inventory-table-container,
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Fix cards grid */
.card {
    width: 100%;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.report-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.report-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.report-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.report-card p {
    color: var(--gray-500);
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.location-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.location-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.location-card p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Vehicles Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vehicle-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.vehicle-card:hover {
    box-shadow: var(--shadow-md);
}

.vehicle-card-image {
    height: 140px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 48px;
}

.vehicle-card-body {
    padding: 16px;
}

.vehicle-card-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.vehicle-card-reg {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.settings-tab {
    padding: 12px 20px;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: var(--transition);
}

.settings-tab:hover {
    color: var(--gray-700);
}

.settings-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.settings-content {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 600;
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--gray-500);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 101;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-sidebar-toggle {
        display: flex !important;
    }
}

/* Calendar Full Width */
#main-calendar {
    min-height: 600px;
}

/* FullCalendar Overrides */
.fc {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 16px;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.fc .fc-button-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.fc .fc-button-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.fc .fc-button-primary:disabled {
    background: var(--primary);
    border-color: var(--primary);
}

.fc .fc-daygrid-day.fc-day-today {
    background: var(--primary-bg);
}

/* Card margin top */
.mt-3 {
    margin-top: 20px;
}

/* Text utilities */
.text-muted {
    color: var(--gray-500);
}

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

/* =====================================================
   TICKETS & MAINTENANCE STYLES
   ===================================================== */

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ticket-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--gray-400);
}

.ticket-card:hover {
    box-shadow: var(--shadow-md);
}

.ticket-card.ticket-high {
    border-left-color: var(--danger);
}

.ticket-card.ticket-medium {
    border-left-color: var(--warning);
}

.ticket-card.ticket-low {
    border-left-color: var(--success);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-id {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 600;
}

.ticket-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.ticket-description {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.ticket-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.ticket-priority {
    font-weight: 500;
}

.priority-high { color: var(--danger); }
.priority-medium { color: var(--warning); }
.priority-low { color: var(--success); }

.ticket-item {
    font-size: 13px;
    color: var(--gray-600);
}

.ticket-item i {
    margin-right: 6px;
}

.ticket-detail {
    padding: 20px 0;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.info-item span {
    font-weight: 500;
    color: var(--gray-900);
}

/* Status tags for tickets */
.status-open { background: var(--info-bg); color: var(--info); }
.status-in_progress { background: var(--warning-bg); color: var(--warning); }
.status-resolved { background: var(--success-bg); color: var(--success); }
.status-closed { background: var(--gray-200); color: var(--gray-600); }

/* =====================================================
   LOCATION CARD STYLES
   ===================================================== */

.location-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.location-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.location-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.location-card-header h4 i {
    color: var(--primary);
    margin-right: 8px;
}

.location-address,
.location-city {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.location-description {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 8px;
}

.location-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

/* =====================================================
   USER TABLE STYLES
   ===================================================== */

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-name {
    font-weight: 500;
    color: var(--gray-900);
}

.user-username {
    font-size: 12px;
    color: var(--gray-500);
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray-500);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-icon.btn-danger:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* =====================================================
   MODAL IMPROVEMENTS
   ===================================================== */

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* =====================================================
   ACTIVITY LIST
   ===================================================== */

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon-primary { background: var(--primary-bg); color: var(--primary); }
.activity-icon-success { background: var(--success-bg); color: var(--success); }
.activity-icon-warning { background: var(--warning-bg); color: var(--warning); }
.activity-icon-danger { background: var(--danger-bg); color: var(--danger); }
.activity-icon-info { background: var(--info-bg); color: var(--info); }

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--gray-700);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: var(--gray-500);
}

/* =====================================================
   BUTTON SIZES
   ===================================================== */

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* =====================================================
   RESPONSIVE FIXES
   ===================================================== */

@media (max-width: 768px) {
    .tickets-grid,
    .locations-grid,
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filters-bar select,
    .filters-bar input {
        width: 100%;
    }
}
