/* Sync Live Terminal Styles */
.sync-terminal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    /* Above regular modals */
    animation: fadeIn 0.2s ease-out;
}

.sync-terminal {
    width: 100%;
    max-width: 700px;
    height: 70vh;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    padding: 14px 20px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

.terminal-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

.terminal-actions {
    display: flex;
    gap: 12px;
}

.terminal-actions button {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.terminal-actions button:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #666;
    transform: translateY(-1px);
}

.terminal-actions button.close:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
}

.terminal-empty {
    color: #444;
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.terminal-empty::before {
    content: '☁️';
    font-size: 32px;
    opacity: 0.3;
}

.terminal-line {
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    display: flex;
    gap: 12px;
}

.terminal-line .timestamp {
    color: #444;
    user-select: none;
    min-width: 70px;
}

.terminal-line .message {
    color: #aaa;
}

.terminal-line.info .message {
    color: #5ccfe6;
}

.terminal-line.success .message {
    color: #a6e22e;
}

.terminal-line.warning .message {
    color: #f9d84a;
}

.terminal-line.error .message {
    color: #f92672;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Scrollbar Styles */
.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #252525;
    border-radius: 10px;
    border: 2px solid #0d0d0d;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #333;
}