body {
    padding-top: 70px;
}
.row.mb-4.gap-3 {
    flex: 1;
}
.history-navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.history-navbar .history-navbar-brand {
    font-weight: 700;
    color: white !important;
    font-size: 1.5rem;
}

.history-stats-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.history-stats-card .history-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.history-stats-card .history-card-subtitle {
    font-size: 0.875rem;
    color: var(--secondary-text-color);
}

.history-trade-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-trade-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.history-trade-card .history-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.history-trade-card .history-badge.bg-success {
    background: var(--profit) !important;
}

.history-trade-card .history-badge.bg-danger {
    background: var(--loss) !important;
}

.history-trade-card .history-card-text {
    font-size: 0.875rem;
    color: var(--secondary-text-color);
}

.history-filter-section {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.history-filter-section .history-form-label {
    font-size: 0.875rem;
    color: var(--secondary-text-color);
}

.history-filter-section .history-form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.history-filter-section .history-form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.history-profit {
    color: var(--profit);
}

.history-loss {
    color: var(--loss);
}





.form-control {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-size: var(--base-font-size);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    outline: none;
}