 @import url('../student/css/pages/support-ticket.css');
 @import url('../student/css/pages/login.css');
 :root{
    --white:#ffffff;
    --primary:#31b4a4;
    --border_color:#dee2e6;
 }
 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
body{
    overflow-x: hidden;
}
#main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
 .app-footer strong {
    font-weight: 600;
    font-size: 1.1rem;
}

.app-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.app-footer a:hover {
    text-decoration: underline;
}
a{
    text-decoration: none;
    display: inline-block;
    color: var(--primary);
}
ol,ul,menu{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
h1,h2,h3,h4,h5,h6,p{
    line-height: 0.8;
    margin: 0;
}

 /* ========================common css================== */
 .breadcrumb{
    margin-bottom: 0;
 }
 .breadcrumb a{
    color: var(--primary);
 }
 .header_3{
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
 }
 .common_p{
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
 }
.common_btn{
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s;
}
.common_btn:hover{
    background-color: var(--primary);
    color: var(--white);
}
.common_btn.btn-danger:hover{
    background-color: #dc3545;
    color: var(--white);
}
 .form-control:focus,.form-select:focus{
    box-shadow: none;
    border-color: var(--primary);
 }

 #main-content .navbar{
    z-index: 99;
 }
select,option{
    cursor: pointer;
}
.table thead th {
    background-color: #e9ecef;
    border-bottom: 2px solid var(--border_color);
    white-space: nowrap;
}
td {
    white-space: nowrap;
}
.time-slot {
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 768px) {

    .table th,
    .table td {
        font-size: 0.85rem;
    }

    .time-slot {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {

    .table th,
    .table td {
        font-size: 0.75rem;
    }

    .time-slot {
        font-size: 0.7rem;
    }
}

/* =================common responsive table=================== */
@media (max-width: 992px) {
            table .breakpoint_lg {
                display: none;
            }

            table .table_cell {
                display: none;

            }

            .expand_table {
                position: absolute;
                cursor: pointer;
                left: -15px;
                top: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--white) !important;
                width: 18px;
                height: 18px;
                background: var(--primary) !important;
                transform: translateY(-50%);
                -webkit-transform: translateY(-50%);
                -moz-transform: translateY(-50%);
                -ms-transform: translateY(-50%);
                -o-transform: translateY(-50%);
                border-radius: 2px;
                -webkit-border-radius: 2px;
                -moz-border-radius: 2px;
                -ms-border-radius: 2px;
                -o-border-radius: 2px;
            }

            .expand_table span {
                font-size: 12px;
                padding-bottom: 4px;
                font-weight: 600;
            }
        }
    body {
            overflow-x: hidden;
        }
        body.sidebar-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        #sidebar {
            background: #222222;
            color: var(--white);
            height: 100vh;
            width: 340px !important;
            transition: all 0.3s;
            z-index: 1000;
            overflow-y: scroll;
            overflow-x: hidden;
            padding-bottom: 20px;
        }
        #sidebar .sidebar-header {
            position: sticky;
            text-align: center;
            top: 0;
            background: #222222;
            border-bottom: 1px solid var(--border_color);
        }

        #sidebar::-webkit-scrollbar {
            width: 8px;
            /* width of the scrollbar */
        }

        #sidebar::-webkit-scrollbar-track {
            background: #222222;
            border-radius: 2px;
            -webkit-border-radius: 2px;
            -moz-border-radius: 2px;
            -ms-border-radius: 2px;
            -o-border-radius: 2px;
        }

        #sidebar::-webkit-scrollbar-thumb {
            background: #888;
            /* color of the scroll thumb */
            border-radius: 10px;
        }

        #sidebar::-webkit-scrollbar-thumb:hover {
            background: #555;
            /* color when hovered */
        }
        .dropdown-menu.show {
            display: block !important;
}

        /* Large screens (default state) */
        @media (min-width: 768px) {
            #sidebar {
                background: #222222;
                color: var(--white);
                position: sticky;
                top: 0;
            }

            #main-content {
                width: 100%;
            }

            #sidebar.collapsed {
                margin-left: -340px;
            }

            #main-content.expanded {
                width: 100%;
                margin-left: 0;
            }

            /* Desktop dropdown styling */
            .dashboard-dropdown .dropdown-menu {
                position: static !important;
                transform: none !important;
                border: none;
                background: transparent;
                margin-left: 15px;
            }
        }

        /* Small screens */
        @media (max-width: 991.98px) {
            #sidebar {
                position: fixed;
                left: -340px;
                top: 0;
                bottom: 0;
                width: 270px !important;
                overflow-y: auto;
            }

            #sidebar.active {
                left: 0;
                box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
            }

            #main-content {
                width: 100%;

            }


            .dashboard-dropdown .dropdown-menu {
                position: static !important;
                top: 0 !important;
                margin-top: 0 !important;
                margin-left: 0 !important;
                background: #222222;
                min-width: 200px;
                border-radius: 0 5px 5px 0;
                display: none;
                transform: unset !important;
            }

            .dashboard-dropdown.show .dropdown-menu {
                display: block;
            }
        }

        .sidebar-link {
            border-radius: 5px;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .sidebar-link:hover,
        .sidebar-link.active {
            background-color: rgba(13, 110, 253, 0.1);
        }

        .sidebar-link.active {
            /* color: var(--primary) !important; */
            font-weight: 500;
            box-shadow: none;
            border: none;
        }
        .nav-link:focus-visible {
            outline: 0;
            box-shadow: none !important;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }


        @media (max-width: 991.98px) {
            .overlay.active {
                display: block;
            }
        }

        .dashboard-dropdown .dropdown-item {
            color: #adb5bd;
            padding: 8px 15px;
        }

        .dashboard-dropdown .dropdown-item:hover {
            color: var(--white);
            background: transparent;
        }

        .dashboard-dropdown .dropdown-toggle::after {
            margin-left: 0.5em;
            vertical-align: 0.15em;
        }
        .message_dropdown img{
    object-fit: cover;
    width: 40px;
    height: 40px;
}
.message_dropdown .btn,
.notification_dropdown .btn{
    border: none;
    background: transparent;
    position: relative;
    color: #000;
}
.message_dropdown .btn span,
.notification_dropdown .btn span{
    position: absolute;
    top: -2px;
    right: -2px;
    background:var(--primary);
    color: var(--white);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.message_dropdown .dropdown-toggle::after,
.notification_dropdown .dropdown-toggle::after{
    display: none;
}
.notification_dropdown ul,
.message_dropdown ul{
    height: 150px;
    overflow-y: scroll;
}
.no-notifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #6c757d;
  min-width: 220px;
  gap: 6px;
}
.no-notifications i {
  font-size: 26px;
  color: #adb5bd;
}
.no-notifications .fw-semibold {
  font-size: 14px;
}
.no-notifications.small {
  font-size: 12px;
}
.dropdown-item.active, .dropdown-item:active {
    color: var(--white);
    text-decoration: none;
    background-color: unset;
    font-weight: bold;
}
.notification_dropdown .dropdown-item span{
    text-align: end;
}
.dropdown-menu[data-bs-popper] {
    top: 120%;
}

/* ============language selector=================  */
 .language_container {
    max-width: 200px;
    width: 100%;
    text-align: center;
}


/* Language Toggle Styles */
.language-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-option {
    flex: 1;
    padding: 5px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    z-index: 1;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.language-option input,
.language-toggle input {
    display: none;
}

.language-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.language-option .flag {
    font-size: 1.4rem;
}

.language-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: calc(50% - 5px);
    background: linear-gradient(135deg, var(--primary) 0%, #247fa7 100%);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#english:checked~.language-slider {
    left: 5px;
}

#bangla:checked~.language-slider {
    left: calc(50% + 0px);
}

#english:checked~.language-option[for="english"] {
    color: white;
}

#bangla:checked~.language-option[for="bangla"] {
    color: white;
}


/* Animation for the toggle */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.language-option:has(input:checked) {
    animation: pulse 0.5s ease;
}

/* Responsive design */
@media (max-width: 480px) {
    .language_container {
        padding: 25px;
    }

    .language-option span {
        font-size: 10px;
    }
}
/* =================student info card =============== */
.student_info_card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #202c4b;
    color: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -ms-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
}

.student_image{
    height: 100px;
    width: 100px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}
.student_image img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
@media (max-width:500px){
    .student_image{
        height: 60px;
        width: 60px;
    }

}
.student_id {
    background: var(--white);
    color: var(--primary);
    border-radius: 5px;
    padding: 2px 10px;
    width: max-content;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.student-name {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 10px;
}

.student-status {
    display: inline-block;
    padding: 5px 15px;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 20px;
    font-weight: 500;
}

.edit-btn {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.edit-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}


/* ==================todays class scedule card================ */
.schedule-card {
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.schedule-header {
    border-bottom: 1px solid #adb5bd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
}


.schedule-date {
    opacity: 0.8;
    font-size: 14px;
}

.subject-card {
    border-left: 4px solid var(--primary);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}


.subject-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.task-item {
    margin-bottom: 8px;
    padding: 5px 0;
}

.task-time {
    font-weight: 500;
    margin-right: 10px;
}

.task-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}
.status-cancelled{
    background-color: #f8d7da;
    color: #842029;
}

.status-inprogress {
    background-color: #fff3cd;
    color: #664d03;
}

.divider {
    border-top: 1px dashed var(--border_color);
    margin: 15px 0;
}


/* ======================attendence card==================== */
.attendance-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.attendance-header {
    padding: 15px 20px;
}

.stats-card {
    border-radius: 8px;
    padding: 10px 0;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.day-indicator {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 500px) {
    .day-indicator{
       margin-right: 4px;
    }

}
.day-present {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    color: #0f5132;
}

.day-absent {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    color: #842029;
}

.day-halfday {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #664d03;
}
.day-weekend{
    background: var(--white);
    color: #000000;
}

.chart-container {
    height: 320px;
    width: 100%;
    position: relative;
}

.date-range {
    color: #6c757d;
    font-size: 0.9rem;
}

.divider {
    border-top: 1px dashed var(--border_color);
    margin: 20px 0;
}

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

.percentage-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.percentage-label {
    color: #6c757d;
    font-size: 0.9rem;
}


         /* <!-- =================calendar and exam section================ --> */
.compact-calendar {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Reduce calendar header height */
.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0.5em;
    padding: 5px 10px;
}

.fc .fc-toolbar-title {
    font-size: 1rem;
    margin: 0;
}

/* Compact day cells */
.fc .fc-daygrid-day-frame {
    min-height: 30px !important;
    padding: 2px;
}

.fc .fc-daygrid-day-number {
    font-size: 0.8rem;
    padding: 2px;
}

/* Smaller events */
.fc-event {
    font-size: 0.7rem;
    margin: 1px 0;
    padding: 0 2px;
}

/* Hide some elements to save space */
.fc .fc-daygrid-day-events {
    margin: 0;
}

.fc .fc-col-header-cell {
    padding: 2px 0;
}

.fc .fc-col-header-cell-cushion {
    font-size: 0.7rem;
    padding: 2px;
}

/* Compact toolbar buttons */
.fc .fc-button {
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
}


 .exam-card {
      border: 1px solid var(--border_color);
      border-radius: 0.5rem;
      padding: 1rem;
      margin-bottom: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      -webkit-border-radius: 0.5rem;
      -moz-border-radius: 0.5rem;
      -ms-border-radius: 0.5rem;
      -o-border-radius: 0.5rem;
}
.exam-card:last-child{
    margin-bottom: 0;
}
    .badge-time {
      background-color: #f8d7da;
      color: #dc3545;
      font-weight: 500;
    }




    /* ==================leave statistics and exam result section================  */
     .leave-card {
      border: 1px solid var(--border_color);
      border-radius: 0.5rem;
      padding: 1rem;
      margin-bottom: 1rem;
      background-color: #f8f9fa;
    }
    .leave-icon {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .leave-status {
      font-weight: 500;
      padding: 0.25rem 0.75rem;
      border-radius: 0.5rem;
      color: var(--white) !important;
      display: inline-block;
      font-size: 0.85rem;
    }



    /* ====================notice section=================== */
    .notice-section {
            margin: 20px 0 0;
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 8px;
        }
        .notice_container{
            border-left: 3px solid var(--primary);
        }
        .notice-card {
            position: relative;
            display: block;
            color: #000;
            margin-bottom: 15px;
            padding: 10px;
            border: 1px solid var(--border_color);
            border-radius: 5px;
            transition: box-shadow 0.3s;
        }

        .notice-card:hover {
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .notice-card::before{
            content: "";
            position: absolute;
            top: 50%;
            left: -31px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--primary);
        }
        .notice-date {
            font-size: 0.9rem;
            color: #6c757d;
        }

        .notice-title {
            font-weight: 500;
            margin-bottom: 5px;
        }



.fees-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.fees-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
.fee-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}
.fee-item:last-child {
    border-bottom: none;
}
.fee-item:hover {
    background-color: #f8f9fa;
}
.due-fee {
    background-color: #fff8e1;
}
.pay-now-btn {
    white-space: nowrap;
}
.badge-due {
    background-color: #ffc107;
    color: #212529;
}
