/* Theme Switcher Styles */

.switcher-style-head {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.switcher-style {
    margin-bottom: 1rem;
}

.switch-select {
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--primary-bg-color);
    color: #fff;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
}

.theme-toggle-btn i {
    font-size: 20px;
}

/* Nav Tabs Styling */
.nav-tabs.nav-justified .nav-link {
    color: var(--text-color);
    border: none;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    border-radius: 0;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.nav-tabs.nav-justified .nav-link.active {
    color: var(--theme-primary);
    border-bottom: 2px solid var(--theme-primary);
}

.nav-tabs.nav-justified .nav-link:hover:not(.active) {
    color: var(--theme-primary);
    border-bottom: 1px solid var(--theme-primary-transparent);
}

/* Radio Buttons Styling */
.form-check-input[type="radio"] {
    width: 18px;
    height: 18px;
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
    background-color: var(--theme-primary);
    border-color: var(--theme-primary-border);
}

/* Switch Layout Buttons */
.layout-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.layout-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.layout-button:hover {
    background-color: var(--card-header-bg);
}

.layout-button.active {
    border-color: var(--theme-primary);
    background-color: var(--theme-primary-transparent);
}

.layout-button-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.layout-button.active .layout-button-icon {
    background-color: var(--theme-primary);
    color: var(--text-white);
}

.layout-button-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Color Palette Buttons */
.color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.color-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-button.active {
    border-color: var(--text-color);
    transform: scale(1.1);
}

.color-primary {
    background-color: var(--primary);
}

.color-primary1 {
    background-color: var(--primary1);
}

.color-primary2 {
    background-color: var(--primary2);
}

.color-secondary {
    background-color: var(--secondary);
}

.color-success {
    background-color: var(--success);
}

.color-danger {
    background-color: var(--danger);
}

.color-warning {
    background-color: var(--warning);
}

.color-info {
    background-color: var(--info);
}

/* Sidebar Toggle Button */
.toggle-sidebar-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-sidebar-button:hover {
    background-color: var(--card-header-bg);
}

.toggle-sidebar-button i {
    font-size: 1.25rem;
}

/* Theme Mode Preview */
.theme-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-container {
    height: 100px;
    border-radius: 0.375rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.preview-light {
    background-color: #f0f2f5;
    border: 1px solid #dee2e6;
}

.preview-dark {
    background-color: #1a1e21;
    border: 1px solid #2c3237;
}

.preview-header {
    height: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.preview-light .preview-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.preview-dark .preview-header {
    background-color: #212529;
    border-bottom: 1px solid #2c3237;
}

.preview-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
}

.preview-light .preview-sidebar {
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
}

.preview-dark .preview-sidebar {
    background-color: #212529;
    border-right: 1px solid #2c3237;
}

.preview-content {
    margin-left: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-card {
    height: 30px;
    border-radius: 0.25rem;
}

.preview-light .preview-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.preview-dark .preview-card {
    background-color: #212529;
    border: 1px solid #2c3237;
}

/* Reset Button */
.reset-button {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background-color: var(--card-header-bg);
}

/* Offcanvas Style */
.offcanvas {
    border: 0;
}

/* Radio Button Styles */
.switch-select .form-check-input {
    float: right;
    margin-top: 0.25rem;
}

.switch-select .form-check-label {
    font-size: 0.875rem;
}

/* Theme Buttons Styling */
.theme-palette {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-button-row {
    width: 100%;
}

.theme-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-button.active {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-bg-color);
}

.theme-name {
    position: absolute;
    bottom: 5px;
    left: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Default Theme (Gestfy gradient blue/green) */
.theme-default {
    background: linear-gradient(45deg, #4a95ce, #4fd8c9);
}

/* Gold Theme */
.theme-gold {
    background: linear-gradient(45deg, #f7971e, #ffd200);
}

/* Deep Purple Theme */
.theme-purple {
    background: linear-gradient(45deg, #5e35b1, #9c27b0);
}

/* Dark Blue Theme */
.theme-blue {
    background: linear-gradient(45deg, #2a2a3c, #363648);
}

/* Gradient Black/White Theme */
.theme-gradient {
    background: linear-gradient(45deg, #212121, #757575);
}

/* Gestfy Special Theme */
.theme-special {
    background: linear-gradient(45deg, #00695c, #43a047);
}

/* Reset Button */
#reset-all {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Colors for Light/Dark mode */
body.light-mode {
    --primary-rgb: 74, 149, 206;
    --body-bg-rgb: 245, 245, 245;
    --body-color-rgb: 43, 43, 43;
    
    --body-bg-color: #f5f5f5;
    --body-color: #2b2b2b;
    --card-bg: #ffffff;
    --card-color: #2b2b2b;
    --header-bg: #ffffff;
    --header-color: #2b2b2b;
    --sidebar-bg: #ffffff;
    --sidebar-color: #2b2b2b;
}

body.dark-mode {
    --primary-rgb: 74, 149, 206;
    --body-bg-rgb: 42, 42, 60;
    --body-color-rgb: 235, 235, 235;
    
    --body-bg-color: #2a2a3c;
    --body-color: #ebebeb;
    --card-bg: #363648;
    --card-color: #ebebeb;
    --header-bg: #363648;
    --header-color: #ebebeb;
    --sidebar-bg: #363648;
    --sidebar-color: #ebebeb;
}

/* Gold Theme Variables */
body.theme-gold-active.light-mode {
    --primary-rgb: 247, 151, 30;
    --primary-bg-color: #f7971e;
    --primary-border-color: #f7971e;
    --primary-01: rgba(247, 151, 30, 0.1);
    --primary-02: rgba(247, 151, 30, 0.2);
    --primary-03: rgba(247, 151, 30, 0.3);
    --primary-05: rgba(247, 151, 30, 0.5);
    --primary-07: rgba(247, 151, 30, 0.7);
    --primary-08: rgba(247, 151, 30, 0.8);
    --primary-09: rgba(247, 151, 30, 0.9);
}

body.theme-gold-active.dark-mode {
    --primary-rgb: 255, 210, 0;
    --primary-bg-color: #ffd200;
    --primary-border-color: #ffd200;
    --primary-01: rgba(255, 210, 0, 0.1);
    --primary-02: rgba(255, 210, 0, 0.2);
    --primary-03: rgba(255, 210, 0, 0.3);
    --primary-05: rgba(255, 210, 0, 0.5);
    --primary-07: rgba(255, 210, 0, 0.7);
    --primary-08: rgba(255, 210, 0, 0.8);
    --primary-09: rgba(255, 210, 0, 0.9);
}

/* Deep Purple Theme Variables */
body.theme-purple-active.light-mode {
    --primary-rgb: 94, 53, 177;
    --primary-bg-color: #5e35b1;
    --primary-border-color: #5e35b1;
    --primary-01: rgba(94, 53, 177, 0.1);
    --primary-02: rgba(94, 53, 177, 0.2);
    --primary-03: rgba(94, 53, 177, 0.3);
    --primary-05: rgba(94, 53, 177, 0.5);
    --primary-07: rgba(94, 53, 177, 0.7);
    --primary-08: rgba(94, 53, 177, 0.8);
    --primary-09: rgba(94, 53, 177, 0.9);
}

body.theme-purple-active.dark-mode {
    --primary-rgb: 156, 39, 176;
    --primary-bg-color: #9c27b0;
    --primary-border-color: #9c27b0;
    --primary-01: rgba(156, 39, 176, 0.1);
    --primary-02: rgba(156, 39, 176, 0.2);
    --primary-03: rgba(156, 39, 176, 0.3);
    --primary-05: rgba(156, 39, 176, 0.5);
    --primary-07: rgba(156, 39, 176, 0.7);
    --primary-08: rgba(156, 39, 176, 0.8);
    --primary-09: rgba(156, 39, 176, 0.9);
}

/* Dark Blue Theme Variables */
body.theme-blue-active.light-mode {
    --primary-rgb: 26, 35, 126;
    --primary-bg-color: #1a237e;
    --primary-border-color: #1a237e;
    --primary-01: rgba(26, 35, 126, 0.1);
    --primary-02: rgba(26, 35, 126, 0.2);
    --primary-03: rgba(26, 35, 126, 0.3);
    --primary-05: rgba(26, 35, 126, 0.5);
    --primary-07: rgba(26, 35, 126, 0.7);
    --primary-08: rgba(26, 35, 126, 0.8);
    --primary-09: rgba(26, 35, 126, 0.9);
}

body.theme-blue-active.dark-mode {
    --primary-rgb: 42, 42, 60;
    --primary-bg-color: #2a2a3c;
    --primary-border-color: #2a2a3c;
    --primary-01: rgba(42, 42, 60, 0.1);
    --primary-02: rgba(42, 42, 60, 0.2);
    --primary-03: rgba(42, 42, 60, 0.3);
    --primary-05: rgba(42, 42, 60, 0.5);
    --primary-07: rgba(42, 42, 60, 0.7);
    --primary-08: rgba(42, 42, 60, 0.8);
    --primary-09: rgba(42, 42, 60, 0.9);
}

/* Gradient Theme Variables */
body.theme-gradient-active.light-mode {
    --primary-rgb: 33, 33, 33;
    --primary-bg-color: #212121;
    --primary-border-color: #212121;
    --primary-01: rgba(33, 33, 33, 0.1);
    --primary-02: rgba(33, 33, 33, 0.2);
    --primary-03: rgba(33, 33, 33, 0.3);
    --primary-05: rgba(33, 33, 33, 0.5);
    --primary-07: rgba(33, 33, 33, 0.7);
    --primary-08: rgba(33, 33, 33, 0.8);
    --primary-09: rgba(33, 33, 33, 0.9);
}

body.theme-gradient-active.dark-mode {
    --primary-rgb: 117, 117, 117;
    --primary-bg-color: #757575;
    --primary-border-color: #757575;
    --primary-01: rgba(117, 117, 117, 0.1);
    --primary-02: rgba(117, 117, 117, 0.2);
    --primary-03: rgba(117, 117, 117, 0.3);
    --primary-05: rgba(117, 117, 117, 0.5);
    --primary-07: rgba(117, 117, 117, 0.7);
    --primary-08: rgba(117, 117, 117, 0.8);
    --primary-09: rgba(117, 117, 117, 0.9);
}

/* Gestfy Special Theme Variables */
body.theme-special-active.light-mode {
    --primary-rgb: 0, 105, 92;
    --primary-bg-color: #00695c;
    --primary-border-color: #00695c;
    --primary-01: rgba(0, 105, 92, 0.1);
    --primary-02: rgba(0, 105, 92, 0.2);
    --primary-03: rgba(0, 105, 92, 0.3);
    --primary-05: rgba(0, 105, 92, 0.5);
    --primary-07: rgba(0, 105, 92, 0.7);
    --primary-08: rgba(0, 105, 92, 0.8);
    --primary-09: rgba(0, 105, 92, 0.9);
}

body.theme-special-active.dark-mode {
    --primary-rgb: 67, 160, 71;
    --primary-bg-color: #43a047;
    --primary-border-color: #43a047;
    --primary-01: rgba(67, 160, 71, 0.1);
    --primary-02: rgba(67, 160, 71, 0.2);
    --primary-03: rgba(67, 160, 71, 0.3);
    --primary-05: rgba(67, 160, 71, 0.5);
    --primary-07: rgba(67, 160, 71, 0.7);
    --primary-08: rgba(67, 160, 71, 0.8);
    --primary-09: rgba(67, 160, 71, 0.9);
}

/* Hide sidebar toggle button in page header on mobile devices */
@media (max-width: 991.98px) {
    .page-header-breadcrumb .toggle-sidebar-button {
        display: none !important;
    }
} 