/* TraxFlow - Dark Dashboard Theme (FCC Network Scanner Style) */

:root {
    /* Dark Background Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0d1420;
    --bg-card: #111827;
    --bg-card-darker: #0c1322;
    --bg-hover: rgba(0, 212, 255, 0.05);
    --bg-input: #0c1322;

    /* Accent Colors */
    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.7);
    --accent-orange: #f5a623;
    --accent-orange-dim: rgba(245, 166, 35, 0.8);
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-yellow: #eab308;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-cyan: #00d4ff;

    /* Border Colors */
    --border-color: rgba(55, 65, 81, 0.5);
    --border-light: rgba(55, 65, 81, 0.3);
    --border-cyan: rgba(0, 212, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.15);

    /* Radius */
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 28px;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Logo */
.logo {
    margin-bottom: 28px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: var(--radius);
}

.logo-img {
    max-width: 180px;
    height: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border-left: 3px solid var(--accent-cyan);
    margin-left: -3px;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.nav-section {
    margin: 12px 0 6px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 8px 14px 4px;
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

.nav-subitem {
    margin-bottom: 2px;
}

.nav-link.nav-link-sub {
    padding-left: 34px;
    font-size: 13px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--border-cyan);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-value.cyan { color: var(--accent-cyan); }
.stat-value.green { color: var(--accent-green); }
.stat-value.orange { color: var(--accent-orange); }
.stat-value.purple { color: var(--accent-purple); }

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

.stat-change {
    font-size: 11px;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

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

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-card-darker);
}

tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: var(--bg-hover);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.badge-warning {
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent-orange);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

.badge-ms {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
}

.badge-hsd {
    background: rgba(234, 179, 8, 0.2);
    color: var(--accent-yellow);
}

.badge-speed, .badge-xp {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

/* Connected Status Badge */
.badge-connected {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-green);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-orange-dim);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-cyan);
}

.btn-cyan {
    background: var(--accent-cyan);
    color: #000;
}

.btn-cyan:hover {
    background: var(--accent-cyan-dim);
}

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

.btn-danger:hover {
    opacity: 0.9;
}

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

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

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

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Camera Preview */
.camera-preview {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.camera-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.camera-preview .placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    text-align: center;
}

/* Zone Canvas */
.zone-canvas-container {
    position: relative;
    width: 100%;
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.zone-canvas {
    display: block;
    width: 100%;
    cursor: crosshair;
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

.status-dot.offline {
    background: var(--accent-red);
}

.status-dot.unknown {
    background: var(--text-muted);
}

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

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
    font-size: 13px;
}

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

.toast.success {
    border-left: 3px solid var(--accent-green);
}

.toast.error {
    border-left: 3px solid var(--accent-red);
}

/* User Menu */
.user-menu {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #000;
    font-size: 13px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

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

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

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-cyan);
}

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

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Section Title */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Glass Table Card */
.glass-table-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.glass-table-card table {
    margin: 0;
}

.glass-table-card th {
    background: var(--bg-card-darker);
    padding: 14px 16px;
}

.glass-table-card td {
    padding: 12px 16px;
}

.glass-table-card tr:hover {
    background: var(--bg-hover);
}

/* Tank Fill Level Bar */
.fill-level {
    width: 60px;
    height: 8px;
    background: var(--bg-card-darker);
    border-radius: 4px;
    overflow: hidden;
}

.fill-level-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fill-level-bar.green { background: var(--accent-green); }
.fill-level-bar.yellow { background: var(--accent-yellow); }
.fill-level-bar.orange { background: var(--accent-orange); }
.fill-level-bar.red { background: var(--accent-red); }

/* Price Card */
.price-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
}

.price-value.green { color: var(--accent-green); }
.price-value.yellow { color: var(--accent-yellow); }
.price-value.purple { color: var(--accent-purple); }
.price-value.cyan { color: var(--accent-cyan); }

.price-unit {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* Live Logs Style */
.live-logs {
    background: var(--bg-card-darker);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 11px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
}

.log-info {
    color: var(--accent-cyan);
}

.log-success {
    color: var(--accent-green);
}

.log-error {
    color: var(--accent-red);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 14px;
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-cyan);
}

/* ==================== ANIMATIONS ==================== */

/* Keyframe Definitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Page Load Animation */
.main-content {
    animation: fadeIn 0.4s ease-out;
}

/* Sidebar Animation */
.sidebar {
    animation: fadeInLeft 0.3s ease-out;
}

.nav-item {
    animation: fadeInLeft 0.3s ease-out backwards;
}

.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-item:nth-child(7) { animation-delay: 0.35s; }
.nav-item:nth-child(8) { animation-delay: 0.4s; }

/* Card Animations */
.card, .stat-card, .role-card, .price-card, .glass-table-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

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

/* Table Row Animations */
tbody tr {
    animation: fadeInUp 0.3s ease-out backwards;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.3s; }
tbody tr:nth-child(7) { animation-delay: 0.35s; }
tbody tr:nth-child(8) { animation-delay: 0.4s; }
tbody tr:nth-child(9) { animation-delay: 0.45s; }
tbody tr:nth-child(10) { animation-delay: 0.5s; }

/* Page Header Animation */
.page-header {
    animation: fadeInDown 0.4s ease-out;
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.4);
}

.btn-cyan:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* Nav Link Hover Animation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1), transparent);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Status Dot Pulse Animation */
.status-dot.online {
    animation: pulse 2s ease-in-out infinite;
}

/* Badge Animations */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-success {
    animation: fadeIn 0.3s ease-out;
}

/* Form Input Focus Animation */
.form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15), 0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* Modal Animation Enhancement */
.modal-overlay {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Login Card Animation */
.login-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Logo Animation */
.logo {
    animation: fadeIn 0.5s ease-out;
}

.logo-icon {
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
}

/* User Menu Animation */
.user-menu {
    animation: fadeInUp 0.4s ease-out 0.5s backwards;
}

.user-info {
    transition: all 0.3s ease;
}

.user-info:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* Stat Card Hover Animation */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.stat-value {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-value {
    transform: scale(1.05);
}

/* Role Card Animation */
.role-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-cyan);
}

.roles-grid .role-card:nth-child(1) { animation-delay: 0.1s; }
.roles-grid .role-card:nth-child(2) { animation-delay: 0.15s; }
.roles-grid .role-card:nth-child(3) { animation-delay: 0.2s; }
.roles-grid .role-card:nth-child(4) { animation-delay: 0.25s; }

/* Price Card Animation */
.price-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.price-value {
    transition: transform 0.3s ease;
}

.price-card:hover .price-value {
    transform: scale(1.1);
}

/* Glass Table Card Animation */
.glass-table-card {
    transition: all 0.3s ease;
}

.glass-table-card:hover {
    border-color: var(--border-cyan);
}

/* Camera Preview Animation */
.camera-preview {
    transition: all 0.3s ease;
}

.camera-preview:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Privilege Badge Animation */
.privilege-badge {
    transition: all 0.2s ease;
}

.privilege-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Fill Level Bar Animation */
.fill-level-bar {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

.fill-level-bar.green {
    background-image: linear-gradient(90deg, var(--accent-green) 0%, rgba(34, 197, 94, 0.7) 50%, var(--accent-green) 100%);
}

.fill-level-bar.yellow {
    background-image: linear-gradient(90deg, var(--accent-yellow) 0%, rgba(234, 179, 8, 0.7) 50%, var(--accent-yellow) 100%);
}

.fill-level-bar.orange {
    background-image: linear-gradient(90deg, var(--accent-orange) 0%, rgba(245, 166, 35, 0.7) 50%, var(--accent-orange) 100%);
}

.fill-level-bar.red {
    background-image: linear-gradient(90deg, var(--accent-red) 0%, rgba(239, 68, 68, 0.7) 50%, var(--accent-red) 100%);
}

/* Log Entry Animation */
.log-entry {
    animation: fadeInLeft 0.2s ease-out;
}

/* Empty State Animation */
.empty-state {
    animation: fadeIn 0.5s ease-out;
}

.empty-state svg {
    animation: bounce 2s ease-in-out infinite;
}

/* Checkbox Animation */
input[type="checkbox"] {
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    animation: scaleIn 0.2s ease;
}

/* Hover Glow Effect for Interactive Elements */
.btn-secondary:hover,
.role-option:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
