/**
 * SEP Dashboard Styles
 * RTL and Iranian-friendly design
 */

@import url('https://fonts.googleapis.com/css2?family=Vazir:wght@300;400;500;700&display=swap');

.sep-dashboard-wrap {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.sep-dashboard-title {
    font-size: 24px;
    font-weight: bold;
    color: #23282d;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sep-dashboard-title .dashicons {
    color: #0073aa;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.sep-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Statistics Grid */
.sep-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sep-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-right: 4px solid;
}

.sep-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sep-stat-card.sep-stat-success {
    border-right-color: #46b450;
}

.sep-stat-card.sep-stat-error {
    border-right-color: #dc3232;
}

.sep-stat-card.sep-stat-total {
    border-right-color: #0073aa;
}

.sep-stat-card.sep-stat-amount {
    border-right-color: #f56e28;
}

.sep-stat-card.sep-stat-sandbox {
    border-right-color: #ff9800;
}

.sep-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sep-stat-success .sep-stat-icon {
    background: #e8f5e9;
    color: #46b450;
}

.sep-stat-error .sep-stat-icon {
    background: #ffebee;
    color: #dc3232;
}

.sep-stat-total .sep-stat-icon {
    background: #e3f2fd;
    color: #0073aa;
}

.sep-stat-amount .sep-stat-icon {
    background: #fff3e0;
    color: #f56e28;
}

.sep-stat-sandbox .sep-stat-icon {
    background: #fff8e1;
    color: #ff9800;
}

.sep-stat-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.sep-stat-content {
    flex: 1;
}

.sep-stat-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.sep-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #23282d;
    margin-bottom: 5px;
    line-height: 1.2;
}

.sep-stat-desc {
    font-size: 12px;
    color: #999;
}

/* Chart Sections */
.sep-chart-section {
    margin-bottom: 30px;
}

.sep-chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sep-chart-title {
    font-size: 18px;
    font-weight: bold;
    color: #23282d;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sep-chart-title .dashicons {
    color: #0073aa;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sep-chart-container {
    position: relative;
    height: 300px;
    padding: 10px;
}

/* Errors Section */
.sep-errors-section {
    margin-bottom: 30px;
}

.sep-errors-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sep-errors-title {
    font-size: 18px;
    font-weight: bold;
    color: #23282d;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sep-errors-title .dashicons {
    color: #dc3232;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sep-errors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sep-error-item {
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    border-right: 4px solid #f56e28;
}

.sep-error-item.sep-error-network {
    background: #ffebee;
    border-color: #dc3232;
    border-right-color: #dc3232;
}

.sep-error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.sep-error-title {
    font-size: 16px;
    font-weight: bold;
    color: #23282d;
    margin: 0;
}

.sep-error-date {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
}

.sep-error-message {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    border-right: 3px solid #dc3232;
}

.sep-error-suggestion {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    border-right: 3px solid #46b450;
}

.sep-error-suggestion-title {
    font-size: 14px;
    font-weight: bold;
    color: #2e7d32;
    margin: 0 0 10px 0;
}

.sep-error-suggestion-message {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sep-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sep-error-action {
    background: #46b450;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.sep-error-action:hover {
    background: #3a9e42;
    color: #fff;
}

.sep-error-action::before {
    content: "✓";
    font-weight: bold;
}

.sep-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.sep-no-errors {
    text-align: center;
    padding: 40px;
    color: #46b450;
    font-size: 16px;
}

.sep-no-errors::before {
    content: "✓";
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sep-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sep-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .sep-chart-container {
        height: 250px;
    }
    
    .sep-error-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* RTL Specific Adjustments */
.sep-dashboard-wrap * {
    direction: rtl;
}

.sep-dashboard-wrap .dashicons {
    direction: ltr;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sep-stat-card,
.sep-chart-card,
.sep-errors-card {
    animation: fadeIn 0.5s ease;
}

