  * {
      margin: 0;
      padding: 0;
  }

  .login-container {
      max-width: 1000px;
      height: 90vh;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  /* Left (blue) section */
  .login-left {
      background: linear-gradient(135deg, #304FFE, #536DFE);
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 60px;
  }

  .login-left h1 {
      font-size: 2.8rem;
      font-weight: 700;
  }

  .login-left p {
      font-size: 1.1rem;
      color: #dbe2ff;
      margin-top: 10px;
  }

  .login-right {
      background-color: #fff;
      padding: 60px 50px;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }

  .form-label {
      font-weight: 600;
  }

  .btn-primary {
      background-color: #304FFE;
      border: none;
      font-size: 1.1rem;
      padding: 12px;
      border-radius: 8px;
  }

  .btn-primary:hover {
      background-color: #1e40ff;
  }

  .text-primary {
      color: #304FFE !important;
  }

  @media (max-width: 768px) {
      .login-left {
          display: none;
      }

      .login-right {
          padding: 40px 30px;
      }
  }


  .frmbox {
      box-sizing: border-box;
      width: 100%;
      /* uses available width */
      /* won't grow beyond this */
      margin: 24px auto;
      /* center horizontally, give vertical space */
      padding: 0px 20px 20px 20px;
      /* inner spacing */
      /* border-radius: 12px; */
      background: #fff;
      transition: transform .18s ease, box-shadow .18s ease;
  }

  .select2-container .select2-selection--single {
      height: calc(2.6rem + 2px);
      padding: 0.4rem 1rem;
      border: 1px solid #d1d5db;
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      background: linear-gradient(180deg, #ffffff, #f9fafb);
      transition: all 0.2s ease-in-out;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
      color: #111827;
      font-size: 0.95rem;
      font-weight: 500;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
      height: 100%;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      position: absolute;
      transition: transform 0.2s ease;
  }

  .select2-container--open .select2-selection__arrow {
      transform: translateY(-50%) rotate(180deg);
  }

  /* --- Hover & Focus States --- */
  .select2-container--default .select2-selection--single:hover {
      border-color: #0d6efd;
      box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
  }

  .select2-container--default .select2-selection--single:focus,
  .select2-container--default.select2-container--focus .select2-selection--single {
      border-color: #0d6efd;
      box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  }

  /* --- Dropdown List --- */
  .select2-dropdown {
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      background-color: #fff;
      padding: 0.25rem 0;
      animation: fadeIn 0.15s ease-in-out;
  }

  .select2-results__option {
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
      color: #374151;
      transition: background 0.2s ease, color 0.2s ease;
  }

  .select2-results__option--highlighted {
      background-color: #0d6efd;
      color: #fff;
      border-radius: 0.35rem;
  }

  /* --- Multiple Select --- */
  .select2-container .select2-selection--multiple {
      min-height: calc(2.6rem + 2px);
      border: 1px solid #d1d5db;
      border-radius: 0.5rem;
      padding: 0.25rem;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      background: linear-gradient(180deg, #ffffff, #f9fafb);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .select2-container--default .select2-selection--multiple .select2-selection__choice {
      background-color: #0d6efd;
      color: #fff;
      font-size: 0.85rem;
      font-weight: 500;
      border: none;
      padding: 0.25rem 0.6rem;
      margin: 0.2rem;
      border-radius: 1rem;
      box-shadow: 0 2px 5px rgba(13, 110, 253, 0.25);
      transition: background 0.2s ease;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
      background-color: #0b5ed7;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
      color: #fff;
      margin-right: 0.3rem;
      font-weight: bold;
      cursor: pointer;
      transition: opacity 0.2s ease;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
      opacity: 0.8;
  }

  /* --- Animations --- */
  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(-5px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* **********************************
Reset CSS
************************************** */

  html,
  body,
  div,
  span,
  applet,
  object,
  iframe,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  blockquote,
  pre,
  a,
  abbr,
  acronym,
  address,
  big,
  cite,
  code,
  del,
  dfn,
  em,
  img,
  ins,
  kbd,
  q,
  s,
  samp,
  small,
  strike,
  strong,
  sub,
  sup,
  tt,
  var,
  b,
  u,
  i,
  center,
  dl,
  dt,
  dd,
  ol,
  ul,
  li,
  fieldset,
  form,
  label,
  legend,
  table,
  caption,
  tbody,
  tfoot,
  thead,
  tr,
  th,
  td,
  article,
  aside,
  canvas,
  details,
  embed,
  figure,
  figcaption,
  footer,
  header,
  hgroup,
  menu,
  nav,
  output,
  ruby,
  section,
  summary,
  time,
  mark,
  audio,
  video {
      margin: 0;
      padding: 0;
      border: 0;
      font-size: 100%;
      font: inherit;
      vertical-align: baseline;
  }


  /* HTML5 display-role reset for older browsers */

  article,
  aside,
  details,
  figcaption,
  figure,
  footer,
  header,
  hgroup,
  menu,
  nav,
  section {
      display: block;
  }

  body {
      line-height: 1.5;
  }

  ol,
  ul {
      list-style: none;
  }

  blockquote,
  q {
      quotes: none;
  }

  blockquote:before,
  blockquote:after,
  q:before,
  q:after {
      content: '';
      content: none;
  }

  table {
      border-collapse: collapse;
      border-spacing: 0;
  }


  /********************************
 Typography Style
******************************** */

  body {
      margin: 0;
      font-family: 'Open Sans', sans-serif;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
  }

  html {
      min-height: 100%;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
  }

  h1 {
      font-size: 36px;
  }

  h2 {
      font-size: 30px;
  }

  h3 {
      font-size: 26px;
  }

  h4 {
      font-size: 22px;
  }

  h5 {
      font-size: 18px;
  }

  h6 {
      font-size: 16px;
  }

  p {
      font-size: 15px;
  }

  a {
      text-decoration: none;
      font-size: 15px;
  }

  * {
      margin-bottom: 0;
  }


  /* *******************************
message-area
******************************** */

  .message-area {
      height: 100vh;
      overflow: hidden;
      padding: 30px 0;
      background: #f5f5f5;
  }

  .chat-area {
      position: relative;
      width: 100%;
      background-color: #fff;
      border-radius: 0.3rem;
      height: 90vh;
      overflow: hidden;
      min-height: calc(100% - 1rem);
  }

  .chatlist {
      outline: 0;
      height: 100%;
      overflow: hidden;
      width: 300px;
      float: left;
      padding: 15px;
  }

  .chat-area .modal-content {
      border: none;
      border-radius: 0;
      outline: 0;
      height: 100%;
  }

  .chat-area .modal-dialog-scrollable {
      height: 100% !important;
  }

  .chatbox {
      width: auto;
      overflow: hidden;
      height: 100%;
      border-left: 1px solid #ccc;
  }

  .chatbox .modal-dialog,
  .chatlist .modal-dialog {
      max-width: 100%;
      margin: 0;
  }

  .msg-search {
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .chat-area .form-control {
      display: block;
      width: 80%;
      padding: 0.375rem 0.75rem;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.5;
      color: #222;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid #ccc;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      border-radius: 0.25rem;
      transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  }

  .chat-area .form-control:focus {
      outline: 0;
      box-shadow: inherit;
  }

  a.add img {
      height: 36px;
  }

  .chat-area .nav-tabs {
      border-bottom: 1px solid #dee2e6;
      align-items: center;
      justify-content: space-between;
      flex-wrap: inherit;
  }

  .chat-area .nav-tabs .nav-item {
      width: 100%;
  }

  .chat-area .nav-tabs .nav-link {
      width: 100%;
      color: #180660;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.5;
      text-transform: capitalize;
      margin-top: 5px;
      margin-bottom: -1px;
      background: 0 0;
      border: 1px solid transparent;
      border-top-left-radius: 0.25rem;
      border-top-right-radius: 0.25rem;
  }

  .chat-area .nav-tabs .nav-item.show .nav-link,
  .chat-area .nav-tabs .nav-link.active {
      color: #222;
      background-color: #fff;
      border-color: transparent transparent #000;
  }

  .chat-area .nav-tabs .nav-link:focus,
  .chat-area .nav-tabs .nav-link:hover {
      border-color: transparent transparent #000;
      isolation: isolate;
  }

  .chat-list h3 {
      color: #222;
      font-size: 16px;
      font-weight: 500;
      line-height: 1.5;
      text-transform: capitalize;
      margin-bottom: 0;
  }

  .chat-list p {
      color: #343434;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.5;
      text-transform: capitalize;
      margin-bottom: 0;
  }

  .chat-list a.d-flex {
      margin-bottom: 15px;
      position: relative;
      text-decoration: none;
  }

  .chat-list .active {
      display: block;
      content: '';
      clear: both;
      position: absolute;
      bottom: 3px;
      left: 34px;
      height: 12px;
      width: 12px;
      background: #00DB75;
      border-radius: 50%;
      border: 2px solid #fff;
  }

  .msg-head h3 {
      color: #222;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.5;
      margin-bottom: 0;
  }

  .msg-head p {
      color: #343434;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.5;
      text-transform: capitalize;
      margin-bottom: 0;
  }

  .msg-head {
      padding: 15px;
      border-bottom: 1px solid #ccc;
  }

  .moreoption {
      display: flex;
      align-items: center;
      justify-content: end;
  }

  .moreoption .navbar {
      padding: 0;
  }

  .moreoption li .nav-link {
      color: #222;
      font-size: 16px;
  }

  .moreoption .dropdown-toggle::after {
      display: none;
  }

  .moreoption .dropdown-menu[data-bs-popper] {
      top: 100%;
      left: auto;
      right: 0;
      margin-top: 0.125rem;
  }

  .msg-body ul {
      overflow: hidden;
  }

  .msg-body ul li {
      list-style: none;
      margin: 15px 0;
  }

  .msg-body ul li.sender {
      display: block;
      width: 100%;
      position: relative;
  }

  .msg-body ul li.sender:before {
      display: block;
      clear: both;
      content: '';
      position: absolute;
      top: -6px;
      left: -7px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 12px 15px 12px;
      border-color: transparent transparent #f5f5f5 transparent;
      -webkit-transform: rotate(-37deg);
      -ms-transform: rotate(-37deg);
      transform: rotate(-37deg);
  }

  .msg-body ul li.sender p {
      color: #000;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 400;
      padding: 15px;
      background: #f5f5f5;
      display: inline-block;
      border-bottom-left-radius: 10px;
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
      margin-bottom: 0;
  }

  .msg-body ul li.sender p b {
      display: block;
      color: #180660;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 500;
  }

  .msg-body ul li.repaly {
      display: block;
      width: 100%;
      text-align: right;
      position: relative;
  }

  .msg-body ul li.repaly:before {
      display: block;
      clear: both;
      content: '';
      position: absolute;
      bottom: 15px;
      right: -7px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 12px 15px 12px;
      border-color: transparent transparent #4b7bec transparent;
      -webkit-transform: rotate(37deg);
      -ms-transform: rotate(37deg);
      transform: rotate(37deg);
  }

  .msg-body ul li.repaly p {
      color: #fff;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 400;
      padding: 15px;
      background: #4b7bec;
      display: inline-block;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      border-bottom-left-radius: 10px;
      margin-bottom: 0;
  }

  .msg-body ul li.repaly p b {
      display: block;
      color: #061061;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 500;
  }

  .msg-body ul li.repaly:after {
      display: block;
      content: '';
      clear: both;
  }

  .time {
      display: block;
      color: #000;
      font-size: 12px;
      line-height: 1.5;
      font-weight: 400;
  }

  li.repaly .time {
      margin-right: 20px;
  }

  .divider {
      position: relative;
      z-index: 1;
      text-align: center;
  }

  .msg-body h6 {
      text-align: center;
      font-weight: normal;
      font-size: 14px;
      line-height: 1.5;
      color: #222;
      background: #fff;
      display: inline-block;
      padding: 0 5px;
      margin-bottom: 0;
  }

  .divider:after {
      display: block;
      content: '';
      clear: both;
      position: absolute;
      top: 12px;
      left: 0;
      border-top: 1px solid #EBEBEB;
      width: 100%;
      height: 100%;
      z-index: -1;
  }

  .send-box {
      padding: 15px;
      border-top: 1px solid #ccc;
  }

  .send-box form {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 15px;
  }

  .send-box .form-control {
      display: block;
      width: 85%;
      padding: 0.375rem 0.75rem;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.5;
      color: #222;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid #ccc;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      border-radius: 0.25rem;
      transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  }

  .send-box button {
      border: none;
      background: #3867d6;
      padding: 0.375rem 5px;
      color: #fff;
      border-radius: 0.25rem;
      font-size: 14px;
      font-weight: 400;
      width: 24%;
      margin-left: 1%;
  }

  .send-box button i {
      margin-right: 5px;
  }

  .send-btns .button-wrapper {
      position: relative;
      width: 125px;
      height: auto;
      text-align: left;
      margin: 0 auto;
      display: block;
      background: #F6F7FA;
      border-radius: 3px;
      padding: 5px 15px;
      float: left;
      margin-right: 5px;
      margin-bottom: 5px;
      overflow: hidden;
  }

  .send-btns .button-wrapper span.label {
      position: relative;
      z-index: 1;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      width: 100%;
      cursor: pointer;
      color: #343945;
      font-weight: 400;
      text-transform: capitalize;
      font-size: 13px;
  }

  #upload {
      display: inline-block;
      position: absolute;
      z-index: 1;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      opacity: 0;
      cursor: pointer;
  }

  .send-btns .attach .form-control {
      display: inline-block;
      width: 120px;
      height: auto;
      padding: 5px 8px;
      font-size: 13px;
      font-weight: 400;
      line-height: 1.5;
      color: #343945;
      background-color: #F6F7FA;
      background-clip: padding-box;
      border: 1px solid #F6F7FA;
      border-radius: 3px;
      margin-bottom: 5px;
  }

  .send-btns .button-wrapper span.label img {
      margin-right: 5px;
  }

  .button-wrapper {
      position: relative;
      width: 100px;
      height: 100px;
      text-align: center;
      margin: 0 auto;
  }

  button:focus {
      outline: 0;
  }

  .add-apoint {
      display: inline-block;
      margin-left: 5px;
  }

  .add-apoint a {
      text-decoration: none;
      background: #F6F7FA;
      border-radius: 8px;
      padding: 8px 8px;
      font-size: 13px;
      font-weight: 400;
      line-height: 1.2;
      color: #343945;
  }

  .add-apoint a svg {
      margin-right: 5px;
  }

  .chat-icon {
      display: none;
  }

  .closess i {
      display: none;
  }



  @media (max-width: 767px) {
      .chat-icon {
          display: block;
          margin-right: 5px;
      }

      .chatlist {
          width: 100%;
      }

      .chatbox {
          width: 100%;
          position: absolute;
          left: 1000px;
          right: 0;
          background: #fff;
          transition: all 0.5s ease;
          border-left: none;
      }

      .showbox {
          left: 0 !important;
          transition: all 0.5s ease;
      }

      .msg-head h3 {
          font-size: 14px;
      }

      .msg-head p {
          font-size: 12px;
      }

      .msg-head .flex-shrink-0 img {
          height: 30px;
      }

      .send-box button {
          width: 28%;
      }

      .send-box .form-control {
          width: 70%;
      }

      .chat-list h3 {
          font-size: 14px;
      }

      .chat-list p {
          font-size: 12px;
      }

      .msg-body ul li.sender p {
          font-size: 13px;
          padding: 8px;
          border-bottom-left-radius: 6px;
          border-top-right-radius: 6px;
          border-bottom-right-radius: 6px;
      }

      .msg-body ul li.repaly p {
          font-size: 13px;
          padding: 8px;
          border-top-left-radius: 6px;
          border-top-right-radius: 6px;
          border-bottom-left-radius: 6px;
      }
  }

  .custom-multiselect-container {
      position: relative;
      display: inline-block;
      width: 100%;
      max-width: 400px;
  }

  .custom-multiselect-display {
      border: 2px solid #007bff;
      border-radius: 10px;
      padding: 8px 12px;
      background: #f8f9fa;
      cursor: pointer;
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      min-height: 45px;
      align-items: center;
  }

  .custom-multiselect-display span {
      background: #007bff;
      color: white;
      padding: 5px 10px;
      border-radius: 20px;
      font-size: 14px;
  }

  .custom-multiselect-display::after {
      content: "▼";
      margin-left: auto;
      color: #007bff;
  }

  .custom-multiselect-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid #007bff;
      border-radius: 8px;
      margin-top: 5px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      z-index: 100;
      display: none;
      max-height: 200px;
      overflow-y: auto;
  }

  .custom-multiselect-search {
      width: 100%;
      border: none;
      border-bottom: 1px solid #ddd;
      padding: 8px 10px;
      outline: none;
  }

  .custom-multiselect-option {
      padding: 8px 12px;
      cursor: pointer;
      transition: background 0.2s;
  }

  .custom-multiselect-option:hover {
      background: #007bff;
      color: white;
  }

  .preview-img {
      width: 100px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px;
      border: 1px solid #ddd;
  }


  .selectgroup {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
  }

  .selectgroup-item input:checked+.selectgroup-button {
      background-color: #0d6efd;
      color: #fff;
  }

  .selectgroup-button {
      border: 1px solid #dee2e6;
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
      cursor: pointer;
      transition: all 0.2s;
  }

  .selectgroup-button:hover {
      background-color: #e9ecef;
  }

  .shadow {
      box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  }

  .card-dashboard {
      transition: all 0.3s ease-in-out;
      border-radius: 1rem;
      cursor: default;
      overflow: hidden;
      border-left: 5px solid #4a6cf7;
      /* Default left border color (can be changed dynamically) */
  }

  .card-dashboard:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  }

  /* Custom shadow class */
  .shadow {
      box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  }

  .shadow2 {
      box-shadow: rgba(0, 0, 0, 0.00) 0px 0px 0px 1px;
  }

  .icon-circle {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 60px;
      height: 60px;
      border-radius: 50%;
  }

  .bg-secondary {
      background-color: #6c757d !important;
      border-left-color: #6c757d;
  }

  .bg-success {
      background-color: #28a745 !important;
      border-left-color: #28a745;
  }

  .bg-warning {
      background-color: #ffc107 !important;
      border-left-color: #ffc107;
  }

  .bg-danger {
      background-color: #dc3545 !important;
      border-left-color: #dc3545;
  }

  .bg-dark {
      background-color: #343a40 !important;
      border-left-color: #343a40;
  }

  .bg-info {
      background-color: #17a2b8 !important;
      border-left-color: #17a2b8;
  }

  .card h6 {
      font-size: 0.85rem;
      letter-spacing: 0.5px;
  }

  .card h4 {
      font-size: 1.4rem;
  }

  .btn-round {
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  /* Optional: dynamic left border based on card type */
  .card-dashboard[data-border-color] {
      border-left-width: 5px;
      border-left-style: solid;
  }

  .swal-modal {
      border-radius: 20px !important;
      padding: 25px !important;
      justify-content: center;
  }

  .swal-size-md .swal-modal {
      width: 380px !important;
  }

  .swal-size-lg .swal-modal {
      width: 480px !important;
  }

  .swal-size-xl .swal-modal {
      width: 600px !important;
  }

  #logout {
      cursor: pointer;
  }

  .swal-btn-confirm,
  .swal-btn-cancel {
      padding: 10px 25px !important;
      font-size: 16px !important;
      border-radius: 50px !important;
      font-weight: 600 !important;
      transition: 0.3s ease-in-out;
  }

  .swal-btn-confirm {
      background: #4caf50 !important;
      color: white !important;
  }

  .swal-btn-confirm:hover {
      background: #45a049 !important;
  }

  .swal-btn-cancel {
      background: #f44336 !important;
      color: white !important;
  }

  .swal-btn-cancel:hover {
      background: #d63028 !important;
  }


  .swal-footer {
      text-align: center !important;
  }

  .swal-footer .swal-button-container {
      display: inline-block !important;
  }

  .swal-size-md .swal-icon img,
  .swal-size-lg .swal-icon img,
  .swal-size-xl .swal-icon img,
  .swal-icon--warning__body,
  .swal-icon--warning__dot {
      transform: scale(1.2);
  }

  .payment-group {
      display: none;
      padding: 15px;
      background: #f8f9fc;
      border-radius: 8px;
      border: 1px solid #e5e5e5;
      animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(5px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  .card-header h5 {
      font-weight: 600;

  }

  .timetable-rows {
      display: flex;
      flex-direction: column;
      gap: 15px;
      margin-top: 10px;
  }

  /* Row Card */
  .timetable-row {
      display: grid;
      grid-template-columns: 150px 1fr;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      padding: 15px;
      border-radius: 10px;
      gap: 5px;
      /* removed box-shadow animation */
  }

  /* Day Label */
  .day-label {
      font-weight: 700;
      font-size: 16px;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #2563eb;
      border-radius: 8px;
      padding: 10px;
      border: 1px solid #e5e7eb;
  }

  /* Drop Area */
  .subject-dropzone {
      min-height: 80px;
      background: #f9fafb;
      border: 2px dashed #d1d5db;
      border-radius: 8px;
      padding: 10px;
      display: flex;
      flex-direction: column;
      /* stack vertically */
      gap: 8px;
  }

  /* Dropzone Hover (subtle change only) */
  .subject-dropzone:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
  }

  /* Subject Box */
  .subject-item {
      background: #2563eb;
      color: white;
      padding: 8px 14px;
      height: 50px;
      border-radius: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: grab;
      font-size: 14px;
      /* removed transform & box-shadow animation */
  }

  .subject-item small {
      font-size: 11px;
      opacity: 0.9;
  }

  /* Dragging state */
  .subject-item.dragging {
      opacity: 0.4;
  }

  /* Remove hover/active animations */
  .subject-item:hover,
  .subject-item:active {
      transform: none;
      box-shadow: none;
      cursor: grab;
  }

  .sub-box {
      display: flex;
      width: 100%;
      justify-content: space-between;
      align-items: center;
  }

  .offcanvas {
      background: #fff;
      border-radius: 14px 14px 0 0;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
      padding: 20px;
      transition: all .35s ease;
  }

  .offcanvas-header {
      border-bottom: 1px solid #eaeaea;
      padding-bottom: 12px;
      margin-bottom: 10px;
  }

  .offcanvas-title {
      font-size: 1.25rem;
      font-weight: 600;
  }

  .offcanvas .btn-close {
      filter: invert(0.4);
      transition: .2s;
  }

  .offcanvas .btn-close:hover {
      filter: invert(0.7);
  }

  .offcanvas-start,
  .offcanvas-end {
      width: 420px !important;
      max-width: 90%;
      border-radius: 0 5px 5px 0;
  }

  .offcanvas-end {
      border-radius: 5px 0 0 5px;
  }

  .offcanvas-top {
      height: auto !important;
      max-height: 80vh;
      border-radius: 0 0 5px 5px;
  }

  .offcanvas-bottom {
      height: auto !important;
      max-height: 85vh;
      border-radius: 5px 5px 0 0;
  }

  .offcanvas-backdrop.show {
      opacity: 0.6 !important;
      backdrop-filter: blur(5px);
  }

  .offcanvas form .form-label {
      font-weight: 500;
      color: #333;
  }

  .offcanvas form .form-control,
  .offcanvas form .form-select {
      border-radius: 8px;
      padding: 8px 10px;
      border: 1px solid #dcdcdc;
      transition: .2s;
  }

  .offcanvas form .form-control:focus,
  .offcanvas form .form-select:focus {
      border-color: #4a76f0;
      box-shadow: 0 0 0 3px rgba(74, 118, 240, 0.25);
  }

  .offcanvas .btn-primary {
      width: 100%;
      padding: 10px;
      border-radius: 8px;
      font-weight: 600;
  }


  .password-wrapper {
      position: relative;
  }

  .password-wrapper .show-password {
      position: absolute;
      right: 15px;
      top: 68%;
      transform: translateY(-50%);
      cursor: pointer;
      color: #777;
      font-size: 18px;
  }

  .password-wrapper .show-password:hover {
      color: #333;
  }

  .password-wrapper .password-input {
      padding-right: 45px;
      /* space for icon */
  }

  /* Tabs container (all .nav-tabs) */
  .nav-tabs {
      border-bottom: 2px solid #dee2e6;
      position: relative;
  }

  /* Individual tab (all .nav-link inside .nav-tabs) */
  .nav-tabs .nav-link {
      color: #495057;
      font-weight: 500;
      padding: 10px 20px;
      border: 1px solid transparent;
      border-top-left-radius: 0.5rem;
      border-top-right-radius: 0.5rem;
      transition: all 0.3s ease, transform 0.2s ease;
      position: relative;
  }

  /* Active tab */
  .nav-tabs .nav-link.active {
      color: #fff;
      background-color: #0d6efd;
      border-color: #0d6efd #0d6efd #fff;
      z-index: 1;
  }

  /* Hover effect with scale animation */
  .nav-tabs .nav-link:hover {
      color: #0d6efd;
      background-color: #e9f0ff;
      transform: translateY(-2px);
  }

  /* Tab underline animation */
  .nav-tabs::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background-color: #0d6efd;
      transition: all 0.3s ease;
  }

  .nav-tabs .nav-link.active::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: #fff;
      /* Active underline */
      border-radius: 2px;
  }

  /* Tab content (all .tab-content) with fade animation */
  .tab-content {
      padding: 10px;
      background: #fff;
      position: relative;
      overflow: hidden;
  }

  /* Smooth fade/slide animation for tab panes */
  .tab-pane {
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.1s ease-in-out;
      position: absolute;
      width: 100%;
      top: 0;
      left: 0;
  }

  .tab-pane.show.active {
      opacity: 1;
      transform: translateY(0);
      position: relative;
  }

  /* Responsive for small screens */
  @media (max-width: 576px) {
      .nav-tabs .nav-link {
          padding: 8px 12px;
          font-size: 14px;
      }
  }


  .modal-dialog {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      display: flex;
      align-items: center;
      min-height: calc(100% - 1rem);
  }

  .modal.fade .modal-dialog {
      transform: translateY(-20px);
      transition: transform 0.3s ease-out;
  }

  .modal.show .modal-dialog {
      transform: translateY(0);
  }

  .modal-content {
      border-radius: 12px !important;
      border: none !important;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
      overflow: hidden;
  }

  .modal-header {
      background: #f5f6fa;
      border-bottom: 1px solid #e5e5e5;
      padding: 1rem 1.25rem;
  }


  .modal-header .modal-title {
      font-size: 1.25rem;
      font-weight: 600;
  }

  .modal-header .btn-close {
      filter: brightness(0);
  }

  .modal-body {
      padding: 1.25rem 1.5rem;
      max-height: 65vh;
      overflow-y: auto;
  }

  .modal-footer {
      border-top: 1px solid #e5e5e5;
      padding: 0.75rem 1.25rem;
      justify-content: flex-start;
  }

  .modal-footer .btn {
      padding: 0.5rem 1.2rem;
      border-radius: 6px;
  }

  .modal-backdrop.show {
      opacity: 0.5;
      backdrop-filter: blur(2px);
  }

  @media (max-width: 576px) {
      .modal-dialog {
          padding: 0 10px;
      }

      .modal-content {
          border-radius: 8px !important;
      }
  }

.student-profile {
    max-width:100%;
    margin: 0;
    background: #fff;
    overflow: hidden;
}

/* HEADER */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #0d6efd;
    color: #fff;
}

.profile-header img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
}

.header-info h2 {
    margin: 0;
    font-size: 22px;
}

.header-info p {
    margin: 4px 0;
    font-size: 14px;
}

/* SECTIONS */
.profile-section {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.profile-section h3 {
    margin-bottom: 15px;
    color: #0d6efd;
    font-size: 16px;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
}

.grid div {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.grid div span {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 3px;
}

.grid .full {
    grid-column: span 3;
}

/* ACTION BUTTONS */
.profile-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-actions a,
.profile-actions button {
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: #003366;
    transition: .3s;
}

.profile-actions .green { background: #28a745; }
.profile-actions .blue  { background: #17a2b8; }
.profile-actions .red   { background: #dc3545; }

.profile-actions a:hover,
.profile-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid .full {
        grid-column: span 1;
    }
}