/* ==================================================
   UTILITIES (Refactored)
   دکمه‌ها، متن‌ها، بج‌ها، وضعیت‌ها
   با استفاده از متغیرهای مرکزی style.css
   ================================================== */

/* ==================================================
   1) BUTTONS
   ================================================== */

.custom-education-theme-btn-primary,
.custom-education-theme-btn-secondary,
.custom-education-theme-btn-success,
.custom-education-theme-btn-danger,
.custom-education-theme-btn-warning,
.custom-education-theme-btn-info,
.custom-education-theme-btn-dark,
.custom-education-theme-btn-light,
.custom-education-theme-btn-white,
.custom-education-theme-btn-muted,
.custom-education-theme-btn-purple,
.custom-education-theme-btn-accent,
.custom-education-theme-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

/* ---- Primary (آبی) ---- */
.custom-education-theme-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #60a5fa); /* آبی به آبی روشن */
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.35);
}

    .custom-education-theme-btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.5);
    }

/* ---- Accent (رنگ برند قالب) ---- */
.custom-education-theme-btn-accent {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 8px 22px var(--accent-glow-35);
}

    .custom-education-theme-btn-accent:hover {
        background: linear-gradient(135deg, var(--accent-3), var(--accent));
        transform: translateY(-2px);
        box-shadow: 0 12px 30px var(--accent-glow-50);
    }

/* ---- Purple (بنفش - مستقل از برند) ---- */
.custom-education-theme-btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa); /* بنفش به بنفش روشن */
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--color-purple-rgb), 0.35);
}

    .custom-education-theme-btn-purple:hover {
        background: linear-gradient(135deg, #7c3aed, #8b5cf6);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(var(--color-purple-rgb), 0.5);
    }

/* ---- Success (سبز) ---- */
.custom-education-theme-btn-success {
    background: linear-gradient(135deg, #04ab99, #54dfb3);
    color: #fff;
    box-shadow: 0 8px 22px rgba(4, 171, 153, 0.35);
}

    .custom-education-theme-btn-success:hover {
        background: linear-gradient(135deg, #107c70, #04ab99);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(4, 171, 153, 0.5);
    }

/* ---- Danger (قرمز) ---- */
.custom-education-theme-btn-danger {
    background: linear-gradient(135deg, #ef4444, #f87171); /* قرمز به قرمز روشن */
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--color-danger-rgb), 0.35);
}

    .custom-education-theme-btn-danger:hover {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(var(--color-danger-rgb), 0.5);
    }

/* ---- Warning (نارنجی) ---- */
.custom-education-theme-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24); /* نارنجی به نارنجی روشن */
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--color-warning-rgb), 0.35);
}

    .custom-education-theme-btn-warning:hover {
        background: linear-gradient(135deg, #d97706, #f59e0b);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(var(--color-warning-rgb), 0.5);
    }

/* ---- Info (فیروزه‌ای) ---- */
.custom-education-theme-btn-info {
    background: linear-gradient(135deg, #06b6d4, #22d3ee); /* فیروزه‌ای به فیروزه‌ای روشن */
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--color-info-rgb), 0.35);
}

    .custom-education-theme-btn-info:hover {
        background: linear-gradient(135deg, #0891b2, #06b6d4);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(var(--color-info-rgb), 0.5);
    }

/* ---- Dark / Light / White / Muted (استفاده از متغیرها) ---- */
.custom-education-theme-btn-dark {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: var(--bg-primary);
    box-shadow: 0 8px 22px rgba(var(--color-dark-rgb), 0.3);
}

    .custom-education-theme-btn-dark:hover {
        background: linear-gradient(135deg, #0f172a, #1e293b);
        transform: translateY(-2px);
        opacity: 0.9;
    }

[data-theme="dark"] .custom-education-theme-btn-dark {
    color: var(--bg-secondary);
}

.custom-education-theme-btn-light {
    background: var(--color-light);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

    .custom-education-theme-btn-light:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

.custom-education-theme-btn-white {
    background: #ffffff;
    color: #1e293b;
    border-color: rgba(var(--color-dark-rgb), 0.08);
    box-shadow: 0 4px 12px rgba(var(--color-dark-rgb), 0.08);
}

    .custom-education-theme-btn-white:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(var(--color-dark-rgb), 0.12);
    }

.custom-education-theme-btn-muted {
    background: var(--neutral-bg);
    color: var(--text-secondary);
    border-color: var(--neutral-border);
}

    .custom-education-theme-btn-muted:hover {
        background: var(--neutral-bg-hover);
        transform: translateY(-2px);
    }

.custom-education-theme-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--glass-border);
}

    .custom-education-theme-btn-ghost:hover {
        color: var(--accent);
        border-color: var(--accent-glow-35);
        background: var(--accent-glow-08);
    }

/* ==================================================
   2) TEXT
   ================================================== */

.custom-education-theme-text-primary {
    color: var(--color-primary) !important;
}

.custom-education-theme-text-secondary {
    color: var(--color-secondary) !important;
}

.custom-education-theme-text-success {
    color: var(--color-success) !important;
}

.custom-education-theme-text-danger {
    color: var(--color-danger) !important;
}

.custom-education-theme-text-warning {
    color: var(--color-warning) !important;
}

.custom-education-theme-text-info {
    color: var(--color-info) !important;
}

.custom-education-theme-text-purple {
    color: var(--color-purple) !important;
}

.custom-education-theme-text-accent {
    color: var(--accent) !important;
}

.custom-education-theme-text-dark {
    color: var(--text-primary) !important;
}

.custom-education-theme-text-light {
    color: var(--text-secondary) !important;
}

.custom-education-theme-text-white {
    color: #fff !important;
}

.custom-education-theme-text-muted {
    color: var(--color-muted) !important;
}

/* ==================================================
   3) BADGE / STATUS
   ================================================== */

.custom-education-theme-badge-primary,
.custom-education-theme-badge-secondary,
.custom-education-theme-badge-success,
.custom-education-theme-badge-danger,
.custom-education-theme-badge-warning,
.custom-education-theme-badge-info,
.custom-education-theme-badge-purple,
.custom-education-theme-badge-dark,
.custom-education-theme-badge-light,
.custom-education-theme-badge-white,
.custom-education-theme-badge-muted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.6;
}

.custom-education-theme-badge-primary {
    background: rgba(var(--color-primary-rgb), 0.12);
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.25);
}

.custom-education-theme-badge-secondary {
    background: rgba(var(--color-secondary-rgb), 0.12);
    color: var(--color-secondary);
    border-color: rgba(var(--color-secondary-rgb), 0.25);
}

.custom-education-theme-badge-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.custom-education-theme-badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

.custom-education-theme-badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.custom-education-theme-badge-info {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}

.custom-education-theme-badge-purple {
    background: var(--purple-bg);
    color: var(--purple-text);
    border-color: var(--purple-border);
}

.custom-education-theme-badge-dark {
    background: var(--color-dark);
    color: var(--bg-primary);
    border-color: transparent;
}

[data-theme="dark"] .custom-education-theme-badge-dark {
    color: var(--bg-secondary);
}

.custom-education-theme-badge-light {
    background: var(--color-light);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.custom-education-theme-badge-white {
    background: #fff;
    color: #1e293b;
    border-color: transparent;
}

.custom-education-theme-badge-muted {
    background: var(--neutral-bg);
    color: var(--text-secondary);
    border-color: var(--neutral-border);
}

/* ==================================================
   4) ALERT
   ================================================== */

.custom-education-theme-alert-primary,
.custom-education-theme-alert-success,
.custom-education-theme-alert-danger,
.custom-education-theme-alert-warning,
.custom-education-theme-alert-info,
.custom-education-theme-alert-purple,
.custom-education-theme-alert-muted {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.86rem;
    line-height: 1.7;
    font-weight: 500;
}

.custom-education-theme-alert-primary {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    border-color: rgba(var(--color-primary-rgb), 0.25);
}

.custom-education-theme-alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.custom-education-theme-alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

.custom-education-theme-alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

.custom-education-theme-alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}

.custom-education-theme-alert-purple {
    background: var(--purple-bg);
    color: var(--purple-text);
    border-color: var(--purple-border);
}

.custom-education-theme-alert-muted {
    background: var(--neutral-bg);
    color: var(--neutral-text);
    border-color: var(--neutral-border);
}

/* ==================================================
   5) UTILITY HELPERS
   ================================================== */

.is-hidden {
    display: none !important;
}
