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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: url('/static/images/matrix-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/matrix-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: hue-rotate(140deg) saturate(1.5) brightness(1.2);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(0, 40, 100, 0.4) 0%, rgba(0, 60, 140, 0.3) 50%, rgba(0, 30, 80, 0.4) 100%);
    z-index: -1;
}

.navbar {
    background: rgba(0, 20, 40, 0.85);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 100, 200, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: #333;
    display: block;
    padding: 0.75rem 1rem;
}

.dropdown-menu a:hover {
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-3d {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.dashboard-3d h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00ddff;
    text-shadow: 0 0 30px rgba(0, 170, 255, 0.8), 0 0 60px rgba(0, 170, 255, 0.4);
}

.subtitle {
    color: rgba(0, 200, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
}

.motherboard-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 550px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    perspective: 1000px;
}

.circuit-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 170, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.8;
    z-index: 2;
}

.circuit-traces {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.circuit-traces svg {
    width: 100%;
    height: 100%;
}

.trace {
    fill: none;
    stroke: #ccffff;
    stroke-width: 2;
    opacity: 0.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 8px #aaeeff);
}

.trace-1, .trace-3, .trace-5, .trace-7 {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: traceDraw 3s ease-in-out infinite;
}

.trace-2, .trace-4, .trace-6, .trace-8 {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: traceDraw 3s ease-in-out infinite 0.5s;
}

@keyframes traceDraw {
    0%, 100% { stroke-dashoffset: 200; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 0.8; }
}

.node-dot {
    fill: #ffffff;
    filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 12px #aaeeff);
    animation: dotPulse 2s ease-in-out infinite;
}

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

.chip-modules {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.chip-module {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    animation: chipFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--x) * 0.01s);
}

@keyframes chipFloat {
    0%, 100% { transform: translate(-50%, -50%) translateZ(0); }
    50% { transform: translate(-50%, -50%) translateZ(10px) translateY(-5px); }
}

.chip-body {
    background: linear-gradient(145deg, #1e3a5f, #0d2137);
    border: 1px solid #00aaff;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 
        0 4px 20px rgba(0, 170, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.chip-body::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #00aaff 0px,
        #00aaff 3px,
        transparent 3px,
        transparent 6px
    );
    opacity: 0.6;
}

.chip-body::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #00aaff 0px,
        #00aaff 3px,
        transparent 3px,
        transparent 6px
    );
    opacity: 0.6;
}

.chip-label {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: #0a1628;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.chip-name {
    font-size: 0.6rem;
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cpu-client {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.cpu-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.4) 0%, rgba(0, 120, 200, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    animation: cpuGlow 3s ease-in-out infinite;
}

@keyframes cpuGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.cpu-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(0, 170, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cpu-ring-1 {
    width: 240px;
    height: 240px;
    animation: ringRotate 20s linear infinite;
}

.cpu-ring-2 {
    width: 280px;
    height: 280px;
    border-style: dashed;
    animation: ringRotate 30s linear infinite reverse;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cpu-core {
    position: relative;
    width: 200px;
    height: 200px;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0, 170, 255, 0.15) 0%, transparent 50%),
        linear-gradient(145deg, rgba(0, 40, 80, 0.95), rgba(5, 21, 37, 0.98));
    border: 2px solid rgba(0, 170, 255, 0.6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 60px rgba(0, 170, 255, 0.5),
        0 0 100px rgba(0, 170, 255, 0.25),
        inset 0 0 40px rgba(0, 170, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cpu-core::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 170, 255, 0.1), transparent);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.core-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 170, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.08) 1px, transparent 1px);
    background-size: 12px 12px;
}

.core-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 1rem;
}

.core-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    padding: 8px;
}

.core-icon svg {
    width: 100%;
    height: 100%;
    fill: #00ddff;
    filter: drop-shadow(0 0 12px #00aaff);
}

.core-content h2 {
    font-size: 1.5rem;
    color: #00ddff;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.core-content p {
    font-size: 0.75rem;
    color: rgba(0, 200, 255, 0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cyber {
    background: rgba(0, 30, 60, 0.6);
    color: #00ddff;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 170, 255, 0.5);
    box-shadow: 
        0 0 25px rgba(0, 170, 255, 0.4),
        0 0 50px rgba(0, 170, 255, 0.2),
        inset 0 0 15px rgba(0, 170, 255, 0.15);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-cyber:hover {
    background: rgba(0, 80, 150, 0.7);
    color: #ffffff;
    border-color: #00ddff;
    box-shadow: 
        0 0 40px rgba(0, 170, 255, 0.6),
        0 0 80px rgba(0, 170, 255, 0.3),
        inset 0 0 25px rgba(0, 170, 255, 0.25);
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-grid {
    display: inline-block;
    background: transparent;
    color: #00ddff;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: none;
    transition: all 0.3s;
    text-shadow: 0 0 20px rgba(0, 200, 255, 1), 0 0 40px rgba(0, 170, 255, 0.8);
    text-decoration: none;
}

.btn-grid:hover {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(0, 200, 255, 1);
    transform: scale(1.05);
}

.data-streams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.stream {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #00aaff, transparent);
    opacity: 0.6;
    animation: streamFlow 3s linear infinite;
}

.stream-1 { left: 20%; animation-delay: 0s; }
.stream-2 { left: 40%; animation-delay: 0.8s; }
.stream-3 { left: 60%; animation-delay: 1.6s; }
.stream-4 { left: 80%; animation-delay: 2.4s; }

@keyframes streamFlow {
    0% { top: -40px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.module-grid.surrounding {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.module-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .matrix-stage {
        height: 400px;
    }
    
    .client-content {
        width: 160px;
        height: 160px;
    }
    
    .client-content h2 {
        font-size: 1.2rem;
    }
    
    .matrix-node {
        width: 70px;
        height: 55px;
    }
    
    .node-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .node-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 650px) {
    .matrix-stage {
        height: 350px;
        perspective: 800px;
    }
    
    .matrix-background {
        transform: rotateX(5deg);
    }
    
    .layer-back, .layer-mid, .layer-front {
        transform: translateZ(0) translateY(0);
        opacity: 0.3;
    }
    
    .client-content {
        width: 140px;
        height: 140px;
    }
    
    .client-glow {
        width: 200px;
        height: 200px;
    }
    
    .matrix-node {
        width: 60px;
        height: 45px;
    }
}

.module-card.center-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.module-card.center-card p {
    opacity: 0.9;
}

.module-card h2, .module-card h3 {
    margin-bottom: 0.5rem;
}

.module-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.module-card.center-card p {
    color: rgba(255,255,255,0.9);
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn:not(.btn-primary):not(.btn-secondary) {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn:not(.btn-primary):not(.btn-secondary):hover {
    background: #bdc3c7;
}

.quick-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 170, 255, 0.3);
    position: relative;
    z-index: 1;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    color: #00ddff;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.8), 0 0 40px rgba(0, 170, 255, 0.5);
    font-size: 1.5rem;
}

.quick-actions .btn {
    margin: 0 0.5rem;
    background: rgba(0, 100, 180, 0.5);
    color: #00ddff;
    border: 1px solid rgba(0, 170, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.quick-actions .btn:hover {
    background: rgba(0, 130, 220, 0.7);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.5);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.page-header h1 {
    color: #2c3e50;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-section-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group-half {
    flex: 2;
}

.form-group-quarter {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-planning { background: #fff3cd; color: #856404; }
.status-active { background: #d4edda; color: #155724; }
.status-completed { background: #cce5ff; color: #004085; }
.status-pending { background: #fff3cd; color: #856404; }
.status-draft { background: #e2e3e5; color: #383d41; }
.status-approved { background: #d4edda; color: #155724; }
.status-scheduled { background: #cce5ff; color: #004085; }

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-card h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #666;
    width: 150px;
}

.detail-value {
    flex: 1;
}

.detail-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state p {
    margin-bottom: 1rem;
}

.summary-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
}

.summary-card h3 {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.summary-card .amount {
    font-size: 2rem;
    font-weight: bold;
}

.summary-card.pending .amount {
    color: #e67e22;
}

.summary-card.paid .amount {
    color: #27ae60;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.priority-low { color: #27ae60; }
.priority-medium { color: #3498db; }
.priority-high { color: #e67e22; }
.priority-urgent { color: #e74c3c; font-weight: bold; }

.status-paid { background: #d4edda; color: #155724; }
.status-overdue { background: #f8d7da; color: #721c24; }
.status-open { background: #cce5ff; color: #004085; }
.status-closed { background: #e2e3e5; color: #383d41; }
.status-delayed { background: #f8d7da; color: #721c24; }
.status-superseded { background: #e2e3e5; color: #383d41; }

tr.overdue {
    background: #fff5f5;
}

.completed-text, .closed-text, .paid-text {
    color: #27ae60;
    font-size: 0.85rem;
}

.tracking-section {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.tracking-section h2 {
    color: #00ddff;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.8);
}

.tracking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tracking-card {
    background: rgba(0, 20, 50, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 100, 200, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.tracking-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow: 
        0 8px 30px rgba(0, 100, 200, 0.4),
        0 0 40px rgba(0, 170, 255, 0.2),
        inset 0 0 30px rgba(0, 100, 200, 0.15);
}

.tracking-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.4), rgba(0, 100, 200, 0.6));
    color: #00ddff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border: 1px solid rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    margin: 0 auto 0.75rem;
}

.tracking-card h3 {
    color: #00ddff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.tracking-card p {
    color: rgba(150, 200, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tracking-card .btn {
    background: rgba(0, 100, 180, 0.5);
    color: #00ddff;
    border: 1px solid rgba(0, 170, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.tracking-card .btn:hover {
    background: rgba(0, 130, 220, 0.7);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
}

@media (max-width: 768px) {
    .tracking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-cards {
        flex-direction: column;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
}
