﻿.main-content {
    margin-left: 254px;
}

.filter-header-container {
    display: grid;
}

.filter-header {
    margin-bottom: 6px;
    padding: 4px 24px 16px 24px;
}

.filter-title {
    font-size: 26px;
    font-weight: 600;
    color: #453D44;
    margin-bottom: 6px;
}

.filter-description {
    font-size: 17px;
    color: rgba(69, 61, 68, 0.8);
    line-height: 1.5;
    margin: 0;
}


/* ---------- ФИЛТЪР ---------- */
.filter-all-container {
    display: flex;
    gap: 22px;
}

.filter-subject-container {
    display: grid;
    gap: 10px;
}

.filter-section-grade1 {
    background-color: #F9F7F6;
    width: 180px;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.03), inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-section1 {
    display: flex;
    background-color: #F9F7F6;
    border-radius: 16px;
    padding: 12px 14px 4px 14px;
    gap: 6px;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.03), inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.filter-legend {
    font-size: 22px;
    font-weight: 600;
    color: #453D44;
    margin-bottom: 10px;
    margin: 0;
    white-space: nowrap;
}

.checkbox-group1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.checkbox-group2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.text-found-students {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgba(69, 61, 68, 0.7);
}

.text-label-help {
    font-size: 16px;
    font-weight: 400;
    margin-top: 4px;
    color: #453D44;
}

/* ---------- КОНТЕЙНЕР ЗА УЧЕНИЦИТЕ ---------- */
.students-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

/* ---------- КАРТИЧКА НА УЧЕНИКА ---------- */
.student-card1 {
    height: 100%;
    min-height: 260px;
    background-color: #F9F7F6;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.03), inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.subjects-and-label-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.subjects-only-container {
    margin-left: 4px;
}

.student-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ---------- ИНФОРМАЦИЯ ЗА УЧЕНИКА ---------- */
.filter-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.student-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.student-name {
    font-size: 28px;
    font-weight: 500;
    color: #453D44;
}

.student-grade {
    font-size: 16px;
    font-weight: 350;
    padding-top: 1px;
    color: rgba(69, 61, 68, 0.7);
}

/* ---------- ПРЕДМЕТИ ---------- */
.student-subjects p {
    margin: 0.25rem 0;
    font-weight: 500;
}

.subjects-scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
}

    .subjects-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .subjects-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }

/* ---------- БЕЙДЖИ ---------- */
.hidden-checkbox {
    display: none;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 3px;
}

.circle-nonactive {
    background-color: #FFFDFB;
    color: #453D44;
    font-weight: 420;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.circle-active {
    background-color: #B8AEB6;
    color: #FFFDFB;
    font-weight: 428;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.badge {
    padding: 2px 5px;
    border-radius: 8px;
}

.badge-match1 {
    padding: 3px 5px;
    background-color: #B8AEB6;
    color: #FFFDFB;
    font-weight: 420;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-left: 8px;
}

.badge-nonmatch {
    padding: 2px 5px;
    background-color: #FFFDFB;
    color: #453D44;
    font-weight: 400;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.badge-filter-nonactive {
    padding: 4px 7px;
    background-color: #FFFDFB;
    color: #453D44;
    font-size: 16px;
    font-weight: 420;
    margin-bottom: 6px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.badge-filter-active {
    padding: 4px 7px;
    background-color: #B8AEB6;
    color: #FFFDFB;
    font-size: 16px;
    font-weight: 428;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 6px;
    margin-left: 8px;
}


/* ---------- БУТОНИ ---------- */
.sf-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .sf-btn-row button {
        flex: 1;
        min-width: 110px;
    }

.sf-btn-row-noflex button {
    flex: none;
}



.btn-filter-primary {
    width: 190px;
    height: 42px;
    background-color: #70646E;
    color: #FFFDFB;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    margin-top: 8px;
    margin-right: 10px;
    margin-bottom: 16px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-filter-secondary {
    width: 190px;
    height: 42px;
    background-color: #F9F7F6;
    color: #453D44;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 470;
    font-size: 18px;
    margin-top: 8px;
    margin-bottom: 16px;
    margin-top: 16px;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.03), inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn-primary {
    width: 100%;
    height: 40px;
    background-color: #70646E;
    color: #FFFDFB;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 470;
    font-size: 16px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    width: 100%;
    height: 40px;
    background-color: #FFFDFB;
    color: #453D44;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 470;
    font-size: 18px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.btn-success {
    width: 60%;
    height: 40px;
    background-color: #E3EFE1;
    color: #415247;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 470;
    font-size: 18px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-warn {
    width: 60px;
    height: 40px;
    background-color: #F7EBD8;
    color: #6A5840;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 470;
    font-size: 18px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-danger {
    width: 100px;
    height: 40px;
    background-color: #F0DADA;
    color: #6A3A3A;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 470;
    font-size: 18px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary:disabled,
.btn-primary[disabled],
.btn-filter-primary:disabled {
    background-color: #B8AEB6;
    color: #F6F3F1;
}

.btn-secondary:disabled,
.btn-secondary[disabled],
.btn-filter-secondary:disabled {
    background-color: #F4F2EF;
    color: rgba(69, 61, 68, 0.5);
}

/* ---------- КОНТЕЙНЕР ДЛЯ КНОПОК ---------- */
.student-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    margin-bottom: 24px;
}

/* ======================================================
   ТАБЛЕТ
   ====================================================== */
@media (max-width: 1200px) {

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .filter-all-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-section-grade1 {
        width: 100%;
    }

    .filter-section1 {
        width: 100%;
        flex-wrap: wrap;
    }

    .students-container {
        gap: 14px;
    }
}

/* ======================================================
   МАЛЪК ТАБЛЕТ
   ====================================================== */
@media (max-width: 900px) {

    .students-container {
        grid-template-columns: 1fr;
    }

    .student-name {
        font-size: 24px;
    }

    .filter-title {
        font-size: 22px;
    }

    .checkbox-group2 {
        margin-left: 0;
    }

    .subjects-and-label-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ======================================================
   ТЕЛЕФОН
   ====================================================== */
@media (max-width: 640px) {

    .main-content {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .filter-header {
        padding: 0 8px 12px 8px;
    }

    .filter-title {
        font-size: 20px;
    }

    .filter-legend {
        font-size: 18px;
    }

    .checkbox-group1,
    .checkbox-group2 {
        gap: 6px;
    }

    .circle {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .student-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-avatar {
        width: 60px;
        height: 60px;
    }

    .student-name {
        font-size: 20px;
    }

    .student-grade {
        font-size: 14px;
    }
}

/* ======================================================
   МАЛЪК ТЕЛЕФОН
   ====================================================== */
@media (max-width: 480px) {

    .main-content {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .btn-filter-primary,
    .btn-filter-secondary {
        width: 100%;
        margin-right: 0;
    }

    .sf-btn-row-noflex {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-success,
    .btn-danger,
    .btn-warn {
        width: 100%;
    }

    .sf-btn-row {
        flex-direction: column;
    }

    .badge-filter-active,
    .badge-filter-nonactive {
        font-size: 14px;
        padding: 4px 6px;
    }

    .student-card1 {
        padding: 12px;
    }
}

/* ======================================================
   СУПЕР МАЛЪК ТЕЛЕФОН
   ====================================================== */
@media (max-width: 360px) {

    .main-content {
        margin-left: 0;
    }

    .filter-title {
        font-size: 18px;
    }

    .student-name {
        font-size: 18px;
    }

    .filter-section1,
    .filter-section-grade1 {
        padding: 10px;
    }

    .badge {
        font-size: 13px;
    }
}
