.bet-calendar {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.view-group > button.active {
    background: #37375f !important;
    opacity: 0.65;
    pointer-events: none;
}
    
.bet-calendar-title button {
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
}

.bet-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bet-calendar-header-row {
    background-color: #f8fafc;
    border-bottom: 2px solid black;
}

.bet-calendar-header-cell {
    padding: 0.75rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    background-color: #f1f5f9;
}

.bet-calendar-header-cell:last-child {
    border-right: none;
}

.calendar-cell {
    border: 1px solid #e2e8f0;
    border-top: none;
    text-align: center;
    vertical-align: middle;
    padding: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipses;
}

.bet-calendar-day {
    height: 50px;
}

.bet-calendar-month {
    height: 80px;
}

.bet-calendar-day-cell {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #f8fafc;
    transition: background-color 0.2s ease;
    cursor: pointer;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipses;
    white-space: nowrap;
}

.bet-calendar-day-cell {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.bet-calendar-day-cell:hover {
    background-color: #e2e8f0; /* subtle highlight color */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.03); /* soft overlay */
    cursor: pointer;
}

.bet-calendar-day-cell.today {
    border: 2px solid #0f0f3f !important;
}
.bet-calendar-day-cell.max-profit {
    border: 2px solid #059669;
}
.bet-calendar-day-cell.min-profit {
    border: 2px solid #dc2626;
}

.bet-calendar-day-cell.has-data.pending {
    background-color: #fefce8;
}

.bet-calendar-day-cell.has-data.positive {
    background-color: #f0fdf4;
}

.bet-calendar-day-cell.has-data.negative {
    background-color: #fef2f2;
}

.bet-calendar-day-number {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.bet-calendar-month-name {
    font-size: 1rem;
    font-weight: 500;
}

.bet-calendar-day-text {
    font-size: 0.725rem;
    font-weight: 700;
    white-space: nowrap;
}

.bet-calendar-month-text {
    font-size: 1rem;
    font-weight: 700;
}

.bet-calendar-day-text.positive, 
.bet-calendar-total-text.positive, 
.bet-calendar-summary-text.positive, 
.bet-calendar-month-text.positive {
    color: #059669;
}

.bet-calendar-day-text.negative, 
.bet-calendar-total-text.negative, 
.bet-calendar-summary-text.negative, 
.bet-calendar-month-text.negative {
    color: #dc2626;
}

.bet-calendar-day-text.neutral, 
.bet-calendar-total-text.neutral, 
.bet-calendar-summary-text.neutral, 
.bet-calendar-month-text.neutral {
    color: #6b7280;
}
    
.calendar-bet-tabs .nav-link {
    color: var(--bettrackr-blue);
}

.bet-calendar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 700;
}

.bet-calendar-summary-text {
    font-size: 0.825rem;
    font-weight: 700;
}

.bet-calendar-empty {
    opacity: 0.3;
}

.bet-calendar-summary-row td {
    height: 25px !important;
}

.bet-calendar-summary-row {
    border-top: 2px solid black;
    background-color: #f1f5f9;
}

@media (max-width: 480px) {
    .bet-calendar {
        padding: 1rem;
    }
    
    .bet-calendar-day {
        height: 40px;
    }
    
    .bet-calendar-day-cell {
        min-height: 30px;
    }
    
    .bet-calendar-day-number {
        font-size: 0.75rem;
    }
    
    .bet-calendar-day-text {
        font-size: 0.5rem;
    }
}