/* استایل‌های اختصاصی صفحه مدیریت درگاه‌های پرداخت */

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

.back-btn i {
    font-size: 14px;
}

.gateways-container {
    margin-top: 20px;
}

.gateways-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gateway-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gateway-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.gateway-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.gateway-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 15px;
}

.gateway-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.gateway-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.gateway-status-badge.enabled {
    background: #d4edda;
    color: #155724;
}

.gateway-status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
}

.gateway-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.settings-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.settings-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.toggle-status-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-status-btn.enabled {
    background: #28a745;
}

.toggle-status-btn:hover {
    opacity: 0.9;
}

.toggle-status-btn i {
    font-size: 14px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.setting-input,
.setting-textarea,
.setting-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.setting-input:focus,
.setting-textarea:focus,
.setting-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-textarea {
    min-height: 100px;
    resize: vertical;
}

.setting-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.settings-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.result-message.show {
    display: block;
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

.loading i {
    font-size: 24px;
    margin-left: 10px;
}

.hidden {
    display: none !important;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .gateways-list {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .toggle-status-btn {
        width: 100%;
        justify-content: center;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
}

