:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --hover-color: #f8f9fa;
    --transition-speed: 0.3s;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --table-bg: #ffffff;
    --table-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --date-header-bg: #f1f5f9;
    --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);
}

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

/* Table header styles */
thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--primary-color);
    color: white;
    vertical-align: middle;
    text-align: center;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    letter-spacing: -0.025em;
    padding: 1rem;
}

thead th:hover {
    background: #1d4ed8;
}

/* Fixed column styles */
.fixed-column {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: var(--table-bg);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: background var(--transition-speed) ease;
    font-weight: 600;
    color: var(--primary-color);
}

.price-cell {
    text-align: right;
    padding-right: 1.2rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
}

.time-cell {
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 80px;
    transition: all var(--transition-speed) ease;
    color: #64748b;
}

.period-divider {
    border-right: 2px solid var(--border-color);
}

tbody tr {
    transition: all var(--transition-speed) ease;
}

tbody tr:hover td {
    background-color: var(--table-hover) !important;
    transform: scale(1.01);
}

.card {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    background-color: var(--card-bg);
    border: none;
    overflow: hidden;
}

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

.btn {
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--table-hover);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control {
    transition: all var(--transition-speed) ease;
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    backdrop-filter: blur(4px);
}

.loading.active {
    opacity: 1;
    pointer-events: all;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Modern table styles */
.table {
    margin-bottom: 0;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 2px solid var(--border-color);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .table-responsive {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .card {
        border-radius: 0;
        margin: 0 -1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 
