/* style.css - AssetPro Enterprise Asset Management System */

:root {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    --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;
    
    --success-500: #10b981;
    --success-600: #059669;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* ========== LOGIN PAGE STYLES ========== */
.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background-image: url('Images/loginbak2.webp');
}

.slide-2 {
    background-image: url('Images/loginbak1.webp');
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 50%,
        rgba(37, 99, 235, 0.3) 100%);
    z-index: 2;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0 5px;
}

.login-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: inline-block;
    animation: logoFadeIn 0.8s ease;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    animation: logoFadeIn 0.8s ease;
}

.fallback-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.5);
}

.fallback-text {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.password-toggle:hover {
    color: #2563eb;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    position: relative;
    padding-left: 28px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2563eb;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.4);
}

.login-button i {
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: translateX(5px);
}

/* ========== DASHBOARD STYLES ========== */
.app-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sidebar {
    width: 280px;
    background: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon .brand-badge {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-name h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-collapse {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.sidebar-collapse:hover {
    background: #e5e7eb;
}

.system-status {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    margin: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.asset-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: #f9fafb;
    color: #4f46e5;
}

.nav-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4f46e5;
}

.nav-item i {
    width: 20px;
    font-size: 1.1rem;
}

.nav-item span {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-badge, .live-badge, .warning-badge, .info-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-badge {
    background: #f3f4f6;
    color: #6b7280;
}

.live-badge {
    background: #ef4444;
    color: white;
    animation: pulse 2s infinite;
}

.warning-badge {
    background: #f59e0b;
    color: white;
}

.info-badge {
    background: #6366f1;
    color: white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.user-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.user-menu-btn:hover {
    background: #e5e7eb;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

.top-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.mobile-menu-toggle:hover {
    background: #e5e7eb;
}

.page-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.date-badge {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 300px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    font-size: 0.875rem;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    position: relative;
}

.action-btn:hover {
    background: #e5e7eb;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.content-container {
    padding: 2rem;
}

/* ========== DASHBOARD STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-trend {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
}

.stat-trend.positive {
    background: #d1fae5;
    color: #059669;
}

/* ========== LIVE TRACKING SECTION ========== */
.live-tracking-container {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 1.5rem;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tracking-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-badge {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    animation: pulse 2s infinite;
}

.tracking-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tracking-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    background: #f8fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.blue { background: #3b82f6; }
.stat-dot.green { background: #10b981; }
.stat-dot.orange { background: #f97316; }
.stat-dot.purple { background: #8b5cf6; }

/* Live Map Layout */
.live-map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
}

/* Live Map */
.live-map {
    position: relative;
    height: 420px;
    background: #1a2634;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2d3748;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Zone Labels on Map */
.zone-label {
    position: absolute;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    background: rgba(0,0,0,0.4);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zone-label.a { top: 10%; left: 10%; }
.zone-label.b { top: 10%; right: 10%; }
.zone-label.c { bottom: 10%; left: 10%; }
.zone-label.d { bottom: 10%; right: 10%; }

/* Trail Canvas for Dotted Lines */
.trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Moving Assets on Map */
.moving-asset {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: left 0.2s linear, top 0.2s linear;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.3);
}

.moving-asset::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: ping 2s infinite;
    z-index: -1;
    opacity: 0.3;
}

.moving-asset.forklift {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.moving-asset.forklift::after { background: #3b82f6; }

.moving-asset.trolley {
    background: linear-gradient(135deg, #10b981, #059669);
}

.moving-asset.trolley::after { background: #10b981; }

.moving-asset.personnel {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.moving-asset.personnel::after { background: #f97316; }

.moving-asset.equipment {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.moving-asset.equipment::after { background: #8b5cf6; }

.moving-asset.paused {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.moving-asset.paused::after {
    animation: none;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Asset Tooltip */
.asset-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid #3b82f6;
    z-index: 30;
}

.asset-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0,0,0,0.95);
}

/* Signal Strength Indicator */
.signal-strength {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
    animation: signalPulse 1.5s infinite;
}

.signal-strength.weak { background: #f97316; }
.signal-strength.critical { background: #ef4444; }

@keyframes signalPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Right Sidebar Container */
.right-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 420px;
    overflow: hidden;
}

/* Asset List Sidebar */
.asset-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    border: 1px solid #edf2f7;
}

.asset-list-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.asset-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.asset-list-item:last-child {
    border-bottom: none;
}

.asset-list-item:hover {
    background: #f8fafc;
}

.asset-list-item.active {
    background: #eef2ff;
    border-left: 3px solid #3b82f6;
}

.asset-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.asset-list-icon.blue { background: #3b82f6; }
.asset-list-icon.green { background: #10b981; }
.asset-list-icon.orange { background: #f97316; }
.asset-list-icon.purple { background: #8b5cf6; }

.asset-list-info {
    flex: 1;
    min-width: 0;
}

.asset-list-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.asset-list-location {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-list-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: #10b981;
    flex-shrink: 0;
}

.asset-list-status.paused {
    color: #f97316;
}

/* Route Info Panel */
.route-info-panel {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #edf2f7;
    flex: 1;
    overflow-y: auto;
}

.route-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.asset-route-info {
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 3px solid #3b82f6;
}

.asset-route-info:last-child {
    margin-bottom: 0;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.route-status-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.route-status-badge.moving {
    background: #10b981;
    animation: pulse 1s infinite;
}

.route-status-badge.paused {
    background: #f97316;
}

.route-asset-id {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1f2937;
}

.route-path {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.route-path i {
    font-size: 0.6rem;
    color: #94a3b8;
}

.route-progress-container {
    margin: 0.5rem 0;
}

.route-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.route-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.route-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.route-time {
    font-size: 0.65rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

/* Paused Section */
.paused-section {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.paused-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f97316;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.paused-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff7ed;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
}

.paused-item-left {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.paused-item-id {
    font-weight: 600;
    color: #9a3412;
}

.paused-item-time {
    color: #c2410c;
    font-size: 0.65rem;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: white;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ========== PLANT LAYOUT ========== */
.plant-layout {
    position: relative;
    height: 400px;
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid #374151;
}

.plant-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ========== MOVING EQUIPMENT ========== */
.moving-equipment {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.moving-equipment:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    z-index: 100;
}

.moving-equipment.selected {
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px #6366f1;
    z-index: 101;
}

.moving-equipment.moving-animation {
    animation: movePulse 0.5s infinite;
}

@keyframes movePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.moving-equipment.forklift {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.moving-equipment.trolley {
    background: linear-gradient(135deg, #10b981, #059669);
}

.moving-equipment.personnel {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.moving-equipment::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: inherit;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.equipment-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    border: 1px solid #6366f1;
}

.moving-equipment .equipment-label::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

/* ========== ASSEMBLY LINE ========== */
.assembly-line {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
}

.station {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.station-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.station-name {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.station-asset {
    padding: 0.75rem;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4f46e5;
    font-weight: 500;
}

.station-asset.empty {
    background: #f3f4f6;
    color: #9ca3af;
}

.station-connector {
    width: 40px;
    height: 2px;
    background: #6366f1;
    margin: 0 0.5rem;
    position: relative;
}

.station-connector::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: moveAlong 2s infinite;
}

@keyframes moveAlong {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ========== ASSET TABLE ========== */
.asset-table-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-top: 2rem;
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asset-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 0.875rem;
}

.asset-table tbody tr:hover {
    background: #f9fafb;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.moving {
    background: #eef2ff;
    color: #4f46e5;
}

.status-badge.stationary {
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.critical {
    background: #fee2e2;
    color: #dc2626;
}

/* ========== TIMELINE CONTROL ========== */
.timeline-control {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #1f2937;
}

.timeline-speed {
    display: flex;
    gap: 0.5rem;
}

.speed-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
}

.speed-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.timeline-slider {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    -webkit-appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ========== HEATMAP ========== */
.heatmap-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    height: 200px;
    margin-top: 1rem;
}

.heatmap-cell {
    background: #f3f4f6;
}

.heatmap-cell.level-1 { background: #fee2e2; }
.heatmap-cell.level-2 { background: #fecaca; }
.heatmap-cell.level-3 { background: #fca5a5; }
.heatmap-cell.level-4 { background: #f87171; }
.heatmap-cell.level-5 { background: #ef4444; }

/* ========== VIDEO GRID ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.video-preview {
    height: 200px;
    background: #1f2937;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-preview i {
    font-size: 3rem;
    opacity: 0.5;
}

.video-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camera-name {
    font-weight: 500;
    color: #1f2937;
}

.camera-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.camera-status.online {
    color: #10b981;
}

.camera-status.offline {
    color: #ef4444;
}

/* ========== GEOFENCE MAP ========== */
.geofence-map {
    height: 400px;
    background: #1f2937;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid #374151;
}

.geofence-zone {
    position: absolute;
    border: 2px dashed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(2px);
    font-size: 0.875rem;
}

.geofence-zone.zone-restricted {
    border-color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.geofence-zone.zone-warning {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.1);
}

.geofence-zone.zone-safe {
    border-color: #10b981;
    background: rgba(16,185,129,0.1);
}

/* ========== ATTENDANCE STATS ========== */
.attendance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.attendance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.attendance-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0.5rem 0;
}

.attendance-label {
    color: #6b7280;
}

/* ========== PATROL TIMELINE ========== */
.patrol-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.patrol-item {
    position: relative;
    padding-bottom: 2rem;
    border-left: 2px solid #c7d2fe;
    padding-left: 2rem;
}

.patrol-item:last-child {
    border-left-color: transparent;
}

.patrol-marker {
    position: absolute;
    left: -9px;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    top: 0;
}

.patrol-time {
    font-size: 0.875rem;
    color: #9ca3af;
}

.patrol-location {
    font-weight: 600;
    margin: 0.25rem 0;
    color: #1f2937;
}

.patrol-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #059669;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* ========== MOVEMENT CONTROLS ========== */
.movement-controls {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.movement-controls h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.movement-controls select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1f2937;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.movement-controls select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.movement-controls button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.movement-controls button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.movement-controls button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.movement-controls button.stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.selected-asset-info {
    background: #eef2ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.movement-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movement-status .status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.path-indicator {
    margin-top: 1rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.path-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    width: 0%;
    transition: width 0.3s ease;
}

.coordinates-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.coordinate-box {
    text-align: center;
}

.coordinate-box .label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.coordinate-box .value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    font-family: monospace;
}

.destination-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    z-index: 15;
    animation: destinationPulse 1s infinite;
}

@keyframes destinationPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* ========== ZONE DISPLAY STYLES ========== */
.zone-boundary {
    position: absolute;
    border: 2px dashed;
    pointer-events: none;
    z-index: 4;
}

.zone-boundary.zone-a {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.zone-boundary.zone-b {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.zone-boundary.zone-c {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.zone-boundary.zone-d {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.zone-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(5px);
}

.zone-legend h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.zone-a {
    background: #f59e0b;
}

.legend-color.zone-b {
    background: #10b981;
}

.legend-color.zone-c {
    background: #6366f1;
}

.legend-color.zone-d {
    background: #ef4444;
}

.zone-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(5px);
    min-width: 200px;
}

.zone-stats h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.stat-value {
    font-weight: 600;
    color: #1f2937;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.zone-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    border: 1px solid #6366f1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.zone-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.zone-search {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.zone-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
}

.zone-search input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.zone-search button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

/* ========== ADMIN MASTER STYLES ========== */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.75rem 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.admin-tab.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

/* ========== MASTER DATA STYLES ========== */
.master-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.master-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.master-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.master-tab.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

.master-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.master-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.master-actions {
    display: flex;
    gap: 0.75rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-mini-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-mini-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-mini-info h4 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-mini-info span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.master-table-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
}

.master-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.master-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
}

.master-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 0.875rem;
}

.master-table tbody tr:hover {
    background: #f9fafb;
}

.admin-table-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-top: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 0.875rem;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

/* ========== TAG BADGES ========== */
.tag-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-badge.ble {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-badge.rfid {
    background: #fef3c7;
    color: #92400e;
}

.tag-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.tag-badge.assigned {
    background: #e0e7ff;
    color: #3730a3;
}

.tag-badge.maintenance {
    background: #fed7aa;
    color: #9a3412;
}

.tag-badge.retired {
    background: #fee2e2;
    color: #991b1b;
}

/* ========== ACTION ICONS ========== */
.action-icons {
    display: flex;
    gap: 0.75rem;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    background: #f3f4f6;
}

.action-icon:hover {
    transform: translateY(-2px);
}

.action-icon.edit:hover {
    background: #6366f1;
    color: white;
}

.action-icon.delete:hover {
    background: #ef4444;
    color: white;
}

.action-icon.view:hover {
    background: #10b981;
    color: white;
}

/* ========== ASSET SUB TABS ========== */
.asset-sub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.asset-sub-tab {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    color: #6b7280;
}

.asset-sub-tab.active {
    background: #6366f1;
    color: white;
}

/* ========== ADMIN SEARCH ========== */
.admin-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-box select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1f2937;
    background: white;
    min-width: 150px;
}

.filter-box select:focus {
    outline: none;
    border-color: #6366f1;
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1rem;
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1280px) {
    .stats-grid, .features-grid, .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .live-map-layout {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar-container {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-container {
        display: none;
    }
    
    .admin-tabs, .master-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab, .master-tab {
        flex: 1;
        justify-content: center;
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .stats-grid, .features-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .date-badge {
        display: none;
    }
    
    .assembly-line {
        flex-direction: column;
        gap: 1rem;
    }
    
    .station-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }
    
    .station-connector::after {
        top: auto;
        bottom: -4px;
        left: -3px;
        right: auto;
    }
    
    @keyframes moveAlong {
        0% { top: 0; opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
    
    .admin-header, .master-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-actions, .master-actions {
        flex-wrap: wrap;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        justify-content: center;
    }
    
    .admin-search {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-box {
        flex-wrap: wrap;
    }
    
    .filter-box select {
        flex: 1;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-table, .master-table, .asset-table {
        display: block;
        overflow-x: auto;
    }
    
    .tracking-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .attendance-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 34px;
        height: 34px;
    }
    
    .login-wrapper {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .fallback-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .fallback-text {
        font-size: 32px;
    }
    
    .login-logo-img {
        max-width: 200px;
    }
    
    .admin-tabs, .master-tabs {
        flex-direction: column;
    }
    
    .admin-tab, .master-tab {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .tracking-stats {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .tracking-stat {
        width: 100%;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* style.css - AssetPro Enterprise Asset Management System */

:root {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    --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;
    
    --success-500: #10b981;
    --success-600: #059669;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: #f3f4f6;
}

/* ========== LOGIN PAGE STYLES ========== */
.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background-image: url('Images/loginbak2.webp');
}

.slide-2 {
    background-image: url('Images/loginbak1.webp');
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 50%,
        rgba(37, 99, 235, 0.3) 100%);
    z-index: 2;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0 5px;
}

.login-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: inline-block;
    animation: logoFadeIn 0.8s ease;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    animation: logoFadeIn 0.8s ease;
}

.fallback-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.5);
}

.fallback-text {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.password-toggle:hover {
    color: #2563eb;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    position: relative;
    padding-left: 28px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2563eb;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.4);
}

.login-button i {
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: translateX(5px);
}

/* ========== DASHBOARD STYLES ========== */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f3f4f6;
}

.sidebar {
    width: 280px;
    background: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon .brand-badge {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-name h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-collapse {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.sidebar-collapse:hover {
    background: #e5e7eb;
}

.system-status {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    margin: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

.asset-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: #f9fafb;
    color: #4f46e5;
}

.nav-item.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #4f46e5;
}

.nav-item i {
    width: 20px;
    font-size: 1.1rem;
}

.nav-item span {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-badge, .live-badge, .warning-badge, .info-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-badge {
    background: #f3f4f6;
    color: #6b7280;
}

.live-badge {
    background: #ef4444;
    color: white;
    animation: pulse 2s infinite;
}

.warning-badge {
    background: #f59e0b;
    color: white;
}

.info-badge {
    background: #6366f1;
    color: white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.user-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.user-menu-btn:hover {
    background: #e5e7eb;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

.top-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
}

.mobile-menu-toggle:hover {
    background: #e5e7eb;
}

.page-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.date-badge {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 300px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    font-size: 0.875rem;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    position: relative;
}

.action-btn:hover {
    background: #e5e7eb;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.content-container {
    padding: 2rem;
}

/* ========== DASHBOARD CONTAINER ========== */
.dashboard-container {
    width: 100%;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #edf2f7;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.stat-trend {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ========== LIVE TRACKING SECTION ========== */
.live-tracking-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 2rem;
    width: 100%;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tracking-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.live-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    animation: pulse 2s infinite;
}

.tracking-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tracking-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: #f8fafc;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: #334155;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.blue { background: #3b82f6; }
.stat-dot.green { background: #10b981; }
.stat-dot.orange { background: #f97316; }
.stat-dot.purple { background: #8b5cf6; }

/* Live Map Layout */
.live-map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

/* Live Map */
.live-map {
    position: relative;
    height: 420px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Zone Labels */
.zone-label {
    position: absolute;
    color: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zone-label.a { top: 10%; left: 10%; }
.zone-label.b { top: 10%; right: 10%; }
.zone-label.c { bottom: 10%; left: 10%; }
.zone-label.d { bottom: 10%; right: 10%; }

/* Trail Canvas */
.trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Moving Assets */
.moving-asset {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.3);
}

.moving-asset:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 100;
}

.moving-asset.forklift {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.moving-asset.trolley {
    background: linear-gradient(135deg, #10b981, #059669);
}

.moving-asset.personnel {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.moving-asset.equipment {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.moving-asset::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: ping 2s infinite;
    z-index: -1;
    opacity: 0.3;
}

.moving-asset.forklift::after { background: #3b82f6; }
.moving-asset.trolley::after { background: #10b981; }
.moving-asset.personnel::after { background: #f97316; }
.moving-asset.equipment::after { background: #8b5cf6; }

@keyframes ping {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.moving-asset.paused {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.moving-asset.paused::after {
    animation: none;
}

/* Asset Tooltip */
.asset-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid #3b82f6;
    z-index: 30;
}

.asset-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0,0,0,0.95);
}

/* Signal Strength Indicator */
.signal-strength {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
    animation: signalPulse 1.5s infinite;
}

.signal-strength.weak { background: #f97316; }
.signal-strength.critical { background: #ef4444; }

@keyframes signalPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Right Sidebar */
.right-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 420px;
    overflow: hidden;
}

.asset-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    border: 1px solid #edf2f7;
}

.asset-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.asset-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.asset-list-item:last-child {
    border-bottom: none;
}

.asset-list-item:hover {
    background: #f8fafc;
}

.asset-list-item.active {
    background: #eef2ff;
    border-left: 3px solid #3b82f6;
}

.asset-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.asset-list-icon.blue { background: #3b82f6; }
.asset-list-icon.green { background: #10b981; }
.asset-list-icon.orange { background: #f97316; }
.asset-list-icon.purple { background: #8b5cf6; }

.asset-list-info {
    flex: 1;
    min-width: 0;
}

.asset-list-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.asset-list-location {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-list-status {
    font-size: 0.7rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.asset-list-status.paused {
    color: #f97316;
}

/* Route Info Panel */
.route-info-panel {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #edf2f7;
    flex: 1;
    overflow-y: auto;
}

.route-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.asset-route-info {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid #3b82f6;
}

.asset-route-info:last-child {
    margin-bottom: 0;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.route-status-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.route-status-badge.moving {
    background: #10b981;
    animation: pulse 1s infinite;
}

.route-status-badge.paused {
    background: #f97316;
}

.route-asset-id {
    font-weight: 600;
    font-size: 0.8rem;
    color: #0f172a;
}

.route-path {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.route-path i {
    font-size: 0.6rem;
    color: #94a3b8;
}

.route-progress-container {
    margin: 0.5rem 0;
}

.route-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.route-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.route-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.route-time {
    font-size: 0.65rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

/* Paused Section */
.paused-section {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.paused-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f97316;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.paused-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #fff7ed;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
}

.paused-item-left {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.paused-item-id {
    font-weight: 600;
    color: #9a3412;
}

.paused-item-time {
    color: #c2410c;
    font-size: 0.65rem;
}

/* ========== CHARTS GRID ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.analytics-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analytics-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.analytics-header h3 .sub {
    font-weight: 400;
    color: #64748b;
    font-size: 0.9rem;
}

.analytics-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
    color: #475569;
}

/* Chart Container */
.chart-container {
    margin-bottom: 1rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 0.5rem;
    color: #94a3b8;
    font-size: 0.7rem;
    width: 30px;
    height: 150px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    flex: 1;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.bar-container {
    display: flex;
    gap: 4px;
    height: 150px;
    align-items: flex-end;
}

.bar {
    width: 15px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar.green { background: #10b981; }
.bar.blue { background: #3b82f6; }

.bar-label {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.5rem;
    text-align: center;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #94a3b8;
    font-size: 0.7rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.legend-item-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #475569;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.green { background: #10b981; }
.legend-dot.blue { background: #3b82f6; }

/* ========== MAP SECTION ========== */
.map-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 1.5rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.map-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.map-header h3 .location {
    font-weight: 400;
    color: #3b82f6;
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border-radius: 20px;
    color: #475569;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.map-cell {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: #1e293b;
    background: white;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    cursor: default;
}

.map-cell:hover {
    background: #eef2ff;
    border-color: #3b82f6;
}

/* ========== TABLE SECTION ========== */
.table-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.filter-select {
    padding: 0.4rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e293b;
    background: white;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.analytics-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.analytics-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.analytics-table tr:hover td {
    background: #f8fafc;
}

.status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-tag.analytical { background: #e0f2fe; color: #0369a1; }
.status-tag.allocation { background: #fef9c3; color: #854d0e; }
.status-tag.monitoring { background: #e0e7ff; color: #3730a3; }

.location-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #3b82f6;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    gap: 0.25rem;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    font-size: 0.8rem;
}

.pagination-btn:hover {
    background: #f1f5f9;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* ========== SUMMARY GRID ========== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #edf2f7;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
}

.progress-fill.green { background: #10b981; }
.progress-fill.orange { background: #f97316; }
.progress-fill.blue { background: #3b82f6; }

/* ========== ASSET TABLE ========== */
.asset-table-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-top: 2rem;
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asset-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    font-size: 0.875rem;
}

.asset-table tbody tr:hover {
    background: #f9fafb;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.moving {
    background: #eef2ff;
    color: #4f46e5;
}

.status-badge.stationary {
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.critical {
    background: #fee2e2;
    color: #dc2626;
}

/* ========== ASSEMBLY LINE ========== */
.assembly-line {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
}

.station {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.station-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.station-name {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.station-asset {
    padding: 0.75rem;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4f46e5;
    font-weight: 500;
}

.station-asset.empty {
    background: #f3f4f6;
    color: #9ca3af;
}

.station-connector {
    width: 40px;
    height: 2px;
    background: #6366f1;
    margin: 0 0.5rem;
    position: relative;
}

.station-connector::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 0;
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: moveAlong 2s infinite;
}

@keyframes moveAlong {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ========== MOVING EQUIPMENT ========== */
.moving-equipment {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.moving-equipment:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    z-index: 100;
}

.moving-equipment.selected {
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px #6366f1;
    z-index: 101;
}

.moving-equipment.moving-animation {
    animation: movePulse 0.5s infinite;
}

@keyframes movePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.moving-equipment.forklift {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.moving-equipment.trolley {
    background: linear-gradient(135deg, #10b981, #059669);
}

.moving-equipment.personnel {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.moving-equipment::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: inherit;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.equipment-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 20;
    border: 1px solid #6366f1;
}

.moving-equipment .equipment-label::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

/* ========== TIMELINE CONTROL ========== */
.timeline-control {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #1f2937;
}

.timeline-speed {
    display: flex;
    gap: 0.5rem;
}

.speed-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
}

.speed-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.timeline-slider {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    -webkit-appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ========== HEATMAP ========== */
.heatmap-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    height: 200px;
    margin-top: 1rem;
}

.heatmap-cell {
    background: #f3f4f6;
}

.heatmap-cell.level-1 { background: #fee2e2; }
.heatmap-cell.level-2 { background: #fecaca; }
.heatmap-cell.level-3 { background: #fca5a5; }
.heatmap-cell.level-4 { background: #f87171; }
.heatmap-cell.level-5 { background: #ef4444; }

/* ========== VIDEO GRID ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.video-preview {
    height: 200px;
    background: #1f2937;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-preview i {
    font-size: 3rem;
    opacity: 0.5;
}

.video-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.camera-name {
    font-weight: 500;
    color: #1f2937;
}

.camera-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.camera-status.online {
    color: #10b981;
}

.camera-status.offline {
    color: #ef4444;
}

/* ========== GEOFENCE MAP ========== */
.geofence-map {
    height: 400px;
    background: #1f2937;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid #374151;
}

.geofence-zone {
    position: absolute;
    border: 2px dashed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(2px);
    font-size: 0.875rem;
}

.geofence-zone.zone-restricted {
    border-color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.geofence-zone.zone-warning {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.1);
}

.geofence-zone.zone-safe {
    border-color: #10b981;
    background: rgba(16,185,129,0.1);
}

/* ========== ATTENDANCE STATS ========== */
.attendance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.attendance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.attendance-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0.5rem 0;
}

.attendance-label {
    color: #6b7280;
}

/* ========== PATROL TIMELINE ========== */
.patrol-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.patrol-item {
    position: relative;
    padding-bottom: 2rem;
    border-left: 2px solid #c7d2fe;
    padding-left: 2rem;
}

.patrol-item:last-child {
    border-left-color: transparent;
}

.patrol-marker {
    position: absolute;
    left: -9px;
    width: 16px;
    height: 16px;
    background: #6366f1;
    border-radius: 50%;
    top: 0;
}

.patrol-time {
    font-size: 0.875rem;
    color: #9ca3af;
}

.patrol-location {
    font-weight: 600;
    margin: 0.25rem 0;
    color: #1f2937;
}

.patrol-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #059669;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* ========== MOVEMENT CONTROLS ========== */
.movement-controls {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.movement-controls h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.movement-controls select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1f2937;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.movement-controls select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.movement-controls button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.movement-controls button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.movement-controls button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.movement-controls button.stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.control-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.selected-asset-info {
    background: #eef2ff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #4f46e5;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.movement-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movement-status .status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.path-indicator {
    margin-top: 1rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.path-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    width: 0%;
    transition: width 0.3s ease;
}

.coordinates-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.coordinate-box {
    text-align: center;
}

.coordinate-box .label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.coordinate-box .value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    font-family: monospace;
}

.destination-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    z-index: 15;
    animation: destinationPulse 1s infinite;
}

@keyframes destinationPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* ========== ZONE DISPLAY STYLES ========== */
.zone-boundary {
    position: absolute;
    border: 2px dashed;
    pointer-events: none;
    z-index: 4;
}

.zone-boundary.zone-a {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.zone-boundary.zone-b {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.zone-boundary.zone-c {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.zone-boundary.zone-d {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.zone-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: 1px solid #e5e7eb;
    backdrop-filter: blur(5px);
}

.zone-legend h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.zone-a {
    background: #f59e0b;
}

.legend-color.zone-b {
    background: #10b981;
}

.legend-color.zone-c {
    background: #6366f1;
}

.legend-color.zone-d {
    background: #ef4444;
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .live-map-layout {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar-container {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tracking-stats {
        flex-wrap: wrap;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 34px;
        height: 34px;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .date-badge {
        display: none;
    }
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f2f5;
    color: #1e293b;
    line-height: 1.5;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e9eef2;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #e9eef2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.logo-text span {
    font-size: 11px;
    color: #64748b;
    display: block;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: #f8fafc;
    color: #2563eb;
}

/* System Status */
.system-status {
    padding: 16px 20px;
    background: #f8fafc;
    margin: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
}

.online-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.tag-count {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.tech-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
}

.tech-stats i {
    margin-right: 4px;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    padding: 0 24px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    color: #64748b;
    text-decoration: none;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.nav-item.active {
    background: #eef2ff;
    color: #2563eb;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2563eb;
}

.nav-item i {
    width: 20px;
    font-size: 16px;
}

.badge {
    margin-left: auto;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 30px;
    font-weight: 600;
}

.badge.ble {
    background: #e0f2fe;
    color: #0369a1;
}

.badge.rfid {
    background: #fef9c3;
    color: #854d0e;
}

.badge.live {
    background: #fee2e2;
    color: #b91c1c;
    animation: pulse 2s infinite;
}

/* User Profile */
.user-profile {
    padding: 20px 24px;
    border-top: 1px solid #e9eef2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.user-role {
    font-size: 11px;
    color: #64748b;
}

.logout-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: #ef4444;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 24px 32px;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.page-title p {
    font-size: 13px;
    color: #64748b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.search-box input {
    width: 300px;
    padding: 10px 16px 10px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.shortcut {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    position: relative;
}

.action-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.notification-btn {
    position: relative;
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* ========== STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e9eef2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.blue { background: #2563eb; }
.stat-icon.indigo { background: #6366f1; }
.stat-icon.purple { background: #a855f7; }
.stat-icon.red { background: #ef4444; }

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 30px;
    font-weight: 600;
}

.trend.up {
    background: #dcfce7;
    color: #166534;
}

.trend.down {
    background: #fee2e2;
    color: #b91c1c;
}

.trend-text {
    color: #64748b;
}

/* ========== LIVE TRACKING SECTION ========== */
.live-tracking {
    background: white;
    border-radius: 20px;
    border: 1px solid #e9eef2;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-tags {
    display: flex;
    gap: 8px;
}

.tech-tag {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.tech-tag.ble {
    background: #e0f2fe;
    color: #0369a1;
}

.tech-tag.rfid {
    background: #fef9c3;
    color: #854d0e;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Tracking Grid */
.tracking-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

/* Map Container */
.map-container {
    background: #0f172a;
    border-radius: 16px;
    height: 460px;
    position: relative;
    overflow: hidden;
}

.map-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.zone-label {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zone-label.a { top: 15%; left: 10%; }
.zone-label.b { top: 15%; right: 10%; }
.zone-label.c { bottom: 15%; left: 10%; }
.zone-label.d { bottom: 15%; right: 10%; }

/* RFID Readers */
.rfid-reader {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #2563eb;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    z-index: 15;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.rfid-reader::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px dashed #3b82f6;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.rfid-reader span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 10px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Moving Assets */
.moving-asset {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.moving-asset:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 30;
}

.moving-asset.forklift {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.moving-asset.trolley {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.moving-asset.personnel {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.asset-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: ping 2s infinite;
    opacity: 0.3;
}

.forklift .asset-pulse { background: #3b82f6; }
.trolley .asset-pulse { background: #22c55e; }
.personnel .asset-pulse { background: #f97316; }

/* Signal Strength */
.signal {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.signal.strong { background: #22c55e; }
.signal.weak { background: #f97316; }
.signal.critical { background: #ef4444; }

/* Trail Canvas */
.trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Asset List */
.asset-list {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9eef2;
    padding: 16px;
    height: 280px;
    overflow-y: auto;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9eef2;
}

.list-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 30px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.asset-item:last-child {
    border-bottom: none;
}

.asset-item:hover {
    background: #f8fafc;
}

.asset-item.active {
    background: #eef2ff;
}

.asset-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.asset-type-icon.blue { background: #3b82f6; }
.asset-type-icon.green { background: #22c55e; }
.asset-type-icon.orange { background: #f97316; }

.asset-details {
    flex: 1;
}

.asset-id {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
}

.asset-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
}

.asset-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 30px;
    font-weight: 600;
}

.asset-status.moving {
    background: #e0f2fe;
    color: #0369a1;
}

.asset-status.paused {
    background: #fff7ed;
    color: #9a3412;
}

/* Route Information */
.route-info {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9eef2;
    padding: 16px;
    flex: 1;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9eef2;
}

.route-header i {
    color: #2563eb;
    font-size: 16px;
}

.route-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.route-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #2563eb;
}

.route-item:last-child {
    margin-bottom: 0;
}

.route-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.route-dot.moving {
    background: #22c55e;
    animation: pulse 1s infinite;
}

.route-dot.paused {
    background: #f97316;
}

.route-id {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.route-path {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.route-time {
    font-size: 11px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== CHARTS SECTION ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e9eef2;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.chart-period {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 30px;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* ========== ACTIVITY TABLE ========== */
.activity-section {
    background: white;
    border-radius: 20px;
    border: 1px solid #e9eef2;
    padding: 20px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 13px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: #2563eb;
}

/* Table Styles */
.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.activity-table td {
    padding: 16px;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.activity-table tr:hover td {
    background: #f8fafc;
}

/* Table Badges */
.tech-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.tech-badge.ble {
    background: #e0f2fe;
    color: #0369a1;
}

.tech-badge.rfid {
    background: #fef9c3;
    color: #854d0e;
}

.status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.status-tag.moving {
    background: #dbeafe;
    color: #1e40af;
}

.status-tag.active {
    background: #dcfce7;
    color: #166534;
}

.status-tag.alert {
    background: #fee2e2;
    color: #b91c1c;
}

/* RSSI Indicator */
.rssi-level {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rssi-bars {
    display: flex;
    gap: 2px;
}

.rssi-bar {
    width: 4px;
    height: 12px;
    background: #e2e8f0;
    border-radius: 2px;
}

.rssi-bar.filled {
    background: #22c55e;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9eef2;
}

.pagination-info {
    font-size: 13px;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    gap: 4px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.page-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========== SCROLLBAR STYLES ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tracking-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .search-box input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex: 1;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .activity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .activity-table {
        display: block;
        overflow-x: auto;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* style.css - AssetPro Enterprise Asset Management System - Sandeore Color Scheme */

:root {
    /* Sandeore Color Palette - Warm Earth Tones with Accent Blues */
    --sand-50: #faf7f2;
    --sand-100: #f5efe6;
    --sand-200: #e8ddcf;
    --sand-300: #d4c4b1;
    --sand-400: #b9a48c;
    --sand-500: #9e876e;
    --sand-600: #7f6b56;
    --sand-700: #665544;
    --sand-800: #4f4236;
    --sand-900: #3a3027;
    
    --terracotta-50: #fef4ec;
    --terracotta-100: #fde6d9;
    --terracotta-200: #facdb3;
    --terracotta-300: #f5aa88;
    --terracotta-400: #ef7f5e;
    --terracotta-500: #e75d3a;
    --terracotta-600: #d44424;
    --terracotta-700: #b2341c;
    --terracotta-800: #912c1b;
    --terracotta-900: #742718;
    
    --ocean-50: #eef8ff;
    --ocean-100: #d9edff;
    --ocean-200: #b9ddff;
    --ocean-300: #8ac8ff;
    --ocean-400: #5aabff;
    --ocean-500: #3b8cff;
    --ocean-600: #2569eb;
    --ocean-700: #1e50c4;
    --ocean-800: #1e4096;
    --ocean-900: #1d3875;
    
    --dusk-50: #f5f0ff;
    --dusk-100: #ede3ff;
    --dusk-200: #ddccff;
    --dusk-300: #c7adff;
    --dusk-400: #b28aff;
    --dusk-500: #9f6aff;
    --dusk-600: #8a4cf0;
    --dusk-700: #723ad4;
    --dusk-800: #5b31a8;
    --dusk-900: #482b82;
    
    --gray-50: #f8f7f5;
    --gray-100: #efede9;
    --gray-200: #dfdbd4;
    --gray-300: #c8c2b8;
    --gray-400: #aca494;
    --gray-500: #918777;
    --gray-600: #766d5f;
    --gray-700: #5f584d;
    --gray-800: #4b453c;
    --gray-900: #37322b;
    
    --success-500: #2b8c5e;
    --success-600: #1e6b48;
    --warning-500: #e5a341;
    --warning-600: #c4842b;
    --danger-500: #d4564a;
    --danger-600: #b33e33;
    
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 20px 32px 0 rgba(0, 0, 0, 0.12);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: var(--sand-50);
    color: var(--sand-900);
}

/* ========== LOGIN PAGE STYLES ========== */
.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background-image: url('Images/loginbak2.webp');
}

.slide-2 {
    background-image: url('Images/loginbak1.webp');
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(58, 48, 39, 0.8) 0%, 
        rgba(82, 67, 56, 0.6) 50%,
        rgba(37, 105, 235, 0.4) 100%);
    z-index: 2;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0 5px;
}

.login-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: inline-block;
    animation: logoFadeIn 0.8s ease;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    animation: logoFadeIn 0.8s ease;
}

.fallback-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.fallback-text {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sand-800), var(--sand-900));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--sand-200);
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--ocean-500);
    box-shadow: 0 0 0 4px rgba(59, 140, 255, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--ocean-500);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600);
    position: relative;
    padding-left: 28px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--sand-100);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--sand-200);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--ocean-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--dusk-600);
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(59, 140, 255, 0.4);
}

.login-button i {
    transition: transform 0.3s ease;
}

.login-button:hover i {
    transform: translateX(5px);
}

/* ========== DASHBOARD STYLES ========== */
.app-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sand-50) 0%, var(--sand-100) 100%);
}

/* Sidebar - Dark Blue Background */
.sidebar {
    width: 300px;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #E5E7EB;
}

/* Sidebar Navigation Items */
.sidebar-nav-item {
    color: #E5E7EB;
    transition: all 0.2s ease;
}

/* Active Item Style */
.sidebar-nav-item.active {
    background: #3B82F6;
    color: #ffffff;
}

/* Hover Effect (Optional) */
.sidebar-nav-item:hover:not(.active) {
    background: rgba(59, 130, 246, 0.2);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon .brand-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ocean-400), var(--dusk-500));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(90, 171, 255, 0.3);
}

.brand-name h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.brand-version {
    font-size: 0.7rem;
    color: var(--sand-300);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.sidebar-collapse {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: var(--sand-300);
    transition: all 0.2s ease;
}

.sidebar-collapse:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.system-status {
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-500);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--success-500);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

.status-text {
    font-weight: 500;
    color: var(--sand-100);
}

.status-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--ocean-600), var(--dusk-600));
    color: white;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.asset-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--sand-300);
}

.asset-count i {
    color: var(--ocean-400);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sand-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    color: var(--sand-200);
    text-decoration: none;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(90, 171, 255, 0.2), rgba(159, 106, 255, 0.2));
    color: white;
    border-left: 3px solid var(--ocean-400);
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
    color: var(--sand-400);
}

.nav-item.active i {
    color: var(--ocean-400);
}

.nav-item span {
    flex: 1;
}

.nav-badge, .live-badge, .warning-badge, .info-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--sand-300);
}

.live-badge {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: white;
    animation: pulse 2s infinite;
}

.warning-badge {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
}

.info-badge {
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(90, 171, 255, 0.5);
}

.user-info {
    flex: 1;
}

.user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.user-role {
    display: block;
    font-size: 0.7rem;
    color: var(--sand-300);
}

.user-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: var(--sand-300);
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-400);
}

.system-datetime {
    font-size: 0.7rem;
    color: var(--sand-400);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.system-datetime i {
    margin-right: 0.25rem;
    color: var(--ocean-400);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* Top Header */
.top-header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sand-200);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--sand-100);
    border-radius: 10px;
    cursor: pointer;
    color: var(--sand-600);
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--sand-200);
}

.page-title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sand-800), var(--sand-900));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.date-badge {
    font-size: 0.8rem;
    color: var(--sand-500);
    background: var(--sand-100);
    padding: 0.375rem 0.75rem;
    border-radius: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.search-input {
    width: 300px;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--sand-200);
    border-radius: 30px;
    font-size: 0.85rem;
    background: var(--sand-50);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--ocean-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(90, 171, 255, 0.1);
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--gray-400);
    background: var(--sand-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--sand-100);
    border-radius: 10px;
    cursor: pointer;
    color: var(--sand-600);
    position: relative;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger-500);
    border-radius: 50%;
    border: 2px solid var(--sand-100);
}

.action-btn:hover .notification-dot {
    border-color: var(--ocean-500);
}

.content-container {
    padding: 2rem;
}

/* ========== DASHBOARD STATS CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--sand-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
    box-shadow: 0 8px 16px -4px rgba(90, 171, 255, 0.3);
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: white;
    box-shadow: 0 8px 16px -4px rgba(43, 140, 94, 0.3);
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
    color: white;
    box-shadow: 0 8px 16px -4px rgba(229, 163, 65, 0.3);
}

.stat-icon.danger {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: white;
    box-shadow: 0 8px 16px -4px rgba(212, 86, 74, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sand-800);
    line-height: 1.2;
}

.stat-trend {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend i {
    color: var(--success-500);
}

/* ========== LIVE TRACKING SECTION ========== */
.live-tracking-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-200);
    margin-bottom: 2rem;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tracking-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sand-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tracking-header h3 i {
    color: var(--ocean-500);
}

.live-badge {
    background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    animation: pulse 2s infinite;
}

.tracking-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tracking-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: var(--sand-50);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    color: var(--sand-700);
    border: 1px solid var(--sand-200);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-dot.blue { background: var(--ocean-500); }
.stat-dot.green { background: var(--success-500); }
.stat-dot.orange { background: var(--warning-500); }
.stat-dot.purple { background: var(--dusk-500); }

/* Live Map Layout */
.live-map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

/* Live Map */
.live-map {
    position: relative;
    height: 420px;
    background: linear-gradient(135deg, var(--sand-800), var(--sand-900));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--sand-700);
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.zone-label {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zone-label.a { top: 10%; left: 10%; }
.zone-label.b { top: 10%; right: 10%; }
.zone-label.c { bottom: 10%; left: 10%; }
.zone-label.d { bottom: 10%; right: 10%; }

.trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.moving-asset {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.moving-asset:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 100;
}

.moving-asset.forklift {
    background: linear-gradient(135deg, var(--ocean-500), var(--ocean-600));
}

.moving-asset.trolley {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
}

.moving-asset.personnel {
    background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
}

.moving-asset.equipment {
    background: linear-gradient(135deg, var(--dusk-500), var(--dusk-600));
}

.moving-asset::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: ping 2s infinite;
    z-index: -1;
    opacity: 0.3;
}

.moving-asset.forklift::after { background: var(--ocean-500); }
.moving-asset.trolley::after { background: var(--success-500); }
.moving-asset.personnel::after { background: var(--warning-500); }
.moving-asset.equipment::after { background: var(--dusk-500); }

@keyframes ping {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.moving-asset.paused {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.moving-asset.paused::after {
    animation: none;
}

.asset-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(58, 48, 39, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid var(--ocean-500);
    z-index: 30;
}

.asset-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(58, 48, 39, 0.95);
}

.signal-strength {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-500);
    border: 2px solid white;
    animation: signalPulse 1.5s infinite;
}

.signal-strength.weak { background: var(--warning-500); }
.signal-strength.critical { background: var(--danger-500); }

@keyframes signalPulse {
    0% { box-shadow: 0 0 0 0 rgba(43, 140, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(43, 140, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 140, 94, 0); }
}

.right-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 420px;
    overflow: hidden;
}

.asset-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--sand-200);
}

.asset-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sand-800);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sand-200);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.asset-list-title i {
    color: var(--ocean-500);
}

.asset-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--sand-100);
}

.asset-list-item:last-child {
    border-bottom: none;
}

.asset-list-item:hover {
    background: var(--sand-50);
}

.asset-list-item.active {
    background: linear-gradient(90deg, var(--ocean-50), var(--dusk-50));
    border-left: 3px solid var(--ocean-500);
}

.asset-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.asset-list-icon.blue { background: var(--ocean-500); }
.asset-list-icon.green { background: var(--success-500); }
.asset-list-icon.orange { background: var(--warning-500); }
.asset-list-icon.purple { background: var(--dusk-500); }

.asset-list-info {
    flex: 1;
    min-width: 0;
}

.asset-list-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--sand-800);
    margin-bottom: 0.2rem;
}

.asset-list-location {
    font-size: 0.7rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-list-location i {
    color: var(--gray-400);
    font-size: 0.6rem;
}

.asset-list-status {
    font-size: 0.7rem;
    color: var(--success-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.asset-list-status.paused {
    color: var(--warning-500);
}

.route-info-panel {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--sand-200);
    flex: 1;
    overflow-y: auto;
}

.route-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sand-800);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sand-200);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.route-info-title i {
    color: var(--ocean-500);
}

.asset-route-info {
    padding: 0.75rem;
    background: var(--sand-50);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--ocean-500);
}

.asset-route-info:last-child {
    margin-bottom: 0;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.route-status-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.route-status-badge.moving {
    background: var(--success-500);
    animation: pulse 1s infinite;
}

.route-status-badge.paused {
    background: var(--warning-500);
}

.route-asset-id {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--sand-800);
}

.route-path {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.route-path i {
    font-size: 0.6rem;
    color: var(--gray-400);
}

.route-progress-container {
    margin: 0.5rem 0;
}

.route-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}

.route-progress-bar {
    height: 4px;
    background: var(--sand-200);
    border-radius: 2px;
    overflow: hidden;
}

.route-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ocean-500), var(--dusk-500));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.route-time {
    font-size: 0.65rem;
    color: var(--danger-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

.paused-section {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--sand-200);
}

.paused-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warning-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.paused-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(229, 163, 65, 0.1);
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
}

.paused-item-left {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.paused-item-id {
    font-weight: 600;
    color: var(--warning-700);
}

.paused-item-time {
    color: var(--warning-600);
    font-size: 0.65rem;
}

/* ========== CHARTS SECTION ========== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.analytics-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-200);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analytics-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sand-800);
    margin: 0;
}

.analytics-header h3 .sub {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.analytics-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: var(--sand-100);
    border-radius: 30px;
    color: var(--sand-600);
}

.chart-container {
    margin-bottom: 1rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 0.5rem;
    color: var(--gray-400);
    font-size: 0.7rem;
    width: 30px;
    height: 150px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 150px;
    flex: 1;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.bar-container {
    display: flex;
    gap: 4px;
    height: 150px;
    align-items: flex-end;
}

.bar {
    width: 15px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar.green { background: var(--success-500); }
.bar.blue { background: var(--ocean-500); }

.bar-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    text-align: center;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--gray-400);
    font-size: 0.7rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.legend-item-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--sand-600);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.green { background: var(--success-500); }
.legend-dot.blue { background: var(--ocean-500); }

/* ========== MAP SECTION ========== */
.map-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-200);
    margin-bottom: 1.5rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.map-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sand-800);
    margin: 0;
}

.map-header h3 .location {
    font-weight: 400;
    color: var(--ocean-500);
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    background: var(--sand-100);
    border-radius: 30px;
    color: var(--sand-600);
}

.filter-badge i {
    color: var(--ocean-500);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--sand-50);
    border-radius: 12px;
}

.map-cell {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--sand-700);
    background: white;
    border-radius: 6px;
    border: 1px solid var(--sand-200);
    cursor: default;
    transition: all 0.2s ease;
}

.map-cell:hover {
    background: linear-gradient(135deg, var(--ocean-50), var(--dusk-50));
    border-color: var(--ocean-500);
    color: var(--ocean-700);
}

/* ========== TABLE SECTION ========== */
.table-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-200);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--sand-800);
    margin: 0;
}

.filter-select {
    padding: 0.4rem 1rem;
    border: 1px solid var(--sand-200);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--sand-700);
    background: white;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--ocean-500);
    box-shadow: 0 0 0 3px rgba(90, 171, 255, 0.1);
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.analytics-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--sand-200);
    background: var(--sand-50);
}

.analytics-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--sand-700);
    border-bottom: 1px solid var(--sand-100);
}

.analytics-table tr:hover td {
    background: var(--sand-50);
}

.status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-tag.analytical { background: var(--ocean-50); color: var(--ocean-700); }
.status-tag.allocation { background: rgba(229, 163, 65, 0.1); color: var(--warning-700); }
.status-tag.monitoring { background: var(--dusk-50); color: var(--dusk-700); }

.location-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--ocean-600);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.pagination-controls {
    display: flex;
    gap: 0.25rem;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--sand-200);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: var(--sand-600);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--sand-100);
    border-color: var(--sand-400);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
    border-color: transparent;
}

/* ========== SUMMARY GRID ========== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--sand-200);
}

.progress-bar {
    height: 6px;
    background: var(--sand-200);
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
}

.progress-fill.green { background: var(--success-500); }
.progress-fill.orange { background: var(--warning-500); }
.progress-fill.blue { background: var(--ocean-500); }

/* ========== ASSET TABLE ========== */
.asset-table-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--sand-200);
    overflow-x: auto;
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
}

.asset-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 1px solid var(--sand-200);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--sand-50);
}

.asset-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--sand-100);
    color: var(--sand-700);
    font-size: 0.875rem;
}

.asset-table tbody tr:hover {
    background: var(--sand-50);
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.moving {
    background: var(--ocean-50);
    color: var(--ocean-700);
}

.status-badge.stationary {
    background: var(--sand-100);
    color: var(--sand-600);
}

.status-badge.active {
    background: rgba(43, 140, 94, 0.1);
    color: var(--success-600);
}

.status-badge.critical {
    background: rgba(212, 86, 74, 0.1);
    color: var(--danger-600);
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 48, 39, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--sand-200);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--sand-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--sand-50), white);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sand-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--ocean-500);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--sand-100);
    border-radius: 8px;
    cursor: pointer;
    color: var(--sand-600);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--sand-200);
    color: var(--sand-800);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--sand-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sand-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--sand-200);
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--ocean-500);
    box-shadow: 0 0 0 3px rgba(90, 171, 255, 0.1);
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--ocean-500), var(--dusk-500));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(90, 171, 255, 0.4);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--sand-600);
    border: 1px solid var(--sand-200);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--sand-50);
    border-color: var(--sand-400);
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: var(--danger-500);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: var(--danger-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(212, 86, 74, 0.3);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .live-map-layout {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar-container {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 1rem;
    }
    
    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tracking-stats {
        flex-wrap: wrap;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 34px;
        height: 34px;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .date-badge {
        display: none;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Pause indicator for stationary assets */
.pause-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    border: 2px solid white;
    animation: pulse 1.5s infinite;
}

/* Slower movement animation */
.moving-asset.moving-animation {
    animation: movePulse 1s infinite;
}

@keyframes movePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Real-time Positioning Page Styles */

.real-time-container {
    width: 100%;
}

.real-time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.real-time-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.real-time-controls {
    display: flex;
    gap: 1rem;
}

.zone-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
}

.zone-search i {
    color: #9ca3af;
    margin-left: 0.5rem;
}

.zone-search input {
    border: none;
    padding: 0.5rem;
    width: 200px;
    outline: none;
    font-size: 0.85rem;
}

.reset-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #e5e7eb;
}

/* Live Status Bar */
.live-status-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1a2634, #0f172a);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: white;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tech-tag.ble {
    background: #3b82f6;
    color: white;
}

.tech-tag.rfid {
    background: #f59e0b;
    color: white;
}

.asset-count-summary {
    margin-left: auto;
    font-size: 0.85rem;
}

/* Zone Map Layout */
.zone-map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.zone-map-container {
    position: relative;
    background: #0f172a;
    border-radius: 16px;
    height: 500px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

/* Zone Boundaries */
.zone-boundary {
    position: absolute;
    border: 2px solid;
    border-radius: 12px;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.zone-boundary.zone-a {
    top: 2%;
    left: 2%;
    width: 46%;
    height: 46%;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.zone-boundary.zone-b {
    top: 2%;
    right: 2%;
    width: 46%;
    height: 46%;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.05);
}

.zone-boundary.zone-c {
    bottom: 2%;
    left: 2%;
    width: 46%;
    height: 46%;
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}

.zone-boundary.zone-d {
    bottom: 2%;
    right: 2%;
    width: 46%;
    height: 46%;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.zone-label-top {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* RFID Readers on Map */
.rfid-reader-map {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 15;
    cursor: pointer;
}

.reader-pulse {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    position: relative;
}

.reader-pulse::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    animation: radarPulse 2s infinite;
}

.reader-label {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #94a3b8;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
}

@keyframes radarPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Moving Assets on Real-time Map */
.moving-asset-map {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.moving-asset-map:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 30;
}

.moving-asset-map.selected {
    box-shadow: 0 0 0 3px white, 0 0 0 5px #3b82f6;
    transform: translate(-50%, -50%) scale(1.1);
}

.moving-asset-map.forklift {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.moving-asset-map.trolley {
    background: linear-gradient(135deg, #10b981, #059669);
}

.moving-asset-map.personnel {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.moving-asset-map.equipment {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.moving-asset-map .asset-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    border-radius: 4px;
    pointer-events: none;
}

.asset-tooltip-map {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-bottom: 5px;
    pointer-events: none;
}

/* Real-time Sidebar */
.real-time-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 500px;
}

.active-tags-list,
.route-info-sidebar {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.active-tags-list {
    flex: 1;
}

.route-info-sidebar {
    flex: 1;
}

.list-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.list-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-scroll,
.route-info-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

/* Tag List Items */
.tag-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.tag-list-item:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.tag-list-item.selected {
    background: #eef2ff;
    border-color: #3b82f6;
}

.tag-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tag-icon.blue { background: #3b82f6; }
.tag-icon.green { background: #10b981; }
.tag-icon.orange { background: #f97316; }
.tag-icon.purple { background: #8b5cf6; }

.tag-info {
    flex: 1;
}

.tag-id {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1f2937;
}

.tag-location {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.tag-location i {
    font-size: 0.6rem;
}

.tag-status {
    font-size: 0.65rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.moving-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Route Detail Card */
.route-detail-card {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
}

.route-detail-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1f2937;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-detail-path {
    margin-bottom: 0.75rem;
}

.path-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.point-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.point-dot.start {
    background: #10b981;
}

.point-dot.end {
    background: #ef4444;
}

.point-label {
    font-size: 0.75rem;
    color: #4b5563;
}

.path-arrow {
    text-align: center;
    padding: 0.25rem 0;
    color: #9ca3af;
    font-size: 0.7rem;
}

.route-progress-section {
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.route-stats {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.route-stats .stat {
    font-size: 0.65rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Zone Details Table */
.zone-details-table {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.zone-details-table h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.zone-a-dot { background: #f59e0b; }
.zone-b-dot { background: #10b981; }
.zone-c-dot { background: #6366f1; }
.zone-d-dot { background: #ef4444; }

/* Responsive */
@media (max-width: 1024px) {
    .zone-map-layout {
        grid-template-columns: 1fr;
    }
    
    .real-time-sidebar {
        height: auto;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .real-time-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .zone-search {
        width: 100%;
    }
    
    .zone-search input {
        flex: 1;
    }
    
    .live-status-bar {
        flex-wrap: wrap;
    }
    
    .asset-count-summary {
        margin-left: 0;
    }
}

/* Real-time Positioning Page Styles - Static Asset Display */

.real-time-container {
    width: 100%;
}

.real-time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.real-time-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.real-time-controls {
    display: flex;
    gap: 1rem;
}

.zone-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
}

.zone-search i {
    color: #9ca3af;
    margin-left: 0.5rem;
}

.zone-search input {
    border: none;
    padding: 0.5rem;
    width: 250px;
    outline: none;
    font-size: 0.85rem;
}

.reset-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #e5e7eb;
}

/* Zone Map Layout - Grid of 4 Zones */
.zone-map-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Zone Cards */
.zone-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.zone-card.zone-a {
    border-top: 3px solid #f59e0b;
}

.zone-card.zone-b {
    border-top: 3px solid #10b981;
}

.zone-card.zone-c {
    border-top: 3px solid #6366f1;
}

.zone-card.zone-d {
    border-top: 3px solid #ef4444;
}

.zone-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zone-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.zone-color.a { background: #f59e0b; }
.zone-color.b { background: #10b981; }
.zone-color.c { background: #6366f1; }
.zone-color.d { background: #ef4444; }

.zone-title h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.zone-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    background: white;
    border-radius: 20px;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.zone-content {
    padding: 1rem;
    min-height: 180px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.asset-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #edf2f7;
}

.asset-card:hover {
    background: #eef2ff;
    transform: translateX(2px);
}

.asset-card.selected {
    background: #eef2ff;
    border-color: #3b82f6;
}

.asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.asset-details {
    flex: 1;
}

.asset-id-small {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.15rem;
}

.asset-location-small {
    font-size: 0.6rem;
    color: #6b7280;
}

.asset-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.asset-status-dot.moving {
    background: #10b981;
    animation: pulse 1.5s infinite;
}

.asset-status-dot.stationary {
    background: #94a3b8;
}

.zone-footer {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
}

.zone-capacity {
    color: #6b7280;
}

.zone-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.zone-status.normal {
    color: #10b981;
}

.zone-status.active {
    color: #3b82f6;
}

.zone-status.restricted {
    color: #ef4444;
}

.no-assets {
    text-align: center;
    padding: 1.5rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Status Summary */
.status-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.summary-item i {
    font-size: 0.6rem;
}

/* Zone Details Table */
.zone-details-table {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.zone-details-table h3,
.asset-list-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Asset List Section */
.asset-list-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Legend Colors */
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-color.zone-a { background: #f59e0b; }
.legend-color.zone-b { background: #10b981; }
.legend-color.zone-c { background: #6366f1; }
.legend-color.zone-d { background: #ef4444; }

/* Zone Row Highlight */
.zone-row[data-zone^="A"] td:nth-child(4) {
    color: #f59e0b !important;
    font-weight: 600;
}

.zone-row[data-zone^="B"] td:nth-child(4) {
    color: #10b981 !important;
    font-weight: 600;
}

.zone-row[data-zone^="C"] td:nth-child(4) {
    color: #6366f1 !important;
    font-weight: 600;
}

.zone-row[data-zone^="D"] td:nth-child(4) {
    color: #ef4444 !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .zone-map-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .real-time-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .real-time-controls {
        width: 100%;
    }
    
    .zone-search {
        flex: 1;
    }
    
    .zone-search input {
        width: 100%;
    }
    
    .status-summary {
        gap: 1rem;
    }
    
    .asset-grid {
        grid-template-columns: 1fr;
    }
}