.remove-elective-subject {
    position: absolute;
    right: 20px;
    margin-top: 3px;
}

#external-events {
    z-index: 2;
    width: 150px;
    padding: 0 10px;
    border: 1px solid #ccc;
    background: #eee;
}

#external-events .fc-event {
    cursor: move;
    margin: 3px 0;
    height: 45px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.fc-customButton-button {
    font-size: 13px !important;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateY(-50%);
}


.form-group {
    margin-bottom: 1rem;
}

.form-group > label {
    margin-bottom: 10px;
}

#delete-modal .modal-footer > .btn {

    border-radius: 3px !important;
    padding: 0 8px !important;
    font-size: 15px;
}

.fc-scroller {
    overflow-y: hidden !important;
}

.context-menu {
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    padding: 5px;
}

.context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.context-menu ul > li {
    display: block;;
    padding: 5px 15px;
    list-style-type: none;
    color: #333;
    cursor: pointer;
    margin: 0 auto;
    transition: 0.10s;
    font-size: 13px;
}

.context-menu ul > li:hover {
    color: #fff;
    background-color: #007bff;
    border-radius: 2px;
}

/*.fa, .fas {*/
/*    font-size: 13px;*/
/*    margin-right: 4px;*/
/*}*/

.no-header-toolbar .fc-header-toolbar.fc-toolbar {
    margin-top: 0;
    margin-bottom: 0;
}

.fc-h-event {
    border: none;
}

.remove-timetable {
    padding: 2px 3px;
}

.remove-timetable:hover {
    background: white;
    color: black;
    border-radius: 10px;
}

label.filter-menu {
    font-size: 13px;
    color: #7c7c7c;
    font-weight: 500;
    position: absolute;
    top: -8px;
    /*left: 27px;*/
    /*left: 1%;*/
    background: #fff;
    /*margin-bottom: 0;*/
    margin-left: 5px;
    padding: 0 5px;
    z-index: 99;
    border-radius: 20px;
}

/*.select2-container--default.select2-container--focus .select2-selection--multiple {*/
/*    height: 45px;*/
/*}*/

/*.select2-container .select2-selection--multiple {*/
/*    min-height: 45px;*/
/*}*/

.w-fit-content {
    width: fit-content;
}

.select2-container--default .select2-selection--single {
    padding: 0.94rem 0.6rem !important;
}

.select2-container--default .select2-selection--multiple {
    padding: 0.34rem 0.6rem !important;
}

.select2-search__field::placeholder {
    color: #444;
    font-size: 0.8125rem;
}

.asColorPicker-alpha {
    display: none;
}

.remove-number-increment::-webkit-inner-spin-button,
.remove-number-increment::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.total_paidable_amount {
    background-color: lightgray;
}
.dashboard-description {
    font-size: 13px;
}
.v-scroll {
    height: 385px;
    overflow-y: scroll;
}
.custom-card-body {
    padding: 1.25rem !important;
}
.image-tile img {
    height: 200px;
    object-fit: cover;
}
.text-wrap div {
    white-space: normal !important;
}

.package-type-badge {
    position: absolute;
    left: auto;
    right: -10px;
    clip-path: polygon(50% 0%,100% 0%,100% 100%,0% 100%,14% 52%,0% 0%);
    width: 130px;
    height: 38px;
    top: 8px;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.package-type-badge{
    right: -2px;
}

.postpaid-color {
    background: var(--primary-color);
}
.prepaid-color {
    background: var(--secondary-color);
}

.addon-border-primary {
    overflow: hidden;
}
.addon-ribbon {
    font: bold 15px sans-serif;
    color: #333;
    text-align: center;
    -webkit-transform: rotate(-45deg);
    -moz-transform:    rotate(-45deg);
    -ms-transform:     rotate(-45deg);
    -o-transform:      rotate(-45deg);
    position: absolute;
    padding: 7px 0;
    top: 15px;
    left: -30px;
    width: 120px;
    background-color: #ff0000;
    color: #fff;
}
.sidebar .nav .nav-item .nav-link i.menu-icon {
    margin-left: 5px !important;
    width: 30px;
}
.sidebar .nav .nav-item {
    padding: 0 1.25rem !important;
}
@media (min-width: 992px) {
    .sidebar-icon-only .sidebar .nav .nav-item {
        position: relative;
        padding: 0 !important;
    }
}
.sidebar .nav .nav-item .nav-link i.menu-arrow {
    font-size: 1.5rem !important;
}
.student-id-card-demo {
    position: fixed;
    width: -webkit-fill-available;
    margin-right: 20px;
}

.action-column-dropdown-menu {
    left: -2rem !important;
}
.action-column-menu {

    /* position: absolute; */
    /* transform: translate(-50%, -50%); */

    /* position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1000; */

    /* top: 50%;
    left: 50%; */
}

.action-td-cell {
    /* position: absolute; */
    /* border: 0px !important; */
    /* top: 40px; */
}

































/* Main nav item styling */
.nav-item {
    position: relative;
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #2c3e50 !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link[aria-expanded="true"] {
    background: linear-gradient(145deg, #4a90e2 0%, #2c3e50 100%);
    color: white !important;
}

/* Icon styling */
.menu-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    color: #4a90e2;
    transition: color 0.3s ease;
}

.nav-link[aria-expanded="true"] .menu-icon {
    color: #fff;
}

.menu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.nav-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
}

.menu-title {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: capitalize;
}

/* Sub-menu styling */
.sub-menu {
    margin-left: 12px;
    border-left: 2px solid #e9ecef;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.sub-menu .nav-link {
    background: transparent;
    padding: 8px 15px;
    color: #6c757d !important;
    box-shadow: none;
    font-size: 0.9rem;
}

.sub-menu .nav-link:hover {
    color: #4a90e2 !important;
    background: rgba(74, 144, 226, 0.05);
    transform: translateX(4px);
}

.sub-menu .nav-link::before {
    content: '';
    position: absolute;
    left: -2px;
    width: 2px;
    height: 0;
    background: #4a90e2;
    transition: height 0.3s ease;
}

.sub-menu .nav-link:hover::before {
    height: 60%;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
    .sub-menu {
        margin-left: 0;
        border-left: none;
        padding-left: 20px;
    }

    .nav-link {
        padding: 12px 15px;
    }
}

.menu-icon{
    color: #4CAF50 !important;
}


.nav-link[aria-expanded="true"] .menu-icon{
    color: #fff !important;
}

.nav-profile .nav-link[aria-expanded="true"]{
    background: none !important;
}


.navbar-dropdown{
    margin-left: -100px !important;
}


p.dropdown-item:first-child {
    font-weight: 600 !important;
    color: #2d3748 !important;
    cursor: default !important;
    padding: 0.4rem 1.5rem !important;
    text-align: center !important;
    margin-bottom: -1rem !important; /* Tighten space below name */
    margin-left: 2rem !important;
    border-bottom: none !important;
}

/* Light gray email with tight spacing */
p.dropdown-item:last-child {
    font-weight: 300 !important;
    color: #9ca3af !important;  /* Lighter gray color */
    font-size: 0.875rem !important;
    cursor: default !important;
    padding: 0.4rem 1.5rem !important;
    margin-top: -0.5rem !important;  /* Tighten space above email */
    margin-bottom: 0.25rem !important;
}

/* Remove hover effects for both */
p.dropdown-item:hover {
    background-color: transparent !important;
}

/* Language dropdown styling */
    .nav-lang .dropdown-toggle {
        padding: 8px;
        transition: all 0.3s ease;
    }

    .nav-lang .dropdown-toggle:hover {
        background: rgba(0, 128, 0, 0.1);
        border-radius: 50%;
    }

    .nav-lang .fa-language {
        font-size: 1.5rem;
        vertical-align: middle;
    }

    .nav-lang .dropdown-menu {
        min-width: 180px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }

    .nav-lang .preview-item {
        padding: 0.75rem 1.5rem;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
    }

    .nav-lang .preview-item:hover {
        background: #f8f9fa;
        transform: translateX(2px);
    }

    .nav-lang .preview-item-content h6 {
        font-size: 0.9rem;
        color: #333;
        margin-bottom: 0;
        font-weight: 500;
    }

    .nav-lang .dropdown-divider {
        margin: 0.25rem 0;
    }

    /* Flag icon styling (optional) */
    .nav-lang .preview-thumbnail {
        width: 24px;
        margin-right: -10px;
    }

    .nav-lang .preview-thumbnail img {
        width: 100%;
        border-radius: 3px;
    }

    /* Active language highlight */
    .nav-lang .dropdown-item.active {
        background-color: #e9f5e9;
        position: relative;
    }

    .nav-lang .dropdown-item.active::after {
        content: "✓";
        color: green;
        position: absolute;
        right: 15px;
    }



    .nav-profile {
          position: !important;
          margin-left: 20px;
      }

      .nav-profile-img {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          overflow: hidden;
          border: 2px solid #fff;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
          transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .nav-profile-img:hover {
          transform: scale(1.05);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }

      .nav-profile-img img {
          width: 100%;
          height: 100%;
          object-fit: cover;
      }

      .nav-profile .dropdown-menu {
          min-width: 200px;
          border: none;
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
          border-radius: 12px;
          padding: 0.5rem 0;
          overflow: hidden;
          top: 100% !important; /* Positions menu below parent */
          position: absolute !important;
          right: 0 !important;
          left: auto !important;
          transform-origin: top right !important;
          margin-top: 0px !important;
      }

      .nav-profile .dropdown-item {
          padding: 0.75rem 1.5rem;
          font-size: 0.9rem;
          color: #4a4a4a;
          transition: all 0.2s ease;
          display: flex;
          align-items: center;
      }

      .nav-profile .dropdown-item:hover {
          background: #f8f9ff;
          padding-left: 1.75rem;
      }

      .nav-profile .dropdown-item i {
          width: 20px;
          margin-right: 12px;
          font-size: 1rem;
          color: #666;
      }

      .nav-profile .dropdown-divider {
          margin: 0.25rem 1.5rem;
          border-color: #f0f0f0;
      }

      .nav-profile p.dropdown-item {
          font-weight: 600;
          color: #2c2c2c;
          font-size: 1rem;
          margin-bottom: 0;
          cursor: default;
      }

      .nav-profile p.dropdown-item:first-child {
          padding-top: 1rem;
      }

      .nav-profile p.dropdown-item:nth-child(2) {
          text-align: center !important;
          font-weight: 400;
          color: #666;
          font-size: 0.85rem;
          padding-bottom: 1rem;
          align-items: center !important;
      }

      /* Special icon colors */
      .nav-profile .dropdown-item:hover i {
          color: #4a90e2;
      }

      .nav-profile .fa-sign-out { color: #4a90e2 !important; }
      .nav-profile .fa-refresh { color: #00c853 !important; }
      .nav-profile .fa-user { color: #666 !important; }

      /* Dropdown arrow */
      .nav-profile .dropdown-menu::before {
          content: '';
          position: absolute;
          top: -6px;
          right: 12px;
          width: 12px;
          height: 12px;
          background: white;
          transform: rotate(45deg);
          box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.03);
      }




.nav-profile-img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #4a90e2; /* Default color */
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: white;
        text-transform: uppercase;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .nav-profile-img:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-profile-img .initials {
        font-size: 1rem;
        line-height: 1;
    }

    .nav-profile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        position: absolute;
        top: 0;
        left: 0;
    }
















.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.custom-card-body {
    padding: 1.5rem;
}

.card-header-container {
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

.card-title i {
    color: #4a90e2;
}

.attendance-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.375rem 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.attendance-dropdown:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    background-color: #ffffff;
}

.chart-container {
    height: 280px;
    min-height: 280px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header-container .row > div {
        margin-bottom: 0.75rem;
    }

    .attendance-dropdown {
        width: 100%;
    }

    .chart-container {
        height: 240px;
    }
}

/* Loading state for chart */
.chart-container:empty::after {
    content: "Loading attendance data...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #94a3b8;
    font-size: 0.875rem;
}


.custom-card-body{
    min-width: 210px !important;

}


.ms-3 > div:first-child {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ms-3 h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin: 0.5rem 0;
}

.ml-auto[src*="images/"] {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}



.auth{
    background: #A6A6A6 !important;
}

#signinWelcome{
    text-align: center;
    font-size: 2.2rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1;
    margin: 0.5rem 0;
}


#frmLogin {
        max-width: 500px;
        margin: 0 auto;
        padding: 2rem;
    }

    /* Form Labels */
    .form-group label {
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.5rem;
        display: block;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Input Fields */
    .form-control {
        border: 2px solid #e2e8f0;
        padding: 1rem;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .form-control:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
    }

    /* Password Toggle */
    #togglePasswordShowHide {
        cursor: pointer;
        background: #f7fafc;
        border: 2px solid #e2e8f0;
        border-left: none;
        transition: all 0.3s ease;
    }

    #togglePasswordShowHide:hover {
        background: #edf2f7;
    }

    /* Login Button */
    #login_btn {
        background: #00AFEF;
        color: white;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: none;
    }

    #login_btn:hover {
        background: #2b6cb0;
        transform: translateY(-1px);
    }

    /* Links */
    .auth-link {
        color: #4a90e2 !important;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .auth-link:hover {
        color: #2b6cb0 !important;
        text-decoration: underline;
    }

    /* Sign Up Section */
    .text-blue {
        color: #4a90e2 !important;
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .text-blue:hover {
        background: #f7fafc;
        text-decoration: none;
        color: #2b6cb0 !important;
    }

    /* Input Group Animation */
    .input-group:focus-within {
        transform: translateY(-1px);
    }

    /* Responsive Design */
    @media (max-width: 576px) {
        #frmLogin {
            padding: 1.5rem;
            margin: 1rem;
        }

        .form-control {
            padding: 0.75rem;
        }
    }
