/* Admin Theme Customizer Styles */
:root {
    --atc-bg: #0f172a;
    --atc-text: #f8fafc;
    --atc-accent: #6366f1;
    --atc-border: rgba(255, 255, 255, 0.1);
    --atc-glass: rgba(15, 23, 42, 0.95);
    --atc-panel-width: 320px;
}

.theme-customizer {
    position: fixed;
    z-index: 9999;
    font-family: 'Inter', system-ui, sans-serif;
}

.theme-customizer.pos-bottom-right {
    bottom: 20px;
    right: 20px;
}

.theme-customizer.pos-bottom-left {
    bottom: 20px;
    left: 20px;
}

.theme-customizer.pos-top-right {
    top: 80px;
    right: 20px;
}

.theme-trigger {
    width: 50px;
    height: 50px;
    background: var(--atc-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-ring 2s infinite;
}

.theme-trigger:hover {
    transform: rotate(90deg) scale(1.1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.theme-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: var(--atc-panel-width);
    background: var(--atc-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--atc-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-panel ::-webkit-scrollbar {
    width: 6px;
}

.theme-panel ::-webkit-scrollbar-track {
    background: transparent;
}

.theme-panel ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.theme-panel ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.setting-group {
    margin-bottom: 20px;
}

.btn-theme-mode {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    font-size: 0.75rem;
}

.btn-theme-mode:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-theme-mode.active {
    background: var(--atc-accent);
    color: #fff;
    border-color: var(--atc-accent);
}

.atc-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    position: relative;
}

.atc-v-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 900;
    color: white;
}

.atc-btn-preview,
.atc-btn-kb {
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    transition: 0.3s;
}

.atc-btn-preview {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.atc-btn-kb {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid #6366f1;
    color: #6366f1;
}

.atc-shortcuts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    z-index: 20;
    display: none;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(10px);
    flex-direction: column;
}

.atc-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.atc-section-label,
.atc-section-label-alt {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.atc-section-label {
    color: #64748b;
}

.atc-section-label-alt {
    color: #94a3b8;
}

.atc-preset-btn {
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    transition: 0.3s;
    color: white;
}

.atc-preset-prof {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.atc-preset-vibr {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.atc-preset-mini {
    background: linear-gradient(135deg, #64748b, #475569);
}

.atc-preset-ocea {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.atc-color-dot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.atc-color-dot.active {
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--atc-accent);
}

.atc-check-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: white;
}

.atc-custom-color {
    width: 100%;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    padding: 2px;
}

.atc-select {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.atc-badge-val {
    background: rgba(255, 255, 255, 0.05);
    color: var(--atc-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.atc-effect-card {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.atc-export-btn {
    width: 100%;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.atc-action-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.atc-btn-reset,
.atc-btn-save {
    flex: 1;
    font-size: 0.75rem;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.atc-btn-reset {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.atc-btn-save {
    background: var(--atc-accent) !important;
    color: white !important;
    border: none;
}