/* Main styles */
body {
    background: linear-gradient(135deg, #e0e5ec 0%, #f8f9fa 100%);
    background-attachment: fixed;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dashboard stats cards */
.stats-overview {
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(248, 249, 250, 0.8);
    z-index: 10;
}

/* Best profit card */
.best-profit-card {
    border-left: 4px solid #198754;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Table styling */
.table th {
    font-weight: 600;
}

.status-profit {
    color: #198754;
}

.status-loss {
    color: #dc3545;
}

.timestamp {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Navigation */
.nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-brand {
    font-weight: 600;
}

.navbar {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.navbar-light .navbar-nav .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
}

/* Cards */
.card {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Form elements */
.form-select {
    max-width: 150px;
}

/* Footer */
.footer {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

/* Tooltips */
.tooltip {
    font-size: 0.8rem;
}

/* Miscellaneous */
.section-title {
    margin-bottom: 1.5rem;
}

/* Dark mode styles */
body.dark-mode {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: #f8f9fa;
}

body.dark-mode .navbar {
    background: rgba(33, 37, 41, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .glass,
body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .best-profit-card {
    background: rgba(33, 37, 41, 0.6);
    color: #f8f9fa;
}

body.dark-mode .card-header,
body.dark-mode .footer {
    background-color: rgba(52, 58, 64, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

body.dark-mode .table,
body.dark-mode .table th,
body.dark-mode .table td {
    color: #f8f9fa;
}

body.dark-mode .table-light {
    background-color: rgba(52, 58, 64, 0.6) !important;
}

body.dark-mode .table-light th,
body.dark-mode .table-light td {
    background-color: rgba(52, 58, 64, 0.6) !important;
    color: #f8f9fa !important;
}

body.dark-mode .bg-light {
    background-color: rgba(52, 58, 64, 0.6) !important;
}
