/* ===== ENHANCED SETTINGS TAB ===== */

/* Settings Container */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-container h2 {
    color: #2B2B2B;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2B2B2B 0%, #E84E1B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-container > p {
    color: #6c757d;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Settings Section Cards */
.settings-section {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.settings-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.settings-section h3 {
    color: #2B2B2B;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.settings-section h3 svg {
    color: #E84E1B;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Setting Items */
.setting-item {
    padding: 1.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.setting-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #E84E1B;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.setting-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2B2B2B;
    font-size: 1.1rem;
    font-weight: 600;
}

.setting-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced Toggle Switch */
.settings-section .toggle-switch {
    width: 60px;
    height: 32px;
}

.settings-section .toggle-slider {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 32px;
}

.settings-section .toggle-slider:before {
    height: 24px;
    width: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settings-section .toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #E84E1B 0%, #ff6b47 100%);
    box-shadow: 0 0 12px rgba(232, 78, 27, 0.4);
}

.settings-section .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.settings-section .toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Integration Status */
.integration-status {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border: 2px solid;
    transition: all 0.3s ease;
}

.integration-status.connected {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
    color: #155724;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.integration-status.disconnected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
    color: #721c24;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.integration-status svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.integration-status div {
    flex: 1;
}

.integration-status h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.integration-status p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

/* Import Section */
.import-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
}

.import-section h4 {
    color: #2B2B2B;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Enhanced Buttons */
.btn-google {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4285F4 0%, #357ae8 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-google:hover:not(:disabled) {
    background: linear-gradient(135deg, #357ae8 0%, #2a6fd9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.btn-google:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-group .btn-primary,
.button-group .btn-danger {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease;
}

.button-group .btn-primary {
    color: white;
    background: linear-gradient(135deg, #E84E1B 0%, #ff6b47 100%);
    box-shadow: 0 4px 12px rgba(232, 78, 27, 0.3);
}

.button-group .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d64418 0%, #e85d3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 78, 27, 0.4);
}

.button-group .btn-danger {
    color: white;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.button-group .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Date Range Picker */
.date-range-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.date-range-picker label {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.date-range-picker span {
    font-weight: 600;
    color: #2B2B2B;
    font-size: 0.95rem;
}

.date-range-picker input {
    padding: 0.875rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.date-range-picker input:hover {
    border-color: #adb5bd;
}

.date-range-picker input:focus {
    outline: none;
    border-color: #E84E1B;
    box-shadow: 0 0 0 3px rgba(232, 78, 27, 0.1);
}

/* Imported Events Preview */
.imported-events-preview {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.imported-events-preview h4 {
    color: #2B2B2B;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.events-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.event-preview-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #E84E1B;
}

.event-preview-card strong {
    color: #2B2B2B;
    font-weight: 600;
}

.event-preview-card span {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.more-events {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.375rem;
    border: 1px dashed #dee2e6;
}

/* Import Mode Selector */
.import-mode-selector {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.mode-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #2B2B2B;
    transition: all 0.3s ease;
    flex: 1;
}

.mode-radio input[type="radio"] {
    cursor: pointer;
    accent-color: #E84E1B;
}

.mode-radio:hover {
    color: #E84E1B;
}

.mode-radio span {
    user-select: none;
}

.import-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    color: #0c63e4;
}

.import-info svg {
    flex-shrink: 0;
}

.import-info p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-section {
        padding: 1.5rem;
    }

    .setting-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        width: 100%;
    }

    .date-range-picker {
        grid-template-columns: 1fr;
    }

    .settings-container h2 {
        font-size: 1.5rem;
    }
}

/* Age Limit Slider Control */
.age-limit-control {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.age-limit-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #dee2e6 0%, #dee2e6 100%);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.age-limit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E84E1B 0%, #ff6b47 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(232, 78, 27, 0.3);
    transition: all 0.2s ease;
}

.age-limit-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 78, 27, 0.4);
}

.age-limit-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E84E1B 0%, #ff6b47 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(232, 78, 27, 0.3);
    border: none;
    transition: all 0.2s ease;
}

.age-limit-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 78, 27, 0.4);
}

.age-limit-value {
    min-width: 100px;
    font-weight: 600;
    color: #2B2B2B;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #E84E1B;
    text-align: center;
}
