/* Seelo PWA - Dark Mode Only Styles */

/* Swipe Container */
#swipe-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    cursor: grab;
    background: #000;
}

#swipe-container.dragging {
    cursor: grabbing;
}

/* Swipe Cards */
.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    
    /* GPU acceleration */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    
    /* Touch optimization */
    touch-action: none;
    pointer-events: auto;
}

.swipe-card.active {
    z-index: 3;
}

.swipe-card.next {
    z-index: 2;
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.8;
}

.swipe-card.preload {
    z-index: 1;
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.6;
    pointer-events: none;
}

/* Card Image */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
    /* Performance optimizations */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    
    /* Prevent image drag */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    /* Smooth loading */
    transition: opacity 0.3s ease-out;
}

/* Blur Placeholder */
.blur-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1); /* Prevent blur edge artifacts */
    z-index: -1;
    
    /* Fade out when image loads */
    transition: opacity 0.5s ease-out;
}

.blur-placeholder.loaded {
    opacity: 0;
}

/* Swipe Indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    
    /* Initial hidden state */
    opacity: 0;
    transform: translate3d(0, -50%, 0) scale(0);
    
    /* Animation properties */
    will-change: transform, opacity;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Backdrop */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.swipe-indicator.like {
    right: 60px;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
}

.swipe-indicator.dislike {
    left: 60px;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
}

.swipe-indicator.show {
    opacity: 0.9;
    transform: translate3d(0, -50%, 0) scale(1);
}

.swipe-indicator.animate-out {
    opacity: 0;
    transform: translate3d(0, -50%, 0) scale(1.2);
    transition: all 0.4s ease-out;
}

/* Download Button */
.download-button {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Smooth interactions */
    cursor: pointer;
    transition: all 0.2s ease-out;
    
    /* GPU acceleration */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    
    /* Touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.download-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate3d(0, 0, 0) scale(1.05);
}

.download-button:active {
    transform: translate3d(0, 0, 0) scale(0.95);
}

.download-button.downloading {
    background: rgba(34, 197, 94, 0.6);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hide download button on non-active cards */
.swipe-card:not(.active) .download-button {
    opacity: 0.3;
    pointer-events: none;
}

/* Daily Wallpaper Overlay */
.daily-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transform: scale(1.05);
    transition: all 0.4s ease-out;
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.daily-overlay.loaded {
    opacity: 1;
    transform: scale(1);
}

.daily-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    color: white;
    padding: 20px;
}

.daily-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.daily-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.cached-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
}

.daily-image-container {
    position: relative;
    max-width: 300px;
    max-height: 450px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

.daily-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.daily-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.daily-overlay.loaded .daily-image {
    opacity: 1;
}

.daily-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.daily-action {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
    min-width: 200px;
    
    -webkit-tap-highlight-color: transparent;
}

.daily-action.primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.daily-action.primary:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
}

.daily-action.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.daily-action.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.daily-action.tertiary {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    min-width: auto;
}

.daily-action.tertiary:hover {
    color: rgba(255, 255, 255, 0.8);
}

.daily-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.daily-photographer {
    font-style: italic;
}

.daily-category {
    text-transform: capitalize;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Mobile responsiveness for daily overlay */
@media (max-width: 480px) {
    .daily-content {
        padding: 15px;
    }
    
    .daily-header h1 {
        font-size: 1.5rem;
    }
    
    .daily-image-container {
        max-width: 250px;
        max-height: 375px;
    }
    
    .daily-actions {
        gap: 10px;
    }
    
    .daily-action {
        min-width: 160px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Card rotation and movement during drag */
.swipe-card.dragging {
    transition: none;
}

/* Spring animation for card return */
.swipe-card.returning {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card exit animations */
.swipe-card.swiped-right {
    animation: swipeRight 0.3s ease-out forwards;
}

.swipe-card.swiped-left {
    animation: swipeLeft 0.3s ease-out forwards;
}

@keyframes swipeRight {
    to {
        transform: translate3d(100vw, -100px, 0) rotate(30deg);
        opacity: 0;
    }
}

@keyframes swipeLeft {
    to {
        transform: translate3d(-100vw, -100px, 0) rotate(-30deg);
        opacity: 0;
    }
}

/* Loading states */
.card-image.loading {
    opacity: 0;
}

.card-image.loaded {
    opacity: 1;
}

/* Error state */
.card-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #111;
    color: #666;
    font-size: 16px;
    text-align: center;
    flex-direction: column;
}

.card-error .retry-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #333;
    border: 1px solid #666;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.card-error .retry-button:hover {
    background: #444;
}

/* Debug Info (Development) */
#debug-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.debug-item {
    margin: 4px 0;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Disable bounce scroll */
    body {
        position: fixed;
        overflow: hidden;
    }
    
    /* Prevent zoom on double tap */
    * {
        touch-action: manipulation;
    }
    
    .swipe-card {
        touch-action: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .swipe-indicator.like {
        border-color: #00ff00;
        background: rgba(0, 255, 0, 0.3);
    }
    
    .swipe-indicator.dislike {
        border-color: #ff0000;
        background: rgba(255, 0, 0, 0.3);
    }
}

/* Download Button */
.download-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    
    /* GPU acceleration */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    
    /* Backdrop blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Animation */
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.8;
}

.download-button:hover {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

.download-button:active {
    transform: translate3d(0, 0, 0) scale(0.95);
}

.download-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translate3d(0, 0, 0);
}

/* Download Toast */
.download-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 16px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    
    /* Backdrop blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Animation */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
}

.download-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.download-toast.success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.download-toast.error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Hide download button during swipe */
.swipe-card.dragging .download-button {
    opacity: 0;
    pointer-events: none;
}

/* Show download button only on active card */
.swipe-card:not(.active) .download-button {
    opacity: 0;
    pointer-events: none;
}

/* Aesthetic DNA Loading */
.dna-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dna-loading.show {
    opacity: 1;
    transform: scale(1);
}

.dna-loading-content {
    text-align: center;
    color: #fff;
    max-width: 300px;
}

.dna-loading-content h2 {
    font-size: 24px;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.dna-loading-content p {
    font-size: 16px;
    opacity: 0.7;
    margin: 0;
}

.dna-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Share Toast (for DNA sharing) */
.share-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 16px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    max-width: 320px;
    text-align: center;
    white-space: pre-line;
    
    /* Backdrop blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Animation */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.share-toast.success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.share-toast.error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.share-toast.info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .blur-placeholder {
        transition: none;
    }
    
    .swipe-indicator {
        transition: opacity 0.1s;
    }
    
    .download-button,
    .download-toast {
        transition: opacity 0.1s;
    }
}

/* Aesthetic DNA Test Overlay */
.dna-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1100;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease-out;
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dna-overlay.visible {
    opacity: 1;
    transform: scale(1);
}

.dna-content {
    max-width: 90vw;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 30px;
    color: white;
    overflow-y: auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dna-header {
    position: relative;
    margin-bottom: 30px;
}

.dna-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dna-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.dna-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dna-type h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #A29BFE;
}

.dna-description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.dna-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.dna-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6C5CE7;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dna-traits, .dna-palette {
    margin-bottom: 25px;
}

.dna-traits h3, .dna-palette h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.trait-tag {
    padding: 6px 12px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 16px;
    font-size: 0.8rem;
    color: #A29BFE;
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dna-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.dna-action {
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-out;
    min-width: 200px;
    
    -webkit-tap-highlight-color: transparent;
}

.dna-action.primary {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
}

.dna-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.dna-action.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dna-action.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1200;
    transition: all 0.3s ease-out;
    
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* Mobile responsiveness for DNA test */
@media (max-width: 480px) {
    .dna-content {
        padding: 20px;
        max-height: 85vh;
    }
    
    .dna-header h1 {
        font-size: 1.5rem;
    }
    
    .dna-type h2 {
        font-size: 1.3rem;
    }
    
    .dna-stats {
        gap: 20px;
    }
    
    .dna-action {
        min-width: 160px;
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
}

/* Settings Button */
.settings-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 900;
    
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    transition: all 0.2s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.settings-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.settings-button:active {
    transform: scale(0.95);
}

/* Settings Overlay */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-out;
    
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.settings-overlay.visible {
    opacity: 1;
    transform: scale(1);
}

.settings-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 30px;
    max-width: 90vw;
    width: 400px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.settings-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.settings-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-option:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.toggle-switch.active {
    background: #6C5CE7;
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease-out;
    transform: translateX(0);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

/* Clear Data Button */
.clear-data-button {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
    
    -webkit-tap-highlight-color: transparent;
}

.clear-data-button:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

.clear-data-button:active {
    transform: scale(0.95);
}

/* Confirmation Dialog */
.confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.confirmation-dialog.visible {
    opacity: 1;
}

.confirmation-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    width: 320px;
    color: white;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.confirmation-message {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 24px;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirmation-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
    min-width: 80px;
}

.confirmation-button.danger {
    background: #ef4444;
    color: white;
}

.confirmation-button.danger:hover {
    background: #dc2626;
}

.confirmation-button.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirmation-button.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .settings-content {
        padding: 24px;
        margin: 20px;
        width: auto;
    }
    
    .settings-title {
        font-size: 1.3rem;
    }
    
    .setting-label {
        font-size: 0.95rem;
    }
    
    .setting-description {
        font-size: 0.8rem;
    }
    
    .confirmation-content {
        padding: 20px;
        margin: 20px;
        width: auto;
    }
}
/* PWA Update Toast */
.update-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    max-width: 280px;
    
    /* Backdrop blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Animation */
    animation: slideInFromRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.update-toast button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.update-toast button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Settings Toast */
.settings-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    text-align: center;
    
    /* Backdrop blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Animation */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
}

.settings-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.settings-toast.success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.settings-toast.error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.settings-toast.info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
