/* CV Progress UI */
.cv-progress-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cv-progress-header {
    margin-bottom: 1rem;
}

.cv-progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary, #1e40af);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.cv-progress-title.cv-progress-complete {
    color: #16a34a;
}

.cv-progress-title.cv-progress-error {
    color: #dc2626;
}

.cv-check-icon {
    font-size: 1.2rem;
    color: #16a34a;
}

.cv-error-icon {
    font-size: 1.2rem;
    color: #dc2626;
}

/* Progress Bar */
.cv-progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.cv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 99px;
    transition: width 0.5s ease;
}

.cv-progress-bar.cv-progress-bar-complete {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.cv-progress-bar.cv-progress-bar-error {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Progress Info */
.cv-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.cv-progress-percent {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary, #1e40af);
}

.cv-progress-count {
    font-weight: 500;
}

/* Field List */
.cv-progress-fields {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.25rem;
    overflow-y: hidden;
}

.cv-field-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.cv-field-done {
    background: #f0fdf4;
    color: #166534;
}

.cv-field-current {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
    animation: cv-pulse 1.5s ease-in-out infinite;
}

.cv-field-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
}

.cv-field-icon-done {
    color: #16a34a;
}

.cv-field-icon-current {
    color: #3b82f6;
    animation: cv-spin 1s linear infinite;
}

.cv-field-label {
    flex: 1;
}

/* Terminal container override */
#terminal {
    min-height: 252px;
    background: #ffffff;
    border-radius: 8px;
}

/* Animations */
@keyframes cv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes cv-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal styles (kept from original) */
#process-cv-content {
    overflow: hidden;
}

#process-cv-content .modal-title {
    font-weight: bold;
    color: var(--primary);
    position: relative;
    z-index: 10;
}

#process-cv-content .modal-subtitle {
    font-size: 1rem;
    color: var(--primary-hover);
    margin-bottom: 1rem;
    z-index: 10;
    position: relative;
    letter-spacing: 0.05em;
}

#process-cv-content .modal-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    border: none;
    transition: 0.3s;
    font-weight: bold;
    cursor: pointer;
    width: max-content;
}

#process-cv-content .modal-btn:disabled {
    opacity: 0.7;
    pointer-events: none;
}

#process-cv-content .modal-btn-primary {
    background: linear-gradient(to right, #3b82f6, #1e40af);
    color: #ffffff;
}

#process-cv-content .modal-btn-primary:hover {
    background: #1d4ed8;
}

#process-cv-content .modal-btn-secondary {
    background: linear-gradient(to right, #e0f2fe, #bae6fd);
    color: #1e3a8a;
}

#process-cv-content .modal-btn-secondary:hover {
    background: #7dd3fc;
}

#process-cv-content .robot-image {
    width: 10rem;
    margin: 0 auto;
    position: absolute;
    z-index: 999999;
    opacity: 0.3;
    margin-left: 500px;
    margin-top: 20px;
}

#process-cv-content .robot-image img {
    animation: bounce-slow 3s infinite;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.4));
}

#process-cv-content .alert-message {
    background: #f4f7fb;
    color: var(--primary-hover);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1rem;
}

#process-cv-content .file-name {
    max-width: 40ch;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.8rem;
}

#process-cv-content .modal-content {
    animation: fade-in 0.6s ease-out forwards;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.15);
    isolation: isolate;
}

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

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
