/* ====================================
   Progress Components
   ==================================== */

/* Progress Summary Container */
.progress-summary-container {
    display: flex;
    flex-direction: column;
}

.progress-summary-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.progress-summary-row:last-child {
    margin-bottom: 0;
}

/* Account Progress Item */
.account-progress-item {
    flex: 1;
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-raised-hover);
}

.progress-account-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-account-name {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 14px;
    text-shadow: none;
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-inset-tab);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.progress-account-status {
    font-weight: 800;
    font-size: 13px;
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
    text-shadow: none;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: var(--shadow-inset-tab);
    border: 1px solid var(--border-primary) !important;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Progress Bar Container */
.progress-account-bar-container {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    margin: 12px 0;
    overflow: hidden;
    box-shadow: var(--shadow-inset-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-account-bar {
    height: 100%;
    background: linear-gradient(145deg, #ce6bd4, #aa3bb5);
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 2px rgba(0, 0, 0, 0.1),
        2px 0 4px rgba(0, 0, 0, 0.2);
}

.progress-account-bar::after {
    display: none;
}

.progress-account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    margin-top: 10px;
}

.progress-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-inset-field);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

/* Labels (Neutral/Grey like Global Stats) */
.progress-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    /* Neutral Grey */
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.progress-stat-value {
    font-size: 14px;
    font-weight: 700;
}

/* Matching Global Stats Colors */
.progress-stat-success {
    color: var(--color-success);
}

.progress-stat-failed {
    color: var(--color-failed);
}

.progress-stat-pending {
    color: var(--color-pending);
}

.progress-stat-total {
    color: var(--text-accent);
    /* Match ag-value.total (Purple) */
}

.progress-stat-percent {
    color: var(--color-progress);
    /* Match ag-value.progress (Blue) */
}

/* Large Progress Bar */
.progress-bar-large {
    width: 80%;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffc6, #00e2ff);
    border-radius: 12px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 2s infinite;
}

.progress-bar-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

/* Status Text Large */
.status-text-large {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.status-complete {
    color: var(--color-success);
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
}

.status-processing {
    color: var(--color-info);
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid #FF9800;
}

/* Blast Row */
.blast-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 15px 0;
    height: auto;
    min-height: 45px;
}

.blast-and-delay-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Blast Mode Control */
.blast-mode-control {
    margin-top: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}