/* Payments Page Specific Styles */

.date-range-picker {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.date-range-picker label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a202c;
}

.date-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: #e84545;
    color: #e84545;
}

.preset-btn.active {
    background: linear-gradient(135deg, #e84545 0%, #c72c2c 100%);
    border-color: #e84545;
    color: white;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.date-input:focus {
    outline: none;
    border-color: #e84545;
}

.coach-filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.coach-filter-section label {
    font-weight: 600;
    color: #1a202c;
}

/* Payment Breakdown */
.payment-breakdown {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.payment-breakdown h2 {
    font-size: 24px;
    color: #1a202c;
    margin-bottom: 20px;
}

.coach-payment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.coach-payment-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.coach-payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.coach-payment-card.unpaid {
    border-color: #ed8936;
    background: linear-gradient(135deg, #fffaf0 0%, #fef5e7 100%);
}

.coach-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.coach-payment-header h3 {
    font-size: 18px;
    color: #1a202c;
    margin: 0;
}

.payment-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status-badge.unpaid {
    background: #feebc8;
    color: #7c2d12;
}

.payment-status-badge.paid {
    background: #c6f6d5;
    color: #22543d;
}

.coach-payment-details {
    margin-bottom: 15px;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.payment-detail-row:last-child {
    border-bottom: none;
}

.payment-detail-row.total {
    font-weight: 700;
    font-size: 18px;
    color: #e84545;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 2px solid #e2e8f0;
}

.coach-payment-actions {
    display: flex;
    gap: 10px;
}

.coach-payment-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Sessions Table */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.table-header h2 {
    font-size: 20px;
    color: #1a202c;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
}

.sessions-table thead {
    background: linear-gradient(135deg, #e84545 0%, #c72c2c 100%);
}

.sessions-table th {
    padding: 18px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sessions-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.sessions-table tbody tr:hover {
    background: #f7fafc;
}

.sessions-table td {
    padding: 18px;
    color: #4a5568;
}

.session-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.session-type-badge.individual {
    background: #bee3f8;
    color: #2c5282;
}

.session-type-badge.group {
    background: #fed7d7;
    color: #742a2a;
}

.session-type-badge.practice {
    background: #c6f6d5;
    color: #22543d;
}

.session-amount {
    font-weight: 600;
    color: #38a169;
    font-size: 16px;
}

.session-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.session-status.paid {
    background: #c6f6d5;
    color: #22543d;
}

.session-status.unpaid {
    background: #feebc8;
    color: #7c2d12;
}

/* Payment Modal */
.payment-summary {
    padding: 20px 30px;
}

.payment-summary h3 {
    font-size: 24px;
    color: #1a202c;
    margin-bottom: 20px;
}

.payment-details {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.payment-row.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #e84545;
}

/* Responsive */
@media (max-width: 768px) {
    .date-presets {
        flex-direction: column;
    }
    
    .custom-date-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coach-payment-list {
        grid-template-columns: 1fr;
    }
    
    .sessions-table {
        min-width: 800px;
    }
    
    .table-container {
        overflow-x: auto;
    }
}
