/* ==========================================================================
   Sidebar & Navigation - DO NOT OVERRIDE
   ========================================================================== */

/* Keep original sidebar styling - don't override */

/* ==========================================================================
   Global Styles & Utilities
   ========================================================================== */

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

/* Badges */
.badge-long {
    background: #0f62fe;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-short {
    background: #da1e28;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.profit {
    color: #24a148;
    font-weight: bold;
}

.loss {
    color: #da1e28;
    font-weight: bold;
}

/* ==========================================================================
   Tables - Unified Styling
   ========================================================================== */

.data-table-wrapper {
    margin-top: 2rem;
}

.bx--data-table {
    width: 100%;
}

.bx--data-table thead th {
    background-color: #f4f4f4;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.bx--data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.bx--data-table tbody tr:hover {
    background-color: #f4f4f4;
}

/* ==========================================================================
   Forms - Unified Spacing
   ========================================================================== */

.form-section {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form-section-title {
    margin-bottom: 1rem;
}

.bx--form-item {
    margin-bottom: 1.5rem;
}

.bx--label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Checkboxes - Unified Styling
   ========================================================================== */

/* Standard checkbox wrapper */
.bx--checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Checkbox input */
.bx--checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

/* Checkbox label - IMPORTANT: 12px spacing between checkbox and text */
.bx--checkbox-label {
    line-height: 1.5;
    cursor: pointer;
    padding-left: 12px;
    /* 12px space between checkbox and text */
    margin: 0;
}

/* Timeframe Checkboxes (2-column grid) */
.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    /* row-gap column-gap */
}

/* ==========================================================================
   Buttons - Consistent Spacing
   ========================================================================== */

.bx--btn {
    margin-right: 0.5rem;
}

.bx--btn:last-child {
    margin-right: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .timeframe-grid {
        grid-template-columns: 1fr;
    }
}