/* ===== NOTIFICATION CENTER STYLES ===== */

.notification-panel {
    position: fixed;
    right: -450px;
    top: 0;
    height: 100vh;
    width: 450px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    padding: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tanda-cyan);
    margin: 0;
}

.notification-header-actions {
    display: flex;
    gap: 8px;
}

.mark-all-read-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--tanda-cyan);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mark-all-read-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
}

.close-notification-panel {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.close-notification-panel:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.notification-tabs {
    display: flex;
    padding: 12px 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    overflow-x: auto;
}

.notification-tab {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.notification-tab:hover {
    border-color: rgba(0, 255, 255, 0.3);
    color: var(--text-primary);
}

.notification-tab.active {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--tanda-cyan);
    color: var(--tanda-cyan);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(-4px);
}

.notification-item.unread {
    border-left: 3px solid var(--tanda-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.notification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.notification-mark-read {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--tanda-cyan);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-mark-read:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--tanda-cyan);
}

.notification-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
}

.notification-footer a {
    color: var(--tanda-cyan);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.notification-footer a:hover {
    color: var(--tanda-cyan-light);
    text-decoration: underline;
}

.notification-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.notification-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty-text {
    font-size: 1rem;
    margin: 0;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    z-index: 10001;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .notification-panel {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
        border-left: none;
        border-radius: 0;
    }
    
    .notification-panel.active {
        right: 0;
    }
    
    /* Header adjustments */
    .notification-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: rgba(15, 23, 42, 0.98);
        z-index: 10;
    }
    
    .notification-header h3 {
        font-size: 1.25rem;
    }
    
    /* Close button - larger touch target */
    .close-notification-panel {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    /* Tabs - horizontal scroll */
    .notification-tabs {
        padding: 12px 16px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .notification-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .notification-tab {
        padding: 8px 14px;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
    
    /* List - better spacing */
    .notification-list {
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Items - larger touch targets */
    .notification-item {
        padding: 14px 12px;
        margin-bottom: 10px;
        min-height: 72px;
    }
    
    .notification-item:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .notification-title {
        font-size: 0.875rem;
    }
    
    .notification-message {
        font-size: 0.8125rem;
    }
    
    /* Footer */
    .notification-footer {
        padding: 14px 16px;
        position: sticky;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
    }
    
    /* Toast - full width on mobile */
    .toast-notification {
        right: 12px;
        left: 12px;
        min-width: auto;
        max-width: none;
        top: 16px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .notification-header {
        padding: 12px;
    }
    
    .notification-header h3 {
        font-size: 1.1rem;
    }
    
    .mark-all-read-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .notification-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .notification-item {
        padding: 12px 10px;
        gap: 10px;
    }
}

/* ===== NOTIFICATION STYLING ENHANCEMENTS v2.0 ===== */
/* Added: 2026-01-17 */

/* ============================================
   TYPE-BASED NOTIFICATION COLORS
   ============================================ */

/* Transaction notifications - Green */
.notification-item[data-type="transactions"] .notification-icon,
.notification-item.type-transactions .notification-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.notification-item[data-type="transactions"],
.notification-item.type-transactions {
    border-left-color: #10b981;
}

/* Tanda/Group notifications - Purple */
.notification-item[data-type="tandas"] .notification-icon,
.notification-item.type-tandas .notification-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.notification-item[data-type="tandas"],
.notification-item.type-tandas {
    border-left-color: #8b5cf6;
}

/* Social notifications - Blue */
.notification-item[data-type="social"] .notification-icon,
.notification-item.type-social .notification-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.notification-item[data-type="social"],
.notification-item.type-social {
    border-left-color: #3b82f6;
}

/* System/Alert notifications - Orange/Amber */
.notification-item[data-type="system"] .notification-icon,
.notification-item.type-system .notification-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.notification-item[data-type="system"],
.notification-item.type-system {
    border-left-color: #f59e0b;
}

/* ============================================
   URGENT NOTIFICATION INDICATOR
   ============================================ */
.notification-item.urgent {
    border-left: 4px solid #ef4444 !important;
    animation: urgent-glow 2s infinite;
    background: rgba(239, 68, 68, 0.05);
}

@keyframes urgent-glow {
    0%, 100% { box-shadow: inset 0 0 0 rgba(239, 68, 68, 0); }
    50% { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.1); }
}

.notification-item.urgent .notification-title::before {
    content: '⚠️ ';
}

/* ============================================
   IMPROVED UNREAD INDICATOR
   ============================================ */
.notification-item.unread {
    border-left: 4px solid var(--tanda-cyan, #00ffff);
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.08) 0%, 
        rgba(0, 255, 255, 0.02) 100%);
    position: relative;
}

/* Unread dot indicator */
.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: var(--tanda-cyan, #00ffff);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--tanda-cyan, #00ffff);
    animation: unread-dot-pulse 2s infinite;
}

@keyframes unread-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Adjust icon position for unread items */
.notification-item.unread .notification-icon {
    margin-left: 16px;
}

/* ============================================
   IMPROVED EMPTY STATE
   ============================================ */
.notification-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary, #8b949e);
}

.notification-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: empty-float 3s ease-in-out infinite;
    display: inline-block;
    opacity: 0.6;
}

@keyframes empty-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-5deg); }
    75% { transform: translateY(-8px) rotate(5deg); }
}

.notification-empty-text {
    font-size: 1.1rem;
    color: var(--text-primary, #e6edf3);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.notification-empty-subtext {
    font-size: 0.875rem;
    color: var(--text-tertiary, #6e7681);
    margin: 0;
}

/* ============================================
   UNIFIED TOAST NOTIFICATION SYSTEM
   ============================================ */

/* Toast container for stacking multiple toasts */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast-container > * {
    pointer-events: auto;
}

/* Base toast styles */
.toast {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 14px 16px;
    padding-right: 40px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: toast-in 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.toast.exiting {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    from { 
        transform: translateX(120%) scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0) scale(1); 
        opacity: 1; 
    }
}

@keyframes toast-out {
    from { 
        transform: translateX(0) scale(1); 
        opacity: 1; 
    }
    to { 
        transform: translateX(120%) scale(0.9); 
        opacity: 0; 
    }
}

/* Toast type variants */
.toast.success {
    border-left: 4px solid #10b981;
}
.toast.success .toast-icon { 
    color: #10b981; 
    background: rgba(16, 185, 129, 0.15);
}

.toast.error {
    border-left: 4px solid #ef4444;
}
.toast.error .toast-icon { 
    color: #ef4444; 
    background: rgba(239, 68, 68, 0.15);
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}
.toast.warning .toast-icon { 
    color: #f59e0b; 
    background: rgba(245, 158, 11, 0.15);
}

.toast.info {
    border-left: 4px solid #3b82f6;
}
.toast.info .toast-icon { 
    color: #3b82f6; 
    background: rgba(59, 130, 246, 0.15);
}

/* Toast icon */
.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Toast content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #e6edf3);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary, #8b949e);
    margin: 0;
    line-height: 1.4;
}

/* Toast close button */
.toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-tertiary, #6e7681);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
    color: var(--text-primary, #e6edf3);
}

/* Toast progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.4;
    border-radius: 0 0 0 12px;
    animation: toast-progress 5s linear forwards;
}

.toast.success .toast-progress { background: #10b981; }
.toast.error .toast-progress { background: #ef4444; }
.toast.warning .toast-progress { background: #f59e0b; }
.toast.info .toast-progress { background: #3b82f6; }

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast action button */
.toast-action {
    margin-top: 10px;
}

.toast-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary, #e6edf3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toast-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   TOAST MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
        top: 70px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================
   NOTIFICATION REFRESH BUTTON ANIMATION
   ============================================ */
.refresh-notifications-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary, #8b949e);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.refresh-notifications-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--tanda-cyan, #00ffff);
    color: var(--tanda-cyan, #00ffff);
}

.refresh-notifications-btn.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   NOTIFICATION TABS ACTIVE STATE ENHANCEMENT
   ============================================ */
.notification-tab.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    border-color: var(--tanda-cyan, #00ffff);
    color: var(--tanda-cyan, #00ffff);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Tab with count badge */
.notification-tab .tab-count {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: 600;
}

/* ============================================
   NOTIFICATION HOVER EFFECTS
   ============================================ */
.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(-4px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}

.notification-item.clickable:hover {
    cursor: pointer;
}

/* Mark as read button enhancement */
.notification-mark-read {
    opacity: 0;
    transition: all 0.2s;
}

.notification-item:hover .notification-mark-read {
    opacity: 1;
}

.notification-mark-read:hover {
    background: var(--tanda-cyan, #00ffff) !important;
    color: #000 !important;
    transform: scale(1.1);
}

/* ============================================
   NOTIFICATION PREFERENCES MODAL
   Added: 2026-01-17
   ============================================ */

.notification-preferences-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-preferences-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notification-preferences-modal {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.notification-preferences-overlay.active .notification-preferences-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.prefs-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prefs-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #e6edf3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prefs-modal-header h3 i {
    color: var(--tanda-cyan, #00ffff);
}

.prefs-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #8b949e);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prefs-modal-close:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

/* Modal Body */
.prefs-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Preference Sections */
.prefs-section {
    margin-bottom: 28px;
}

.prefs-section:last-child {
    margin-bottom: 0;
}

.prefs-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary, #6e7681);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prefs-section-title i {
    font-size: 0.875rem;
}

/* Preference Items */
.prefs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.prefs-item:last-child {
    margin-bottom: 0;
}

.prefs-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 255, 255, 0.2);
}

.prefs-item-info {
    flex: 1;
    margin-right: 16px;
}

.prefs-item-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary, #e6edf3);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prefs-item-label .prefs-icon {
    font-size: 1rem;
}

.prefs-item-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary, #8b949e);
    line-height: 1.4;
}

/* Toggle Switch */
.prefs-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

.prefs-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 116, 139, 0.4);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.prefs-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.prefs-toggle input:checked + .prefs-toggle-slider {
    background: linear-gradient(135deg, var(--tanda-cyan, #00ffff), #06b6d4);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.prefs-toggle input:checked + .prefs-toggle-slider::before {
    transform: translateX(22px);
}

.prefs-toggle input:focus + .prefs-toggle-slider {
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
}

/* Modal Footer */
.prefs-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.prefs-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.prefs-btn-secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-secondary, #8b949e);
}

.prefs-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-primary, #e6edf3);
}

.prefs-btn-primary {
    background: linear-gradient(135deg, var(--tanda-cyan, #00ffff), #06b6d4);
    border: none;
    color: #000;
    font-weight: 600;
}

.prefs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.prefs-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.prefs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary, #8b949e);
}

.prefs-loading i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--tanda-cyan, #00ffff);
}

/* Settings Button in Header */
.prefs-settings-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-secondary, #8b949e);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.prefs-settings-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--tanda-cyan, #00ffff);
    color: var(--tanda-cyan, #00ffff);
}

/* Save Success Animation */
.prefs-saved-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.prefs-saved-indicator.show {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-preferences-modal {
        width: 95%;
        max-height: 85vh;
        margin: 20px;
    }
    
    .prefs-modal-header {
        padding: 16px 20px;
    }
    
    .prefs-modal-body {
        padding: 20px;
    }
    
    .prefs-item {
        padding: 12px 14px;
    }
    
    .prefs-modal-footer {
        padding: 14px 20px;
        flex-direction: column;
    }
    
    .prefs-btn {
        width: 100%;
        justify-content: center;
    }
}
