 @import url('./pages/support-ticket.css');
 @import url('./pages/course_material.css');
 @import url('./pages/login.css');

 :root{
    --white:#ffffff;
    --primary:#2e89bb;
    --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 div{
    font-size: 13px;
}
 .app-footer strong {
    font-weight: 600;
}

.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;
}
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);
    font-weight: 500;
 }
 .header_3{
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
 }
 .common_p{
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
 }
 .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;
    }
}
@media (min-width:992px) {
     main{
        padding: 0 20px  !important;
    }
}
/* =================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: #202c4b;
    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: #202c4b;
    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 {
        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;
        width: 270px !important;
        left: -340px;
        top: 0;
        bottom: 0;
        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: #202c4b;
        min-width: 200px;
        border-radius: 0 5px 5px 0;
        display: none;
        transform: unset !important;
        -webkit-border-radius: 0 5px 5px 0;
        -moz-border-radius: 0 5px 5px 0;
        -ms-border-radius: 0 5px 5px 0;
        -o-border-radius: 0 5px 5px 0;
}

    .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 {
    font-weight: 500;
}
    .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;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s;
}

.dashboard-dropdown .dropdown-item:hover {
    color: var(--white);
    background: transparent;
}
.dropdown-item.active, .dropdown-item:active {
    color: var(--white);
    text-decoration: none;
    background-color: unset;
    font-weight: bold;
}
.dashboard-dropdown .dropdown-item.active:hover {
    color: var(--white);
}

.dashboard-dropdown .dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.15em;
        transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s;
}
.dashboard-dropdown .dropdown-toggle.show::after{
    transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    -moz-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    -o-transform: rotate(-180deg);
}
.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;
}

.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%, #162f3a 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;
}
@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);
    color: 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;
}
.class-schedules{
    height: 400px;
    overflow-y: scroll;
}

.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;
    margin-bottom: 20px;
}

.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;
}

.event_cards_container{
    height: 400px;
    overflow-y: scroll;
}
 .event-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;
    }


