/* Notification Settings Styles - Toggle Switch Design */
/* Matches NewzTiQ design system with primary color #4F46E5 */

.notification-setting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background-color: var(--background-subtle);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-setting:hover {
    background-color: var(--background-white);
    border-color: var(--text-tertiary);
}

.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.notification-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.notification-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Toggle Switch Styles */
.toggle-switch {
    flex-shrink: 0;
    position: relative;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    display: block;
    width: 48px;
    height: 28px;
    background-color: #E5E7EB;
    border-radius: 28px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
}

.toggle-label:hover {
    background-color: #D1D5DB;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked state */
.toggle-input:checked + .toggle-label {
    background-color: var(--primary-color);
}

.toggle-input:checked + .toggle-label:hover {
    background-color: var(--primary-dark);
}

.toggle-input:checked + .toggle-label .toggle-slider {
    transform: translateX(20px);
}

/* Focus state for accessibility */
.toggle-input:focus + .toggle-label {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Disabled state */
.toggle-switch.disabled .toggle-label {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-switch.disabled .toggle-label:hover {
    background-color: #E5E7EB;
}

.toggle-input:disabled + .toggle-label {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-input:disabled + .toggle-label:hover {
    background-color: #E5E7EB;
}

/* Enhanced visual feedback for different states */
.notification-setting:has(.toggle-input:checked) .notification-icon {
    color: var(--primary-color);
}

.notification-setting:has(.toggle-input:disabled) {
    opacity: 0.7;
}

.notification-setting:has(.toggle-input:disabled) .notification-description {
    color: #EF4444;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-setting {
        padding: 1rem;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-header {
        gap: 0.5rem;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-description {
        font-size: 0.8rem;
    }
    
    .toggle-switch {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
}

/* Dark theme support - Uses app's theme system */
body.dark-theme .notification-setting {
    background-color: var(--background-subtle);
    border-color: var(--border-color);
}

body.dark-theme .notification-setting:hover {
    background-color: var(--background-white);
}

body.dark-theme .notification-title {
    color: var(--text-primary);
}

body.dark-theme .notification-description {
    color: var(--text-secondary);
}

body.dark-theme .notification-icon {
    color: var(--text-secondary);
}

body.dark-theme .toggle-label {
    background-color: var(--border-color);
}

body.dark-theme .toggle-label:hover {
    background-color: var(--text-tertiary);
}

body.dark-theme .toggle-input:checked + .toggle-label {
    background-color: var(--primary-color);
}

body.dark-theme .toggle-input:checked + .toggle-label:hover {
    background-color: var(--primary-dark);
}