/* =============================================================================
   Mingo - settings.css
   Settings components, messages, states, animations
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Settings Components
   ----------------------------------------------------------------------------- */
   .settings-page {
    padding-bottom: 120px;
}

.settings-actions,
.settings-footer {
    /* Normal static positioning - no floating */
    position: static;
    background: transparent;
    padding: 0;
    margin: 0;
    border-top: none;
    display: flex;
    gap: 12px;
}

.settings-actions .btn,
.settings-footer .btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   Messages and States
   ----------------------------------------------------------------------------- */
   .message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    /* Fixed positioning with safe area support for PWA mode */
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    min-width: 300px;
    max-width: 90vw;
    text-align: center;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--danger-color);
    background: #fef2f2;
    border-radius: var(--radius-lg);
    border: 1px solid #fecaca;
}

/* Progress Bars */
.progress-bar {
    background: var(--surface-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 8px;
    margin-top: 0.5rem;
}

.progress-fill {
    background: var(--success-color);
    height: 100%;
    transition: width 0.3s ease;
}

/* Expiry Badges */
.expiry-badge {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.expiry-active {
    background: var(--success-color);
    color: white;
}

.expiry-warning {
    background: var(--warning-color);
    color: white;
}

.expiry-expired {
    background: var(--danger-color);
    color: white;
}

/* Existing Share Options */
.existing-share-options {
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* -----------------------------------------------------------------------------
   iOS-style Animations
   ----------------------------------------------------------------------------- */
@keyframes ios-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ios-fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ios-scale-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ios-animate-in {
    animation: ios-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-fade-up {
    animation: ios-fade-up 0.4s ease-out;
}

.ios-scale-in {
    animation: ios-scale-in 0.3s ease-out;
}