/* Settings Page Styles */
.header-actions {
    display: flex;
    gap: 10px;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.tab-btn.active {
    background: #2196F3;
    color: #fff;
}

.tab-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.settings-grid .full-width {
    grid-column: 1 / -1;
}

/* Form Elements */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* Color Input */
.color-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.color-input .color-text {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Logo Upload */
.logo-upload {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.logo-preview {
    width: 200px;
    height: 100px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    flex-direction: column;
    gap: 10px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview .material-symbols-outlined {
    font-size: 36px;
}

.logo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
}

/* Select */
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* Number Input */
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

/* Preview Frame */
#previewFrame {
    background: #fff;
}

/* Color Presets */
.color-presets {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.preset-color {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.preset-color:hover {
    transform: scale(1.1);
    border-color: #2196F3;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: flex-start;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-upload {
        flex-direction: column;
    }
    
    .logo-preview {
        width: 100%;
    }
}