/* ============================================
   MAIN CONTROL BOX
   ============================================ */

.main-control-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Control Box Heading */
.control-box-heading {
    width: 100%;
    font-weight: 900;
    margin-bottom: 30px;
    font-size: 32px;
}
.control-box-desc {
    width: 90%;
    font-size: 0.95rem;
    color: #5c6b7a;
}
/* Importance Filter */
.importance-filter-wrapper {
    width: 100%;
    gap: 15px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: end;
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.filter-title {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 26px;
    /* padding-inline:10px ; */
}

.importance-checkboxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: start;
    align-items: start;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
    user-select: none;
    min-width: 140px;
}

.filter-checkbox-item:hover {
    background: #f0f2f5;
    transform: translateY(-1px);
}

.filter-checkbox-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(58, 157, 97, 0.2);
}

.filter-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7d8da1;
    min-width: 25px;
    transition: color 0.3s ease;
}

.filter-checkbox-item.active .filter-count {
    color: #fff;
}

.filter-checkbox-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a5568;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.filter-checkbox-item.active .filter-checkbox-label {
    color: #fff;
}

/* Specific size for English labels to prevent overflow */
html[lang="en"] .filter-checkbox-label {
    font-size: 0.95rem;
}

.filter-checkbox-item .custom-checkbox {
    width: 26px;
    height: 26px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox-item.active .custom-checkbox {
    border-color: #fff;
    background: #fff;
}

.filter-checkbox-item .custom-checkbox i {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-checkbox-item.active .custom-checkbox i {
    opacity: 1;
    transform: scale(1);
}
/* Responsive Filter */
@media (max-width: 768px) {
    .importance-filter-wrapper {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .importance-filter-wrapper {
        justify-content: center;
    }

    .importance-checkboxes {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }

    .filter-checkbox-item {
        min-width: 0;
        padding: 6px 10px;
        gap: 8px;
        flex: 1;
        justify-content: center;
    }

    .filter-count {
        font-size: 1rem;
        min-width: unset;
    }

    .filter-checkbox-label {
        font-size: 0.85rem;
    }

    html[lang="en"] .filter-checkbox-label {
        font-size: 0.75rem;
    }

    .filter-checkbox-item .custom-checkbox {
        width: 20px;
        height: 20px;
    }
    
    .filter-checkbox-item .custom-checkbox i {
        font-size: 0.8rem;
    }
}

/* Controls Wrapper */
.controls-wrapper {
    /* display: flex;
    flex-direction: column;
    gap: 12px; */
}

/* Filter Section */
.filter-section {
    margin-bottom: 15px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.filter-label i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Action Section */
.action-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-section .btn i {
    font-size: 1.1rem;
}

/* Circular Progress */
.progress-circle-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.progress-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 12;
}

.circle-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 12;
    stroke-linecap: round;
    /* stroke-dasharray and stroke-dashoffset handled by JavaScript */
    transition: stroke-dashoffset 0.6s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.progress-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 8px;
}

/* Total Standards Display */
.total-standards-display {
    text-align: center;
    margin-top: 20px;
}

.total-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.total-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .main-control-box {
        padding: 25px;
    }

    .main-control-box .row {
        flex-direction: column-reverse;
    }

    .main-control-box .col-lg-4,
    .main-control-box .col-lg-8 {
        width: 100%;
    }

    .progress-circle-wrapper {
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid #e9ecef;
        flex-direction: row;
        gap: 30px;
    }

    .filter-label {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-control-box {
        padding: 20px;
    }

    .controls-wrapper {
        gap: 12px;
    }

    .filter-section {
        margin-bottom: 12px;
    }

    .filter-label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .progress-circle-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .progress-circle {
        width: 160px;
        height: 160px;
    }

    .progress-percentage {
        font-size: 2rem;
    }

    .action-section {
        flex-direction: column;
    }

    .action-section .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .total-number {
        font-size: 1.8rem;
    }

    .total-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .main-control-box {
        padding: 15px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 8px;
    }

    .controls-wrapper {
        gap: 10px;
    }

    .filter-label {
        font-size: 0.9rem;
    }

    .filter-label svg {
        width: 20px;
        height: 20px;
    }

    .total-number {
        font-size: 1.5rem;
    }

    .total-label {
        font-size: 0.8rem;
    }

    .progress-circle {
        width: 130px;
        height: 130px;
    }

    .progress-percentage {
        font-size: 1.6rem;
    }

    .progress-label {
        font-size: 0.75rem;
    }

    .action-section .btn {
        font-size: 0.9rem;
        padding: 8px 14px;
    }

    .action-section .btn i {
        font-size: 1rem;
    }

    .total-standards-display {
        margin-top: 12px;
    }
}

@media (max-width: 400px) {
    .main-control-box {
        padding: 12px;
    }

    .progress-circle-wrapper {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .progress-circle {
        width: 110px;
        height: 110px;
    }

    .progress-percentage {
        font-size: 1.4rem;
    }

    .progress-label {
        font-size: 0.7rem;
    }

    .total-number {
        font-size: 1.3rem;
    }

    .total-label {
        font-size: 0.75rem;
    }

    .total-standards-display {
        margin-top: 10px;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    .action-section .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}
