/* ====================================
   Card Components
   ==================================== */

/* Account Card */
.account-card {
    background: var(--bg-primary);
    border: none;
    border-radius: 20px;
    padding: 20px;
    margin-top: 8px;
    box-shadow: var(--shadow-raised-hover);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.account-card .progress-wrapper,
.account-card .progress-text {
    display: none !important;
}

/* Status Line */
.status-line {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    min-height: 24px;
}

.status-text {
    font-weight: 600;
    color: var(--text-accent);
    margin-left: 5px;
}

/* Account Selector Section */
.account-selector-section {
    background: var(--bg-primary);
    border: none;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-raised-hover);
    transition: all 0.3s ease;
}

.account-selector-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-raised);
}

.account-selector-section .tabs {
    margin-bottom: 15px;
}

/* Center blast button */
.account-selector-section>.btn.blast-all {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* Global Section */
.global-section {
    margin-top: 20px;
    background: var(--bg-primary);
    border: none;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-raised-hover);
    transition: all 0.3s ease;
}

.global-section h3,
.global-result h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-raised);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.global-result {
    margin-top: 0;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.global-result h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    font-weight: 700;
    display: block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-raised);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.global-result .result-wrapper {
    overflow-y: auto;
    border-radius: 12px !important;
    border: none !important;
    background: transparent !important;
    margin-top: 20px !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Filter Section */
.filter-section {
    background: var(--bg-primary);
    border: none;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-raised-hover);
}

.filter-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.filter-section-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 16px;
    flex: 1;
}

.filter-section-header h3.valid-label {
    color: var(--text-accent);
    text-align: right;
}

#filterProgress {
    color: var(--text-accent);
    font-weight: 600;
    font-size: 13px;
}

.filter-section-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-input-row {
    display: flex;
    gap: 15px;
}

.filter-actions-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.filter-actions-row .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* Progress Summary Section */
.progress-summary-section {
    background: var(--bg-primary);
    border: none;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-raised-hover);
}

.progress-summary-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-raised);
}

.progress-summary {
    background: #e5e7eb;
    border: none;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3),
        -10px -10px 20px rgba(255, 255, 255, 0.15);
}

.progress-summary h4 {
    color: #60a5fa;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    text-shadow: none;
}

/* Account Progress Item */
.account-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(0, 255, 198, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00ffc6;
    transition: all 0.3s ease;
}

.account-progress:hover {
    background: rgba(0, 255, 198, 0.1);
    transform: translateX(5px);
}

.account-progress span:first-child {
    font-weight: bold;
    color: #eafff5;
    min-width: 60px;
}

.account-progress span:last-child {
    font-size: 12px;
    color: #eafff5;
    text-align: right;
}

/* Capture Variants */
.progress-summary-capture {
    background: rgba(7, 13, 18, 0.95);
    border: 2px solid #00ffc6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
}

.progress-summary-capture h3 {
    color: #00ffc6;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.account-progress-capture {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 10px 0;
    background: rgba(0, 255, 198, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00ffc6;
}

.progress-summary-simple {
    background: rgba(7, 13, 18, 0.95);
    border: 2px solid #00ffc6;
    border-radius: 12px;
    padding: 25px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.progress-summary-simple h3 {
    color: #00ffc6;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: bold;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 20px 30px;
    border-radius: 12px;
    min-width: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.stat-box.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border: 2px solid #4CAF50;
}

.stat-box.failed {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    border: 2px solid #F44336;
}

.stat-box.total {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
    border: 2px solid #2196F3;
}

.stat-box .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.stat-box .count {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-box.success .count {
    color: var(--color-success);
}

.stat-box.failed .count {
    color: var(--color-failed);
}

.stat-box.total .count {
    color: var(--color-progress);
}

.stat-box .label {
    font-size: 14px;
    color: #eafff5;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Utility Card for Button Grouping */
.utility-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 10px 15px;
    margin: 5px auto 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    box-shadow: var(--shadow-inset);
    flex-wrap: wrap;
    align-items: center;
}