/* T3F Theme Switcher Styles */

/* Theme Switcher Button */
.theme-switcher-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-switcher-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-switcher-button .settings-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Theme Switcher Container/Panel - Compact Design */
.theme-switcher-panel {
    position: fixed;
    top: 50%;
    right: -260px;
    transform: translateY(-50%);
    width: 220px;
    max-height: 80vh;
    background-color: var(--t3-surface, #ffffff);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 8px 0 0 8px;
}

.theme-switcher-panel.open {
    right: 0;
}

/* Panel Header - Compact */
.theme-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--t3-border, #e0e0e0);
    background-color: var(--t3-primary, #55565A);
    color: #ffffff;
    border-radius: 8px 0 0 0;
}

.theme-panel-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-panel-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 0.75rem;
}

.theme-panel-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Panel Content - Compact */
.theme-panel-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

/* Section styling - Compact */
.theme-section {
    margin-bottom: 12px;
}

.theme-section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--t3-text-light, #7a7b7f);
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--t3-border, #e0e0e0);
}

/* Theme Grid - Compact */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* Theme Item - Compact */
.theme-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    border-radius: 4px;
    border: 1px solid var(--t3-border, #e0e0e0);
    background-color: var(--t3-surface, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-item:hover {
    border-color: var(--t3-primary, #55565A);
    box-shadow: 0 2px 6px rgba(85, 86, 90, 0.15);
}

.theme-item.active {
    border-color: var(--t3-primary, #55565A);
    background-color: rgba(85, 86, 90, 0.05);
}

.theme-item.active::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--t3-primary, #55565A);
    color: #ffffff;
    border-radius: 50%;
    font-size: 8px;
    font-weight: bold;
}

/* Theme Preview - Compact */
.theme-preview {
    width: 100%;
    height: 24px;
    border-radius: 3px;
    margin-bottom: 4px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-preview-sidebar {
    width: 25%;
    background-color: #55565A;
}

.theme-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3px;
}

.theme-preview-bar {
    height: 4px;
    border-radius: 1px;
    margin-bottom: 2px;
}

/* Theme-specific preview colors */
.theme-item[data-theme="T3Light"] .theme-preview-content { background-color: #F7F7F5; }
.theme-item[data-theme="T3Light"] .theme-preview-bar { background-color: #55565A; }

.theme-item[data-theme="T3Dark"] .theme-preview-content { background-color: #1E1E1E; }
.theme-item[data-theme="T3Dark"] .theme-preview-bar { background-color: #8A8B8F; }
.theme-item[data-theme="T3Dark"] .theme-preview-sidebar { background-color: #2D2D2D; }

.theme-item[data-theme="FluentLight"] .theme-preview-content { background-color: #ffffff; }
.theme-item[data-theme="FluentLight"] .theme-preview-bar { background-color: #0078D4; }
.theme-item[data-theme="FluentLight"] .theme-preview-sidebar { background-color: #0078D4; }

.theme-item[data-theme="FluentDark"] .theme-preview-content { background-color: #1F1F1F; }
.theme-item[data-theme="FluentDark"] .theme-preview-bar { background-color: #0078D4; }
.theme-item[data-theme="FluentDark"] .theme-preview-sidebar { background-color: #252525; }

.theme-item[data-theme="BlazingBerry"] .theme-preview-content { background-color: #ffffff; }
.theme-item[data-theme="BlazingBerry"] .theme-preview-bar { background-color: #E91E63; }
.theme-item[data-theme="BlazingBerry"] .theme-preview-sidebar { background-color: #880E4F; }

.theme-item[data-theme="BlazingDark"] .theme-preview-content { background-color: #2D2D2D; }
.theme-item[data-theme="BlazingDark"] .theme-preview-bar { background-color: #FF4081; }
.theme-item[data-theme="BlazingDark"] .theme-preview-sidebar { background-color: #1A1A1A; }

.theme-item[data-theme="Purple"] .theme-preview-content { background-color: #ffffff; }
.theme-item[data-theme="Purple"] .theme-preview-bar { background-color: #9C27B0; }
.theme-item[data-theme="Purple"] .theme-preview-sidebar { background-color: #7B1FA2; }

.theme-item[data-theme="OfficeWhite"] .theme-preview-content { background-color: #ffffff; }
.theme-item[data-theme="OfficeWhite"] .theme-preview-bar { background-color: #217346; }
.theme-item[data-theme="OfficeWhite"] .theme-preview-sidebar { background-color: #185632; }

.theme-item[data-theme="Bootstrap"] .theme-preview-content { background-color: #ffffff; }
.theme-item[data-theme="Bootstrap"] .theme-preview-bar { background-color: #0d6efd; }
.theme-item[data-theme="Bootstrap"] .theme-preview-sidebar { background-color: #212529; }

.theme-item[data-theme="BootstrapDark"] .theme-preview-content { background-color: #212529; }
.theme-item[data-theme="BootstrapDark"] .theme-preview-bar { background-color: #0d6efd; }
.theme-item[data-theme="BootstrapDark"] .theme-preview-sidebar { background-color: #1a1d20; }

/* Theme Name - Compact */
.theme-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--t3-text, #55565A);
    text-align: center;
    line-height: 1.2;
}

/* Size Mode Selector - Compact */
.size-mode-selector {
    display: flex;
    gap: 4px;
}

.size-mode-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    border-radius: 4px;
    border: 1px solid var(--t3-border, #e0e0e0);
    background-color: var(--t3-surface, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-mode-item:hover {
    border-color: var(--t3-primary, #55565A);
}

.size-mode-item.active {
    border-color: var(--t3-primary, #55565A);
    background-color: rgba(85, 86, 90, 0.05);
}

.size-mode-icon {
    font-size: 1rem;
    margin-bottom: 2px;
}

.size-mode-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--t3-text, #55565A);
}

/* Overlay */
.theme-switcher-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme-switcher-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .theme-switcher-panel,
[data-fluent-darkmode] .theme-switcher-panel {
    background-color: #2d2d2d;
    color: #e8e8e8;
}

[data-bs-theme="dark"] .theme-panel-header,
[data-fluent-darkmode] .theme-panel-header {
    background-color: #1e1e1e;
    border-color: #3d3d3d;
}

[data-bs-theme="dark"] .theme-section-title,
[data-fluent-darkmode] .theme-section-title {
    color: #b0b0b0;
    border-color: #3d3d3d;
}

[data-bs-theme="dark"] .theme-item,
[data-fluent-darkmode] .theme-item,
[data-bs-theme="dark"] .size-mode-item,
[data-fluent-darkmode] .size-mode-item {
    background-color: #3d3d3d;
    border-color: #4a4a4a;
}

[data-bs-theme="dark"] .theme-item:hover,
[data-fluent-darkmode] .theme-item:hover,
[data-bs-theme="dark"] .size-mode-item:hover,
[data-fluent-darkmode] .size-mode-item:hover {
    border-color: #8a8b8f;
}

[data-bs-theme="dark"] .theme-name,
[data-fluent-darkmode] .theme-name,
[data-bs-theme="dark"] .size-mode-name,
[data-fluent-darkmode] .size-mode-name {
    color: #e8e8e8;
}

/* Footer area styling for theme button */
.footer-theme-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.85rem;
}

.footer-theme-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-theme-button .oi {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .theme-switcher-panel {
        width: 200px;
        right: -200px;
    }
}

