/* Dashboard-specific styles matching Streamlit glassmorphism from styles.css & filter_styles.css */

/* Body & Layout */
.dashboard-body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
}

/* Title */
.title-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0,51,102,0.3) 0%, rgba(0,77,153,0.2) 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.title-container h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    text-shadow: none;
}

.title-container p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin: 0 0 20px 0;
}

/* Countdown */
.countdown-container {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.9) 100%);
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.15);
}

#countdown-display {
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: monospace;
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.92) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
}

.filter-section h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-column {
    background: rgba(20,30,55,0.95);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s ease;
}

.filter-column:hover {
    background: rgba(25,40,70,0.98);
    border-color: rgba(96,165,250,0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.filter-column label {
    display: block;
    color: #e2e8f9;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* Glass Inputs */
.glass-input {
    width: 100%;
    background: rgba(30,41,59,0.9);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.glass-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96,165,250,0.2);
    background: rgba(30,41,59,0.98);
}

.glass-input::placeholder {
    color: #94a3b8;
}

select.glass-input {
    cursor: pointer;
}

/* Filter Stats */
.filter-stats {
    background: linear-gradient(135deg, rgba(34,197,94,0.2) 0%, rgba(16,185,129,0.15) 100%);
    border: 1px solid rgba(34,197,94,0.4);
    border-radius: 15px;
    padding: 15px 25px;
    text-align: center;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Buttons */
.refresh-btn, .clear-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
    margin-right: 15px;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59,130,246,0.4);
}

.clear-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    margin-right: 0;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.92) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.metric-card h3 {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #60a5fa 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-delta {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.metric-delta[class*="+" i] {
    background: rgba(34,197,94,0.2);
    color: #10b981;
    border: 1px solid rgba(34,197,94,0.4);
}

.metric-delta[class*="-" i] {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.4);
}

/* Charts */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.92) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
}

.chart-container h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.chart-placeholder {
    min-height: 300px;
}

/* DataFrame / Table */
.dataframe-container {
    background: linear-gradient(135deg, rgba(235,245,255,0.1) 0%, rgba(245,250,255,0.08) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    backdrop-filter: blur(20px);
}

.dataframe-container h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 25px 0;
    font-weight: 600;
}

.table-placeholder table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30,41,59,0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.table-placeholder th {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.table-placeholder td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status.placed {
    background: rgba(34,197,94,0.2);
    color: #10b981;
    border: 1px solid rgba(34,197,94,0.4);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30,41,59,0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #004d99;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .title-container h1 {
        font-size: 2rem;
    }
}

