/* Student Account Styles for Tutor Installments */
/* File Path: assets/css/account.css */

.tutor-installments-account {
    padding: 20px 0;
}

.tutor-installments-account h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

/* Installment Plan Card */
.installment-plan {
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.plan-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.plan-status {
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-status.status-active {
    background: #46b450;
    color: #fff;
}

.plan-status.status-suspended {
    background: #dc3232;
    color: #fff;
}

.plan-status.status-completed {
    background: #00a0d2;
    color: #fff;
}

/* MEMBERSHIP INTEGRATION: Paused status styling */
.plan-status.paused {
    background: #2196F3;
    color: #fff;
}

/* MEMBERSHIP INTEGRATION: Membership pause notice */
.membership-pause-notice {
    background: #e7f3ff;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.membership-pause-notice h4 {
    margin: 0 0 10px 0;
    color: #1976D2;
    font-size: 16px;
    font-weight: 600;
}

.membership-pause-notice p {
    margin: 0 0 15px 0;
    color: #0D47A1;
    line-height: 1.6;
}

/* Plan Summary */
.plan-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.summary-item .label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.summary-item .value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Payment Progress */
.payment-progress {
    margin-bottom: 25px;
}

.progress-bar {
    height: 25px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #46b450, #5bc862);
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    color: #666;
}

/* Installments List */
.installments-list h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.installments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.installments-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.installments-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.installments-table tr:hover {
    background: #f9f9f9;
}

.installment-row.status-paid {
    opacity: 0.7;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.status-paid {
    background: #46b450;
    color: #fff;
}

.status-badge.status-pending {
    background: #ffb900;
    color: #fff;
}

.status-badge.status-overdue {
    background: #dc3232;
    color: #fff;
}

/* MEMBERSHIP INTEGRATION: Paused payment button styling */
.pay-installment-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

.pay-installment-btn.paused-payment {
    background: #2196F3 !important;
    border-color: #2196F3 !important;
    opacity: 0.8;
}

.pay-installment-btn.paused-payment:hover {
    opacity: 1;
}

/* Plan Notice */
.plan-notice {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.plan-notice.notice-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.plan-notice p {
    margin: 5px 0;
}

.plan-notice strong {
    color: #dc3232;
}

/* Responsive Design */
@media (max-width: 768px) {
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .plan-summary {
        grid-template-columns: 1fr;
    }
    
    .installments-table {
        font-size: 13px;
    }
    
    .installments-table th,
    .installments-table td {
        padding: 8px 6px;
    }
    
    .installments-table th:nth-child(3),
    .installments-table td:nth-child(3) {
        display: none;
    }
    
    /* MEMBERSHIP INTEGRATION: Responsive pause notice */
    .membership-pause-notice {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .installment-plan {
        padding: 15px;
    }
    
    .installments-table {
        font-size: 12px;
    }
    
    .installments-table th:nth-child(2),
    .installments-table td:nth-child(2) {
        display: none;
    }
}