/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --primary: hsl(220, 89%, 57%);
    --primary-glow: hsl(220, 89%, 67%);
    --success: hsl(142, 71%, 45%);
    --warning: hsl(38, 92%, 50%);
    --accent: hsl(158, 64%, 52%);
    --destructive: hsl(0, 84%, 60%);
    
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222, 84%, 5%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222, 84%, 5%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    --secondary: hsl(210, 40%, 96%);
    --secondary-foreground: hsl(222, 47%, 11%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(220, 89%, 57%), hsl(220, 89%, 67%));
    --gradient-success: linear-gradient(135deg, hsl(142, 71%, 45%), hsl(142, 71%, 55%));
    --gradient-warning: linear-gradient(135deg, hsl(38, 92%, 50%), hsl(25, 95%, 53%));
    --gradient-accent: linear-gradient(135deg, hsl(158, 64%, 52%), hsl(160, 64%, 62%));
    
    /* Shadows */
    --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-elegant: 0 10px 30px -10px hsl(220, 89%, 57%, 0.3);
    --shadow-glow: 0 0 40px hsl(220, 89%, 67%, 0.4);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 256px;
    background: var(--card);
    border-right: 1px solid var(--border);
    transition: var(--transition-smooth);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 64px;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: black;
}

.logo-text p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.sidebar-toggle:hover {
    background: var(--secondary);
}

.sidebar-nav {
    padding: 16px;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-label {
    font-size: 14px;
    font-weight: 600;
    color: black;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar.collapsed .nav-label {
    display: none;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: black;
}

.nav-item.active {
    background: var(--background);
    color: black;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: var(--primary);
}

.nav-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 256px;
    transition: var(--transition-smooth);
}

.sidebar.collapsed + .main-content {
    margin-left: 64px;
}

/* Header */
.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container i {
    position: absolute;
    left: 12px;
    color: var(--muted-foreground);
}

.search-input {
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--foreground);
    width: 200px;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(220, 89%, 57%, 0.2);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

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

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--destructive);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

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

/* Content Area */
.content {
    padding: 24px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

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

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-smooth);
}

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

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    group: hover;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    box-shadow: var(--shadow-elegant);
}

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

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.stat-card:hover .card-title {
    color: var(--foreground);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-card);
}

.card-icon.primary {
    background: var(--gradient-primary);
}

.card-icon.success {
    background: var(--gradient-success);
}

.card-icon.warning {
    background: var(--gradient-warning);
}

.card-icon.accent {
    background: var(--gradient-accent);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--destructive);
}

/* Chart Container */
.chart-container {
    margin-top: 32px;
}

.card-header-section {
    padding: 24px 24px 0;
}

.card-header-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.card-header-section p {
    font-size: 14px;
    color: var(--muted-foreground);
}

.chart-content {
    padding: 24px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 16px;
}

/* Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    padding: 16px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-foreground);
    background: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

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

.table tbody tr:hover {
    background: var(--muted);
}

.table tfoot td {
    padding: 12px 16px;
    font-weight: 700;
    background: var(--secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-aside {
    display: grid;
    grid-auto-rows: min-content;
    gap: 24px;
}

/* Smaller chart on dashboard */
.chart-small .chart-content {
    height: 260px;
    padding: 16px 16px 8px;
}

.chart-small canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Quick links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--foreground);
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
}

.quick-link i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.quick-link span {
    font-weight: 600;
}

/* Lane Wise */
.lane-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.plaza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.plaza-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 16px;
    transition: var(--transition-smooth);
}

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

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

.plaza-title {
    font-weight: 700;
    color: var(--foreground);
}

.plaza-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.plaza-meta .meta-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-foreground);
}

.plaza-meta .meta-value {
    display: block;
    font-weight: 700;
    color: var(--foreground);
}

.lane-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 16px;
    transition: var(--transition-smooth);
}

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

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

.lane-title {
    font-weight: 700;
    color: var(--foreground);
}

.headway {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--secondary);
}

.headway.ok {
    color: var(--success);
    border-color: hsl(142, 71%, 80%);
}

.headway.alert {
    color: var(--destructive);
    border-color: hsl(0, 84%, 80%);
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.lane-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.lane-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

.lane-metric .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-weight: 600;
}

.lane-metric .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.dot.cars { background: hsl(220, 89%, 57%); }
.dot.trucks { background: hsl(142, 71%, 45%); }
.dot.buses { background: hsl(38, 92%, 50%); }
.dot.bikes { background: hsl(158, 64%, 52%); }

.lane-metric .value {
    font-weight: 700;
    color: var(--foreground);
}
/* Form Styles */
.report-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--foreground);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsl(220, 89%, 57%, 0.2);
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-card);
}

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

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

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

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .chart-small .chart-content {
        height: 220px;
    }
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .header-right .search-container {
        display: none;
    }
}

/* Mobile overlay for open sidebar */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    z-index: 900;
}

/* Show overlay when sidebar is open (ensure overlay follows sidebar in DOM) */
.sidebar.open ~ .mobile-overlay {
    display: block;
}

/* Light-only theme enforced (no dark override) */

/* ===== Animations ===== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-12px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes pulseBadge {
    0%, 100% { transform: translate(50%, -50%) scale(1); }
    50% { transform: translate(50%, -50%) scale(1.1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Entrance animations */
.sidebar {
    animation: slideInLeft 0.6s ease both;
}

.header, .section-title, .chart-container, .card {
    animation: fadeInUp 0.5s ease both;
}

.stats-grid .stat-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.stats-grid .stat-card:nth-child(1) { animation-delay: 0.05s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.15s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.25s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.35s; }

/* Animated gradients for colorful accents */
.logo-icon,
.card-icon.primary,
.card-icon.success,
.card-icon.warning,
.card-icon.accent,
.btn-primary {
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite;
}

/* Pulse notifications */
.notification-badge {
    transform: translate(50%, -50%);
    animation: pulseBadge 1.8s ease-in-out infinite;
}

/* Hover lifts and interactive feel */
.card:hover, .stat-card:hover, .btn:hover {
    transform: translateY(-2px);
}

/* Decorative section underline */
.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--gradient-primary);
}

/* Charts Grid (small cards side-by-side) */
.charts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

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

/* ===== VMS (Video Management System) Styles ===== */

/* VMS Container Layout */
.vms-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

/* Left Section: Media Container */
.vms-left-section {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.media-container {
    position: relative;
}

.media-controls {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--muted);
    align-items: center;
    flex-wrap: wrap;
}

.view-info {
    margin-left: auto;
    color: var(--muted-foreground);
    font-style: italic;
}

.media-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

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

.media-display {
    position: relative;
    min-height: 400px;
    background: var(--muted);
}

/* Video View */
.video-view, .image-view, .split-view {
    display: none;
    position: absolute;
    inset: 0;
}

.video-view.active, .image-view.active, .split-view.active {
    display: block;
}

.video-view video, .image-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 12px 12px;
}

.video-overlay, .image-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-info, .image-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-indicator {
    background: var(--destructive);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.camera-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.capture-time {
    color: white;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Split View */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--muted);
    border-radius: 12px;
    margin: 16px;
}

.split-left, .split-right {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--card);
    border: 2px solid var(--border);
}

.split-left video, .split-right img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.split-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced split view hover effects */
.split-left:hover, .split-right:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-smooth);
}

/* Split view status indicators */
.split-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-foreground);
}

.status-dot.live {
    background: var(--destructive);
    animation: pulse 1.5s infinite;
}

/* Split view responsive adjustments */
@media (max-width: 768px) {
    .split-view {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        margin: 12px;
    }
    
    .split-left video, .split-right img {
        height: 200px;
    }
}

/* Right Section: Mini Boxes Grid */
.vms-right-section {
    display: flex;
    flex-direction: column;
}

.mini-boxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mini-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.mini-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elegant);
}

.mini-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.success {
    background: var(--success);
}

.status-indicator.warning {
    background: var(--warning);
}

.status-indicator.error {
    background: var(--destructive);
}

.status-indicator.info {
    background: var(--primary);
}

.box-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-box-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
}

.status-text.success {
    color: var(--success);
}

.status-text.warning {
    color: var(--warning);
}

.status-text.error {
    color: var(--destructive);
}

.status-text.info {
    color: var(--primary);
}

.report-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

.transaction-time {
    font-size: 12px;
    color: var(--muted-foreground);
    font-family: 'Courier New', monospace;
}

/* Bottom Section: Transaction Details */
.vms-bottom-section {
    margin-top: 24px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-badge.warning {
    background: var(--warning);
    color: white;
}

.status-badge.error {
    background: var(--destructive);
    color: white;
}

/* Pulse animation for live indicator */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments for VMS */
@media (max-width: 768px) {
    .vms-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mini-boxes-grid {
        grid-template-columns: 1fr;
    }
    
    .media-controls {
        flex-wrap: wrap;
    }
    
    .split-view {
        grid-template-columns: 1fr;
    }
    
    .split-left video, .split-right img {
        height: 150px;
    }
}

/* ===== AVC Report Table Styles ===== */

/* Vehicle Class Styling */
.vehicle-class {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-class.car {
    background: var(--primary);
    color: white;
}

.vehicle-class.truck {
    background: var(--success);
    color: white;
}

.vehicle-class.bus {
    background: var(--warning);
    color: white;
}

.vehicle-class.bike {
    background: var(--accent);
    color: white;
}

/* Match Status Styling */
.match-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 100px;
}

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

.match-status.warning {
    background: var(--warning);
    color: white;
}

.match-status.error {
    background: var(--destructive);
    color: white;
}

/* Confidence Score Styling */
.confidence-score {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    min-width: 50px;
}

.confidence-score.high {
    background: var(--success);
    color: white;
}

.confidence-score.medium {
    background: var(--warning);
    color: white;
}

.confidence-score.low {
    background: var(--destructive);
    color: white;
}

/* Action Buttons Styling */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 70px;
    justify-content: center;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

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

.btn-sm.btn-primary:hover {
    background: var(--primary-glow);
    border-color: var(--primary-glow);
}

.btn-sm.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

/* AVC Summary Statistics */
.avc-summary {
    border-top: 1px solid var(--border);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.summary-label {
    font-size: 12px;
    color: var(--muted-foreground);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
}

.summary-value.success {
    color: var(--success);
}

.summary-value.warning {
    color: var(--warning);
}

.summary-value.error {
    color: var(--destructive);
}

/* Enhanced table styling for AVC report */
#avcReportTableBody tr:hover {
    background: var(--muted);
    transition: var(--transition-smooth);
}

#avcReportTableBody td {
    vertical-align: middle;
    padding: 12px 8px;
}

/* Image Link Styling */
.image-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.image-link:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* IHMCL Status Container */
.ihmcl-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.ihmcl-status .vehicle-class {
    margin-bottom: 2px;
}

.ihmcl-status .match-status {
    font-size: 11px;
    padding: 2px 6px;
}

/* Direction Indicator Styling */
.direction {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.direction.east {
    background: var(--warning);
    color: white;
}

.direction.west {
    background: var(--accent);
    color: white;
}

/* Responsive adjustments for AVC table */
@media (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .summary-value {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .action-required {
        min-width: 100px;
        font-size: 11px;
    }
    
    .match-status {
        min-width: 80px;
        font-size: 11px;
    }
}

/* ===== Notification Styles ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    padding: 16px;
    min-width: 300px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.notification-content i {
    font-size: 16px;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-warning {
    border-left: 4px solid var(--warning);
}

.notification-warning i {
    color: var(--warning);
}

.notification-info {
    border-left: 4px solid var(--primary);
}

.notification-info i {
    color: var(--primary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.notification-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

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