/* Extraction Progress Global Component */
.extraction-progress-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through outside the bar */
}

.extraction-progress-container > * {
    pointer-events: auto; /* Re-enable clicks on the actual content */
}

/* Collapsed circular dot */
.ep-collapsed-dot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--mud-palette-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: grab;
    z-index: 10;
}

.ep-collapsed-dot:active {
    cursor: grabbing;
}

.extraction-progress-container.success .ep-collapsed-dot {
    background-color: var(--mud-palette-success);
}

.extraction-progress-container.error .ep-collapsed-dot {
    background-color: var(--mud-palette-error);
}

.ep-pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    animation: pulse-ring-animation 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
    opacity: 0.6;
}

.extraction-progress-container.success .ep-pulse-ring,
.extraction-progress-container.error .ep-pulse-ring {
    animation: none;
    display: none;
}

@keyframes pulse-ring-animation {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.extraction-progress-container.is-dragging {
    opacity: 0.8;
}

/* Drag handle on expanded card */
.ep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-background-grey);
    cursor: grab;
}
.ep-card-header:active {
    cursor: grabbing;
}

/* Expanded card */
.ep-card {
    background-color: var(--mud-palette-surface);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 400px;
    max-width: 90vw;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
}

.ep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-background-grey);
}

.ep-card-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--mud-palette-text-primary);
}

.spin-icon {
    animation: spin 2s linear infinite;
    color: var(--mud-palette-primary);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.ep-card-body {
    padding: 16px;
}

.ep-file-info, .ep-client-info, .ep-time-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.ep-file-info {
    color: var(--mud-palette-text-primary);
    font-weight: 500;
}

.ep-card-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    display: flex;
    justify-content: flex-end;
    background-color: var(--mud-palette-background-grey);
}
