﻿/* Version Checker Styles */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.update-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.update-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.update-icon {
    font-size: 24px;
    color: #40e0d0;
    filter: drop-shadow(0 0 8px rgba(64, 224, 208, 0.5));
}

.update-text h3 {
    margin: 0 0 8px 0;
    color: #e0e6ed;
    font-size: 16px;
    font-weight: 600;
}

.update-text p {
    margin: 0 0 5px 0;
    color: #a8afc4;
    font-size: 14px;
    line-height: 1.4;
}

.update-changes {
    font-style: italic;
    color: #40e0d0 !important;
    font-size: 13px !important;
}

.update-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.update-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-btn.download {
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    color: #0f0f23;
}

.update-btn.download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.update-btn.later {
    background: rgba(168, 175, 196, 0.1);
    color: #a8afc4;
    border: 1px solid rgba(168, 175, 196, 0.2);
}

.update-btn.later:hover {
    background: rgba(168, 175, 196, 0.2);
    color: #e0e6ed;
}

/* Version Toast */
.version-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.version-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.version-toast.success {
    border-left: 4px solid #4caf50;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e6ed;
    font-size: 14px;
}

.toast-icon {
    font-size: 16px;
}

/* Settings Integration */
.version-check-section {
    background: rgba(64, 224, 208, 0.05);
    border: 1px solid rgba(64, 224, 208, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.current-version {
    color: #40e0d0;
    font-weight: 500;
}

.check-update-btn {
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    color: #0f0f23;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.check-update-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.auto-update-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #a8afc4;
}

.auto-update-toggle input[type="checkbox"] {
    accent-color: #40e0d0;
}

/* Live top status banner for in-app updater */
.update-status-banner {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translate(-50%, -16px);
    min-width: 360px;
    max-width: min(92vw, 720px);
    background: rgba(16, 22, 42, 0.96);
    border: 1px solid rgba(64, 224, 208, 0.28);
    color: #e0e6ed;
    border-radius: 10px;
    padding: 10px 12px;
    z-index: 11000;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.update-status-banner.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.update-status-banner.is-success {
    border-color: rgba(76, 175, 80, 0.45);
}

.update-status-banner.is-error {
    border-color: rgba(255, 107, 107, 0.45);
}

.update-status-banner.is-progress {
    border-color: rgba(255, 165, 2, 0.45);
}

.update-status-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.update-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #40e0d0;
    box-shadow: 0 0 0 0 rgba(64, 224, 208, 0.5);
    animation: updatePulse 1.2s infinite;
    flex-shrink: 0;
}

.update-status-banner.is-success .update-status-dot {
    background: #4caf50;
}

.update-status-banner.is-error .update-status-dot {
    background: #ff6b6b;
    animation: none;
}

.update-status-banner.is-progress .update-status-dot {
    background: #ffa502;
}

.update-status-text {
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-status-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.update-status-action {
    border: 0;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #40e0d0, #00bcd4);
    color: #0f0f23;
    cursor: pointer;
}

.update-status-close {
    border: 0;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    background: rgba(168, 175, 196, 0.15);
    color: #a8afc4;
    cursor: pointer;
    line-height: 1;
}

.update-status-close:hover {
    color: #e0e6ed;
}

@keyframes updatePulse {
    0% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(64, 224, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0); }
}
