/* استایل‌های اصلی سیستم اقساطی */
.installment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.installment-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.installment-alert.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.installment-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.installment-alert.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* فرم‌ها */
.installment-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

/* دکمه‌ها */
.installment-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* کارت‌ها */
.installment-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.installment-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* جدول‌ها */
.installment-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.installment-table table {
    width: 100%;
    border-collapse: collapse;
}

.installment-table th,
.installment-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.installment-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.installment-table tr:hover {
    background-color: #f8f9fa;
}

/* وضعیت‌ها */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d1edff;
    color: #004085;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

.status-upcoming {
    background: #e2e3e5;
    color: #383d41;
}

/* درگاه‌های پرداخت */
.gateway-options {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.gateway-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gateway-option:hover {
    border-color: #3498db;
}

.gateway-option.selected {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.gateway-option input[type="radio"] {
    margin: 0;
}

/* داشبورد */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

/* پروفایل */
.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.user-card {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.user-avatar {
    margin-bottom: 15px;
}

.user-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li {
    margin-bottom: 5px;
}

.profile-nav a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: #3498db;
    color: white;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .installment-table {
        overflow-x: auto;
    }
    
    .gateway-options {
        grid-template-columns: 1fr;
    }
}

/* صفحه درخواست */
.installment-request {
    text-align: center;
    padding: 40px 20px;
}

.request-form {
    max-width: 500px;
    margin: 0 auto;
}

.tracking-input {
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
}

/* صفحه پرداخت */
.payment-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.payment-amount {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin: 15px 0;
}

.payment-details {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}