/* Update Notification Styles - Shared across all pages */
.update-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

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

.update-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.update-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-icon svg {
    color: white;
}

.update-info {
    flex: 1;
}

.update-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.update-version {
    font-size: 12px;
    color: #666;
}

.update-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.update-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.update-dismiss-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.update-dismiss-btn:hover {
    color: #666;
}

/* Progress overlay styles */
.update-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

/* Show progress overlay when active */
.update-progress-overlay.active {
    display: flex;
}

.update-progress-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.update-progress-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.update-progress-header p {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 14px;
}

.update-progress-bar-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.update-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.update-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.update-progress-status {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Dark mode support */
body.dark-mode .update-notification,
body.dark-mode .update-progress-content,
[data-theme="dark"] .update-notification,
[data-theme="dark"] .update-progress-content {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .update-title,
[data-theme="dark"] .update-title {
    color: #f0f0f0;
}

body.dark-mode .update-version,
[data-theme="dark"] .update-version {
    color: #999;
}

body.dark-mode .update-progress-header h3,
[data-theme="dark"] .update-progress-header h3 {
    color: #f0f0f0;
}

body.dark-mode .update-progress-bar-container,
[data-theme="dark"] .update-progress-bar-container {
    background: #3a3a3a;
}

/* Responsive design */
@media (max-width: 480px) {
    .update-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .update-content {
        flex-wrap: wrap;
    }
    
    .update-action-btn {
        margin-top: 8px;
    }
} 