/* ==========================================================
   Eazy Addons for Elementor - Admin Dashboard
   Modern, Clean & Responsive WordPress UI
   ========================================================== */

:root {
    --eafe-primary: #6658dd;
    --eafe-primary-light: #7b6df6;
    --eafe-accent: #00bfa6;
    --eafe-bg: #f7f9fc;
    --eafe-card-bg: #ffffff;
    --eafe-text: #1d1d1f;
    --eafe-text-light: #6b7280;
    --eafe-radius: 12px;
    --eafe-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Base Layout */
.eafe-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--eafe-text);
}

/* -----------------------------------------------------------
   Header
----------------------------------------------------------- */
.eafe-header {
    background: linear-gradient(135deg, var(--eafe-primary) 0%, var(--eafe-primary-light) 100%);
    color: white;
    border-radius: var(--eafe-radius);
    padding: 35px 40px;
    margin-bottom: 30px;
    box-shadow: var(--eafe-shadow);
}

.eafe-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.eafe-logo {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
}

.eafe-header-text h1 {
    font-size: 26px;
    margin: 0;
    font-weight: 600;
}

.eafe-header-text p {
    margin: 0;
    opacity: 0.9;
}

.eafe-header-badge .eafe-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* -----------------------------------------------------------
   Tabs Navigation
----------------------------------------------------------- */
.eafe-tabs {
    background: var(--eafe-card-bg);
    border-radius: var(--eafe-radius);
    box-shadow: var(--eafe-shadow);
    overflow: hidden;
}

.eafe-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.eafe-tab-button {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: var(--eafe-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}

.eafe-tab-button:hover {
    background: #fff;
    color: var(--eafe-primary);
}

.eafe-tab-button.active {
    color: var(--eafe-primary);
    background: #fff;
    border-bottom-color: var(--eafe-primary);
}

.eafe-badge {
    background: var(--eafe-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* -----------------------------------------------------------
   Tabs Content
----------------------------------------------------------- */
.eafe-tabs-content {
    padding: 30px;
}

/* Hide all tabs by default */
.eafe-tab-pane {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(8px);
}

/* Show active tab */
.eafe-tab-pane.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* -----------------------------------------------------------
   Overview Stats
----------------------------------------------------------- */
.eafe-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.eafe-stat-card {
    background: var(--eafe-card-bg);
    border-radius: var(--eafe-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--eafe-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eafe-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 88, 221, 0.15);
}

.eafe-stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--eafe-primary), var(--eafe-primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eafe-stat-icon .dashicons {
    color: white;
    font-size: 26px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.eafe-stat-content h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: var(--eafe-text);
}

.eafe-stat-content p {
    margin: 2px 0 0;
    color: var(--eafe-text-light);
}

/* -----------------------------------------------------------
   Welcome Card
----------------------------------------------------------- */
.eafe-welcome-card {
    background: linear-gradient(135deg, var(--eafe-primary) 0%, var(--eafe-primary-light) 100%);
    color: white;
    padding: 35px;
    border-radius: var(--eafe-radius);
    margin-bottom: 30px;
}

.eafe-welcome-card h2 {
    font-size: 24px;
    margin: 0 0 12px 0;
}

.eafe-welcome-card p {
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.eafe-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eafe-quick-action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.eafe-quick-action-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* -----------------------------------------------------------
   Widgets Management
----------------------------------------------------------- */
.eafe-widgets-header {
    margin-bottom: 25px;
}

.eafe-widgets-header h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--eafe-text);
}

.eafe-widgets-header p {
    margin: 0 0 15px 0;
    color: var(--eafe-text-light);
}

.eafe-bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.eafe-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.eafe-widget-card {
    background: var(--eafe-card-bg);
    border-radius: var(--eafe-radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--eafe-shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.eafe-widget-card:hover {
    border: 1px solid var(--eafe-primary);
    box-shadow: 0 4px 15px rgba(102, 88, 221, 0.15);
}

.eafe-widget-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--eafe-text);
}

.eafe-widget-slug {
    font-size: 12px;
    color: var(--eafe-text-light);
    font-family: monospace;
}

/* Toggle Switch */
.eafe-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.eafe-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.eafe-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.eafe-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .eafe-slider {
    background: var(--eafe-primary);
}

input:checked + .eafe-slider:before {
    transform: translateX(24px);
}

/* -----------------------------------------------------------
   Support Cards
----------------------------------------------------------- */
.eafe-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.eafe-support-card {
    background: var(--eafe-card-bg);
    border-radius: var(--eafe-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--eafe-shadow);
    transition: transform 0.3s ease;
}

.eafe-support-card:hover {
    transform: translateY(-4px);
}

.eafe-support-card h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--eafe-text);
}

.eafe-support-card p {
    color: var(--eafe-text-light);
    margin-bottom: 20px;
}

/* -----------------------------------------------------------
   Save Section
----------------------------------------------------------- */
.eafe-save-section {
    text-align: center;
    margin-top: 40px;
}

.eafe-save-settings {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: var(--eafe-radius);
    background: linear-gradient(135deg, var(--eafe-primary), var(--eafe-primary-light));
    cursor: pointer;
    box-shadow: var(--eafe-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eafe-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 88, 221, 0.2);
}

.eafe-save-message {
    margin-top: 12px;
    font-weight: 500;
}

.eafe-save-message.success {
    color: var(--eafe-accent);
}

.eafe-save-message.error {
    color: #e74c3c;
}

/* -----------------------------------------------------------
   Responsive Design
----------------------------------------------------------- */
@media (max-width: 768px) {
    .eafe-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .eafe-tabs-content {
        padding: 20px;
    }

    .eafe-stats-grid,
    .eafe-support-grid,
    .eafe-widgets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .eafe-header {
        padding: 25px 20px;
    }

    .eafe-header-text h1 {
        font-size: 22px;
    }

    .eafe-save-settings {
        width: 100%;
    }
}
