/* Progress Dialog Styles */

.progress-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.progress-dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.progress-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.progress-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.progress-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s;
}

.progress-dialog-close:hover {
    color: #000;
}

/* Counters */
.progress-dialog-counters {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.counter {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.counter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.counter-value {
    font-size: 20px;
    font-weight: bold;
}

/* Color coding for counters */
.info-counter .counter-label,
.info-counter .counter-value {
    color: #2196F3;
}

.warning-counter .counter-label,
.warning-counter .counter-value {
    color: #FF9800;
}

.error-counter .counter-label,
.error-counter .counter-value {
    color: #F44336;
}

.debug-counter .counter-label,
.debug-counter .counter-value {
    color: #9E9E9E;
}

/* Progress Bar */
.progress-bar-container {
    height: 6px;
    background: #e0e0e0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2196F3 0%, #21CBF3 100%);
    transition: width 0.3s ease;
}

/* Logs Section */
.progress-dialog-logs {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 20px;
}

.logs-header {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.logs-container {
    flex: 1;
    overflow-y: auto;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
}

/* Individual log entries */
.log-entry {
    margin-bottom: 6px;
    padding: 4px 6px;
    border-radius: 3px;
    display: flex;
    gap: 8px;
}

.log-time {
    color: #999;
    flex-shrink: 0;
}

.log-type {
    font-weight: bold;
    flex-shrink: 0;
    min-width: 70px;
}

.log-message {
    flex: 1;
    word-break: break-word;
}

/* Color coding for log types */
.log-info {
    background: #E3F2FD;
}

.log-info .log-type {
    color: #2196F3;
}

.log-warning {
    background: #FFF3E0;
}

.log-warning .log-type {
    color: #FF9800;
}

.log-error {
    background: #FFEBEE;
}

.log-error .log-type {
    color: #F44336;
}

.log-debug {
    background: #F5F5F5;
}

.log-debug .log-type {
    color: #9E9E9E;
}

/* Status Footer */
.progress-dialog-status {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f5f5f5;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* Scrollbar styling for logs */
.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-dialog {
        width: 95%;
        max-height: 90vh;
    }

    .progress-dialog-counters {
        flex-wrap: wrap;
    }

    .counter {
        min-width: calc(50% - 6px);
    }

    .log-entry {
        flex-direction: column;
        gap: 2px;
    }

    .log-time,
    .log-type {
        min-width: auto;
    }
}