/**
 * Modern Background Colors and Text Updates
 * Replace grey backgrounds with a modern gradient theme
 */

/* Main settings area background - soft gradient */
.tk-area-settings {
    background: linear-gradient(135deg, #f5f3ff 0%, #e8f5f3 100%) !important;
}

/* Alternative: Dark modern background */
/* .tk-area-settings {
    background: linear-gradient(135deg, #1a1c2e 0%, #2d3561 100%) !important;
} */

/* Settings content area */
.tk-area-settings > .tk-tab > .tk-content {
    background: transparent !important;
}

/* Settings cards with glass morphism effect */
.tk-setting,
.tk-input-setting {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

.tk-setting:hover,
.tk-input-setting:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Settings navigation sidebar - modern glass effect */
.tk-area-settings > .tk-tab > .tk-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
}

/* Navigation items */
.tk-area-settings > .tk-tab > .tk-nav > ul > li {
    background: transparent !important;
    color: #2d3561 !important;
}

.tk-area-settings > .tk-tab > .tk-nav > ul > li:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

/* Active navigation item - gradient */
.tk-area-settings > .tk-tab > .tk-nav > ul > li.tk-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

/* Text color updates for better contrast */
.tk-setting h2,
.tk-input-setting h2 {
    color: #1a1c2e !important;
    font-weight: 600 !important;
}

.tk-setting p,
.tk-input-setting p {
    color: #4a5568 !important;
}

/* Labels with better visibility */
.tk-setting label,
.tk-input-setting label {
    color: #2d3561 !important;
    font-weight: 500 !important;
}

/* Input fields - clean white with subtle shadow */
.tk-setting input:not([type=checkbox]):not([type=radio]),
.tk-setting select,
.tk-setting textarea,
.tk-input-setting input:not([type=checkbox]):not([type=radio]),
.tk-input-setting select,
.tk-input-setting textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(226, 232, 240, 0.8) !important;
    color: #1a1c2e !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.tk-setting input:focus,
.tk-setting select:focus,
.tk-setting textarea:focus,
.tk-input-setting input:focus,
.tk-input-setting select:focus,
.tk-input-setting textarea:focus {
    background: white !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Settings groups with subtle background */
.settings-group {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(226, 232, 240, 0.5) !important;
}

.settings-group-title {
    color: #059669 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2) !important;
}

/* Section headers with gradient */
.settings-section-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25) !important;
}

.settings-section-header .section-info h3,
.settings-section-header .section-info p {
    color: white !important;
}

/* Buttons with modern style */
.tk-btn,
.tk-btn-white {
    background: linear-gradient(135deg, #ffffff, #f7fafc) !important;
    border: 2px solid rgba(226, 232, 240, 0.8) !important;
    color: #2d3561 !important;
}

.tk-btn:hover,
.tk-btn-white:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
}

/* Upload areas */
.tk-setting.tk-type-upload-image .image,
.tk-input-setting.tk-type-upload-image .image {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px dashed rgba(16, 185, 129, 0.3) !important;
}

.tk-setting.tk-type-upload-image .image:hover,
.tk-input-setting.tk-type-upload-image .image:hover {
    background: rgba(16, 185, 129, 0.05) !important;
    border-color: #10b981 !important;
}

/* Multi-input areas */
.tk-setting.tk-type-multi-input .input > div,
.tk-input-setting.tk-type-multi-input .input > div {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(226, 232, 240, 0.5) !important;
}

/* Floating save button update */
.tk-floating-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3) !important;
}

.tk-floating-save:hover {
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4) !important;
}

/* Search box in sidebar */
.tk-nav-search input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(226, 232, 240, 0.8) !important;
    color: #1a1c2e !important;
}

.tk-nav-search input:focus {
    background: white !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.tk-nav-search input::placeholder {
    color: #94a3b8 !important;
}

/* Tab container with glass effect */
.tk-area-settings > .tk-tab {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Help icons */
.sb-icon-help {
    color: #10b981 !important;
}

.sb-icon-help:hover {
    color: #059669 !important;
}

/* Loading states */
.tk-loading:not(.tk-btn) {
    border-top-color: #10b981 !important;
}

/* Success messages */
.tk-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
    color: #059669 !important;
}

/* Error messages */
.tk-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
}

/* Scrollbar styling */
.tk-area-settings::-webkit-scrollbar {
    width: 8px;
}

.tk-area-settings::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
}

.tk-area-settings::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px;
}

.tk-area-settings::-webkit-scrollbar-thumb:hover {
    background: #059669;
}