/* ========== Default Styling ========== */

body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#teacher_dashboard_header {
    height: var(--header_height);
    background: var(--bg0);
    color: var(--color0);
    width: 100%;
    position: relative;
}

main {
    height: calc(100vh - (var(--header_height) + var(--footer_height)));
    background: var(--bg3);
    overflow: scroll !important;
    scrollbar-width: none !important;
    padding: 10px 15px !important;
    width: 100vw !important;

}

#teacher_dashboard_footer {
    height: var(--footer_height);
    background: var(--bg2);
    position: relative !important;
    padding: 0 10px !important;
    z-index: 1 !important;
}




/* ========== Teacher Dashboard Header ========== */

.teacher_dashboard_home_container {
    overflow: hidden !important;
    width: 100% !important;
}

.teacher_dashboard_logo_container {
    height: 100%;
    gap: 10px;
}

.teacher_dashboard_site_logo {
    background: var(--bg3);
    border-radius: 10px;
    height: 100%;
    width: 100%;
    max-width: 12.8vw;
    overflow: hidden;
}

.teacher_dashboard_site_logo img {
    width: 100%;
}

.teacher_dashboard_site_logo_text {
    color: var(--bg3);
    font-weight: 600;
    font-size: clamp(14px, 5vw, 32px);
    text-align: left;
    width: 70%;
    line-height: 95%;
}

.teacher_dashboard_navmenu_container {
    width: 60%;
    justify-content: right;
    gap: 18px;
}

.teacher_dashboard_navmenu_container i {
    font-size: 27px;
    margin-top: 6px;
    display: block;
}

.teacher_dashboard_searchbox:is(:hover, :focus, :focus-within) .searchbox {
    transform: scale(1);
}

.searchbox {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-radius: 5px;
    overflow: hidden;
    margin: 2px;
    border: 1px solid var(--primary-gradient-end);
    transform: scale(0);
    transition: transform 0.4s ease-in-out;
    z-index: 2;
}

.searchbox input {
    width: 90%;
    height: 40px;
    background: transparent;
    padding: 0 8px;
    font-size: 17px;
}

.searchbox button {
    width: 10%;
    height: 40px;
    border: none;
    outline: none;
    border-left: 1px solid var(--primary-gradient-end);
    background: var(--bg2);
}

.searchbox button i {
    margin: 0;
    color: var(--bg1);
}

.searchbox button:active i {
    transform: scale(0.9);
}

.teacher_dashboard_profile {
    height: 100%;
    position: relative;
}

.teacher_dashboard_profile:is(:hover, :focus, :focus-within) .teacher_profile_menu {
    transform: scale(1);
}






/* ========== Teacher Dashboard Footer ========== */


.teacher_profile_pic {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: var(--bg3);
    overflow: hidden;
}

.teacher_profile_pic img {
    width: 100%;
}

.teacher_dashboard_foot_menu {
    text-decoration: none;
    width: 8vw;
    padding-top: 5px;
}

.teacher_dashboard_foot_menu img {
    width: 100%;
}

.teacher_dashboard_foot_menu span {
    font-size: 12px;
    text-transform: capitalize;
    color: var(--color1);
}




#popupMessage {
    position: fixed;
    top: 15px;
    right: 20px;
    background: #2ecc71;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    display: none;
    z-index: 99999;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}




/* ========== Teacher Dashboard Main ========== */

.teacher_dashboard_carousel {
    width: 100%;
    height: 250px;
    border-radius: var(--border_radius);
}

.carousel-inner {
    background: var(--bg2);
    border: 1.5px solid var(--primary-gradient-end);
    height: 100%;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    padding: 5px 10px;
}

#teacherCarousel button {
    opacity: .2;
}

.carousel-indicators button {
    height: var(--carosol_round) !important;
    width: var(--carosol_round) !important;
    border-radius: 50% !important;
}

.carousel-control {
    opacity: .1 !important;
}

#teacherCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--bg0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.2;
}

#teacherCarousel .carousel-indicators .active {
    background-color: var(--bg0);
    opacity: 1;
}

.teacher_dashboard_freature_container {
    margin-top: 15px;
}

.teacher_dashboard_freature_container h2 {
    text-transform: capitalize;
    color: var(--bg0);
    text-align: left;
    margin-top: 15px !important;
}

.teacher_dashboard_freature_container h2:first-child {
    margin-top: 0;
}

.teacher_dashboard_freatures {
    padding: 10px;
    flex-wrap: wrap;
    background: var(--bg2);
    border-radius: 5px;
    gap: 10px;
}

.teacher_dashboard_freatures a {
    width: 80px;
    height: 80px;
    padding: 10px 14px;
    border-radius: 5px;
    background-color: var(--bg4);
    text-decoration: none;
    border: 1px solid var(--primary-gradient-end);
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center
}

.teacher_dashboard_freatures a img {
    width: 40px;
    object-fit: cover;
}

.teacherdashboard_cards_name {
    font-size: 10px;
    text-align: center;
    width: 100%;
    line-height: 12px;
    margin-top: 4px;
    text-transform: capitalize;
    color: var(--bg0);
}

.carousel-inner {
    padding: 0;
}





/* ========== Teacher Add Batch ========== */

.carousel-inner.carousel_bg {
    background-image: url(../Images/batch_bg.png) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}

.form-floating {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

.form-floating input,
.form-floating select {
    padding: 14px !important;
    font-size: 14px;
    border: 1px solid var(--color2);
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg3);
}

.form-floating label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg3);
    padding: 0 5px;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

.batch_form_container {
    height: 70%;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    gap: 45px;
}

.teacherdashboard_scroll_cards {
    width: 100%;
}

.batch_carousel {
    height: 200px !important;
}

.batch_view {
    background: transparent !important;
    border: none;
}








.back-btn {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    margin-right: 15px;
}

.container {
    max-width: 550px;
    margin: 15px auto;
    padding: 0 12px;
}

.section-card {
    background: white;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #0000bd;
    margin-bottom: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.search-row {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    border: 1.5px solid #0000bd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0000bd;
}

#batchList {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    list-style: none;
    max-height: 160px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#batchList li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

#batchList li:hover {
    background-color: #f0f4ff;
}

.form-group-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-label {
    flex: 0 0 100px;
    font-weight: 500;
    color: #64748b;
    font-size: 12px;
}

.input-field {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--bg4);
    border-radius: 5px;
    font-size: 12px;
    outline: none;
}

.input-field:focus {
    border-color: var(--bg0);
}

.btn-update {
    background: var(--bg0);
    color: var(--color0);
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
    font-size: 13px;
}

@media (max-width: 480px) {
    .form-group-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label {
        margin-bottom: 3px;
        flex: none;
    }

    .input-field {
        width: 100%;
    }
}

#searchInput {
    padding-left: 33px;
}






.modal-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content-custom {
    background-color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 380px;
    /* рж╕рзНржХрзЗржЪ ржЕржирзБржпрж╛рзЯрзА рж╕рж░рзБ ржбрж┐ржЬрж╛ржЗржи */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ЁЯФ╣ рж╕рзНржХрзЗржЪ ржЕржирзБржпрж╛рзЯрзА ржЙржкрж░рзЗрж░ рж╕рзЗржХрж╢ржи (ржЫржмрж┐ + ржирж╛ржо) */
.profile-header-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.modal-left-photo img {
    width: 100px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
}

.profile-title-details {
    flex: 1;
}

.profile-title-details h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.profile-title-details p {
    margin: 2px 0;
    font-size: 14px;
    color: #666;
}

/* ЁЯФ╣ ржбрж┐ржЯрзЗржЗрж▓рж╕ рж▓рж┐рж╕рзНржЯ */
.profile-info-list {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 20px;
}

.profile-info-list p {
    margin: 5px 0;
    font-size: 13.5px;
    color: #444;
    line-height: 1.4;
}

/* ЁЯФ╣ ржмрж╛ржЯржи ржЧрзНрж░рж┐ржб (рж╕рзНржХрзЗржЪрзЗрж░ ржорждрзЛ рзи ржХрж▓рж╛ржорзЗ рзкржЯрж┐ ржмрж╛ржЯржи) */
.modal-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.m-btn {
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #ddd;
    color: #333;
    background: #fcfcfc;
}

.btn-logout {
    color: #d9534f;
    border-color: #f5c6cb;
    background: #fff5f5;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

main {
    overflow-y: auto;
    /*        display: flex;*/
    /*align-items: center;*/
}

/* Container styling */
.container {
    max-width: 600px;
    margin: 10px auto;
    padding: 25px;
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
}

/* Inputs and Selects */
input[type="text"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}


select {
    padding: 8px 10px !important;
}

/* Mobile specific flex row */
.flex-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

/* Form Button */
form button {
    background: var(--color2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
}

form button:hover {
    background: var(--primary-hover);
}

/* Alerts */
.message-success,
.message-error {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Breakpoints */
@media (max-width: 500px) {
    .flex-row {
        grid-template-columns: 1fr;
        /* মোবাইল এ সব নিচে নিচে আসবে */
        gap: 18px;
    }

    .container {
        padding: 15px;
        margin: 5px auto;
    }

    h2 {
        font-size: 1.3rem;
    }
}

.massage_container {
    position: absolute;
    top: 9.5vh;
    right: 20vw;
}


body {
    background: #f8f9fa;
    font-size: 0.85rem;
}

.filter-container {
    max-width: 500px;
    margin: 0 auto 25px auto;
    padding: 10px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.batch-card {
    border: none;
    border-radius: 12px;
    background: #eef2f7;
    transition: all 0.3s ease;
}

.batch-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
}

.status-active {
    color: #28a745;
    font-weight: bold;
    font-size: 0.7rem;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.7rem;
}

.status-complete {
    color: #6c757d;
    font-weight: bold;
    font-size: 0.7rem;
}

.btn-custom {
    font-size: 0.75rem;
    padding: 5px;
    border-radius: 6px;
}

.label-text {
    font-size: 0.65rem;
    color: #7f8c8d;
    text-transform: uppercase;
}

.info-text {
    color: #34495e;
    font-weight: 600;
    font-size: 0.8rem;
}







.student-card {
    border-radius: 12px;
    background: #eef2f7;
    transition: 0.3s;
}

.student-card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.status-active {
    color: #28a745;
    font-weight: bold;
    font-size: .7rem;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
    font-size: .7rem;
}

.status-complete {
    color: #6c757d;
    font-weight: bold;
    font-size: .7rem;
}

.label-text {
    font-size: .65rem;
    color: #ff5500;
    text-transform: uppercase;
}

.info-text {
    font-size: .7rem;
}

.student-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.batch-list {
    max-height: 180px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.batch-item {
    cursor: pointer;
    padding: 6px 10px;
}

.batch-item:hover {
    background: #e9ecef;
}

.dflexsb {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}