/**
 * Sleek Tweaks for Elementor - Admin Styles
 * Primary Color: #620856
 */

/* Reset and Base */
.sleek-tweaks-wrap {
    margin: 0;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f0f0f1;
    min-height: 100vh;
    margin-left: -20px;
}

/* Main Container - unified card */
.ee-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Header */
.ee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid #f0f0f0;
}

.ee-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ee-logo img {
    display: block;
    border-radius: 8px;
}

.ee-title h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #1e1e1e;
}

.ee-header-center {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ee-header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e1e1e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ee-header-link:hover {
    color: #620856;
}

.ee-header-link svg {
    opacity: 0.7;
}

.ee-header-right {
    display: flex;
    align-items: center;
}

.ee-save-button {
    background: #620856;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ee-save-button:hover {
    background: #4a0641;
}

.ee-save-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(98, 8, 86, 0.3);
}

/* Main Layout */
.ee-main {
    display: flex;
}

/* Sidebar */
.ee-sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 24px;
    border-right: 1px solid #f0f0f0;
    background: #fafafa;
}

.ee-tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    text-align: left;
}

.ee-tab-button:hover {
    background: #fff;
    color: #1e1e1e;
}

.ee-tab-button.active {
    background: #fff;
    color: #620856;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ee-tab-button.active svg {
    stroke: #620856;
}

/* Content Area */
.ee-content {
    flex: 1;
    min-width: 0;
}

.ee-tab-content {
    display: none;
    padding: 24px 32px;
}

.ee-tab-content.active {
    display: block;
}

/* Content Header */
.ee-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 44px;
}

.ee-content-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1e1e1e;
}

.ee-hide-all {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ee-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
}

/* Toggle Switch */
.ee-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ee-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ee-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.ee-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ee-toggle input:checked+.ee-toggle-slider {
    background-color: #620856;
}

.ee-toggle input:checked+.ee-toggle-slider:before {
    transform: translateX(20px);
}

.ee-toggle input:focus+.ee-toggle-slider {
    box-shadow: 0 0 0 3px rgba(98, 8, 86, 0.2);
}

/* Options List */
.ee-options-list {
    display: flex;
    flex-direction: column;
}

.ee-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.ee-option-item:last-child {
    border-bottom: none;
}

.ee-option-name {
    font-size: 14px;
    color: #444;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

/* Section Headers */
.ee-section-header {
    margin-top: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ee-section-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Option items with description */
.ee-option-item-with-description {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0;
}

.ee-option-item-with-description .ee-option-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.ee-option-item-with-description .ee-option-name {
    padding-right: 0;
    font-weight: 500;
}

.ee-option-item-with-description .ee-option-description {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: block;
}

.ee-option-item-with-description .ee-toggle {
    flex-shrink: 0;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .elementor-enhancements-wrap {
        padding: 20px 10px;
    }

    .ee-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }

    .ee-header-left {
        justify-content: center;
    }

    .ee-header-center {
        order: 3;
    }

    .ee-main {
        flex-direction: column;
    }

    .ee-sidebar {
        width: 100%;
        display: flex;
        gap: 8px;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .ee-tab-button {
        flex: 1;
        justify-content: center;
        margin-bottom: 0;
    }

    .ee-content-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .ee-tab-content {
        padding: 20px 16px;
    }
}

/* Save Notification */
.ee-save-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #22c55e;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.ee-save-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hide WordPress admin notices and footer on this page */
.notice:not(.ee-notice),
.updated:not(.ee-notice),
.update-nag,
#wpfooter {
    display: none !important;
}

/* Integrate with Elementor's admin layout */
.e-admin-page-root {
    background: #f0f0f1;
    min-height: 100vh;
}

.e-admin-page-content {
    padding: 0;
}

/* Adjust our wrapper to work within Elementor's layout */
.e-admin-page-root .sleek-tweaks-wrap {
    margin: 0;
    padding: 40px 20px;
    margin-left: 0;
}