/**
 * Progress Tracker Sidebar Styles
 * Real-time task progress monitoring
 */

/* Progress Sidebar Container */
.progress-sidebar {
    width: var(--progress-sidebar-width);
    height: 100vh;
    background: var(--md-sys-color-surface-container);
    border-left: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease;
}

.progress-sidebar.hidden {
    display: none;
}

.progress-sidebar.minimized {
    width: var(--progress-sidebar-width-minimized);
}

.progress-sidebar.minimized .progress-header h3,
.progress-sidebar.minimized .progress-content {
    display: none;
}

.progress-sidebar.minimized .minimize-btn {
    transform: rotate(180deg);
}

/* Progress Header */
.progress-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.progress-header-controls {
    display: flex;
    gap: var(--spacing-xs);
}

/* Minimize Button */
.minimize-btn {
    transition: transform 0.3s ease;
}

.minimize-btn:hover {
    background-color: var(--md-sys-color-surface-variant);
}

/* Progress Content */
.progress-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

/* Empty State */
.progress-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
}

.progress-empty-state md-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

/* Progress Item */
.progress-item {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-small);
    border-left: 4px solid var(--md-sys-color-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.progress-item:hover {
    background: var(--md-sys-color-surface-variant);
}

.progress-item.error {
    border-left-color: var(--md-sys-color-error);
}

.progress-item.complete {
    border-left-color: var(--md-sys-color-success);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-extra-small);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: var(--md-sys-color-primary);
    transition: width 0.3s ease;
}

.progress-fill.error {
    background: var(--md-sys-color-error);
}

.progress-fill.complete {
    background: var(--md-sys-color-success);
}

/* Dismiss Button */
.progress-dismiss {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0;
}

.progress-dismiss:hover {
    opacity: 1;
}

/* Minimized State Visual Feedback */
.progress-sidebar.minimized::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .progress-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .progress-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        bottom: 0;
        z-index: 999;
        transition: right 0.3s ease;
    }
    
    .progress-sidebar.open {
        right: 0;
    }
    
    .progress-sidebar.minimized {
        width: 48px;
        right: 0;
    }
}
