/* Update Banner */
.update-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 16px; }
.update-banner-info { background: linear-gradient(135deg, #1a3a2a 0%, #0d2818 100%); border-bottom: 1px solid rgba(76, 175, 80, 0.3); }
.update-banner-progress { background: linear-gradient(135deg, #1a2a3a 0%, #0d1828 100%); border-bottom: 1px solid rgba(33, 150, 243, 0.3); }
.update-banner-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.update-banner-icon { flex-shrink: 0; color: var(--do-blue, #E43636); display: flex; align-items: center; }
.update-banner-icon.spinning svg { animation: update-spin 1s linear infinite; }
@keyframes update-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.update-banner-text { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-primary, #F6EFD2); }
.update-banner-text strong { font-weight: 600; }
.update-banner-from { color: var(--text-muted, #6b6b6b); font-size: 12px; }
.update-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.update-banner-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; border: none; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.update-banner-btn:hover { opacity: 0.85; }
.update-banner-btn-details { background: rgba(255, 255, 255, 0.1); color: var(--text-primary, #F6EFD2); }
.update-banner-btn-update { background: var(--do-blue, #E43636); color: #fff; }
.update-banner-close { flex-shrink: 0; background: none; border: none; color: var(--text-muted, #6b6b6b); cursor: pointer; padding: 4px; display: flex; align-items: center; }
.update-banner-close:hover { color: var(--text-primary, #F6EFD2); }
.update-banner-bar { height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.update-banner-bar-fill { height: 100%; background: var(--do-blue, #E43636); width: 30%; animation: progress-slide 2s ease-in-out infinite; }
@keyframes progress-slide { 0% { transform: translateX(-100%); width: 30%; } 50% { width: 60%; } 100% { transform: translateX(400%); width: 30%; } }

/* Update Modal */
.update-modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.update-modal { background: var(--bg-secondary, #111); border: 1px solid var(--border, #222); border-radius: 12px; width: 100%; max-width: 520px; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; }
.update-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border, #222); }
.update-modal-header h3 { font-size: 16px; font-weight: 600; color: var(--text-primary, #F6EFD2); }
.update-modal-close { background: none; border: none; color: var(--text-muted, #6b6b6b); cursor: pointer; padding: 4px; display: flex; }
.update-modal-close:hover { color: var(--text-primary, #F6EFD2); }
.update-modal-body { padding: 20px; overflow-y: auto; }
.update-available-card { background: var(--bg-tertiary, #1a1a1a); border: 1px solid var(--border, #222); border-radius: 8px; padding: 16px; }
.update-available-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.update-version-tag { background: var(--do-blue, #E43636); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; font-family: var(--font-mono, monospace); }
.update-current { color: var(--text-muted, #6b6b6b); font-size: 12px; }
.update-release-notes { color: var(--text-secondary, #a0a0a0); font-size: 13px; line-height: 1.5; margin-bottom: 16px; padding: 10px; background: rgba(255, 255, 255, 0.03); border-radius: 6px; border-left: 3px solid var(--do-blue, #E43636); }
.update-modal-btn-primary { width: 100%; padding: 10px; background: var(--do-blue, #E43636); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.update-modal-btn-primary:hover { opacity: 0.9; }
.update-safety-note { margin-top: 12px; font-size: 12px; color: var(--text-muted, #6b6b6b); text-align: center; }
.update-uptodate { text-align: center; padding: 24px; color: #4CAF50; }
.update-uptodate p { color: var(--text-secondary, #a0a0a0); font-size: 14px; }
.update-history-list { display: flex; flex-direction: column; gap: 6px; }
.update-history-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px; background: var(--bg-tertiary, #1a1a1a); border-radius: 6px; font-size: 12px; }
.update-history-info { display: flex; align-items: center; gap: 8px; color: var(--text-secondary, #a0a0a0); }
.update-history-date { color: var(--text-muted, #6b6b6b); font-size: 11px; }
.update-history-error { width: 100%; margin-top: 4px; padding: 6px 8px; background: rgba(244, 67, 54, 0.1); color: #f44336; border-radius: 4px; font-size: 11px; font-family: var(--font-mono, monospace); }

@media (max-width: 600px) {
  .update-banner-content { flex-wrap: wrap; }
  .update-banner-actions { width: 100%; justify-content: flex-end; }
  .update-modal { max-width: 100%; max-height: 90vh; }
}
