/* Dashboard Stat Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.stat-card {
    background: #23272f;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 8px;
    text-align: center;
    transition: box-shadow 0.2s;
    border-top: 3px solid #F87060;
}

.stat-card .stat-label {
    font-size: 0.95em;
    color: #a0a0a0;
    font-weight: 500;
    margin-bottom: 0.2em;
}

.stat-card .stat-value {
    font-size: 1.6em;
    font-weight: bold;
    color: #F87060;
    margin-bottom: 0.1em;
}

.stat-card.returns-win .stat-value {
    color: #228B22;
}
.stat-card.returns-loss .stat-value {
    color: #d32f2f;
}

/* Bet Form Styling */
.bet-add-form {
    background: #23272f;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.2em 1em;
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    align-items: flex-end;
    flex-direction: row;
}

.bet-add-form .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 1 1 140px;
    margin-bottom: 0.5em;
}

.bet-add-form label {
    margin-bottom: 4px;
    font-size: 0.92em;
    color: #F87060;
    font-weight: 500;
}

.bet-add-form input,
.bet-add-form select {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #5C6270;
    background-color: #3F444F;
    color: #f3f6fa;
    font-size: 0.98em;
    margin-bottom: 2px;
    transition: border-color 0.2s;
}

.bet-add-form input:focus,
.bet-add-form select:focus {
    border-color: #F87060;
    outline: none;
}

.bet-add-form button {
    padding: 0.6em 1.5em;
    background: #F87060;
    color: #102542;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(248, 112, 96, 0.15);
    margin-top: 0.5em;
    transition: background 0.2s;
}

.bet-add-form button:hover {
    background: #ff9483;
}

/* Results Table Styling */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 1em;
    background: #1E2129;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.results-table th, .results-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #2C3240;
    color: #111 !important; /* Black text for visibility */
}

.results-table th {
    background: #3F444F;
    color: #F87060 !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 1em;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.bet-win {
    background: #e6ffe6 !important;
    font-weight: 600;
}

.bet-lose {
    background: #ffe6e6 !important;
    font-weight: 600;
}

.results-table .bet-pending {
    background: #fffbe6 !important;
    color: #bfa700 !important;
    font-weight: 600;
}

.results-table td, .results-table th {
    transition: background 0.2s, color 0.2s;
}

.bet-add-form {
    background: #23272f;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.2em 1em;
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    align-items: flex-end;
    flex-direction: row;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.7em;
    }
    .bet-add-form {
        flex-direction: column;
        gap: 0.7em;
        padding: 0.7em;
        align-items: stretch;
    }
    .bet-add-form .filter-group {
        min-width: 100%;
        width: 100%;
        margin-bottom: 0.5em;
    }
    .bet-add-form button {
        width: 100%;
        margin-top: 1em;
    }
    .results-table th, .results-table td {
        padding: 7px 4px;
        font-size: 0.95em;
    }
}