/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


  .btn-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.btn-scroll::-webkit-scrollbar {
  height: 6px;
}
.btn-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.btn-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}

 /* Make Swal modals responsive on mobile */
@media (max-width: 576px) {
  /* Popup container */
  .swal2-popup {
    width: 90% !important;
    max-width: 90% !important;
    padding: 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 0.75rem !important;
  }

  /* Title */
  .swal2-title {
    font-size: 1rem !important;
  }

  /* Text/content */
  .swal2-html-container {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }

  /* Buttons container (force inline layout) */
  .swal2-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  /* Each button */
  .swal2-actions .swal2-styled {
    flex: 1 1 auto !important;         /* allow them to shrink evenly */
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
    min-width: unset !important;       /* remove unnecessary min width */
    border-radius: 0.5rem !important;
  }

  /* Smaller icons (if any) */
  .swal2-icon.swal2-loading {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}


/* Optional: Slightly smaller on slightly larger phones */
@media (max-width: 768px) {
  .swal2-popup {
    width: 70% !important;
    font-size: 1.05rem !important;
  }
}

  #globalBar, #stepBar {
  transition: width 0.3s ease-in-out;
}

   .modal-footer button {
  margin:1rem;
}

  .modal-footer {
  overflow: hidden; /* ensures container wraps floated items */
  padding: 1rem;    /* optional padding */
}

.modal-footer > * {
  float: left;      /* float items to the left */
  margin-right: 10px; /* space between items */
}

  .swal2-container {
    z-index: 920009 !important;
}

.card-body.show {
  display: block;
}
    th {
        text-transform: uppercase;
    }
    .highlight {
    background-color: yellow; /*Highlight color*/
}
  
    .breadcrumb {
  justify-content: flex-end;
}
.datatable-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-group-flex {
  display: flex;
  gap: 20px; /* Space between elements */
}

.form-group {
  flex: 1; /* Allow inputs to take available space */
}

.button {
  flex: 0 0 auto; /* Button doesn't take up extra space */ 
   margin-top: 20px; 
   margin-left: 10px;
}

/*Optional Styling to ensure inputs don't stretch too much if the content is short*/
.form-controls{
  width: auto; /*Remove default stretching*/
}
.custom-select, .form-controls  {
  position: relative;
  width: 250px;
  margin-top: 20px; /* Added margin-top */
}

.custom-select select, .form-controls input {
  padding: 5px 10px;
  border: 1px solid rgba(8, 151, 199, 0.42);
  border-radius: 5px;
  font-size: 16px;
  background-color: #fff;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: calc(100% - 20px);
  height: 40px;
  line-height: 20px; /* Adjusted line-height to match height */
  box-sizing: border-box; /* Important for consistent sizing */
}
.custom-select select:focus { /* Or :active, depending on preference */
  border: 1.5px solid blue;
  /* border-color: blue; */
  outline: none; /* Remove default focus outline */
}


.image-container {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 50px;
  transition: transform 0.3s;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  border: none;
}

.image-container:hover img {
  transform: scale(5.0);
  z-index: 1050;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#progressBar {
  transition: width 0.5s ease; /* smooth transition for lively update */
}
.card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s;
}

/* Default width for desktop */
.my-swal-popup {
  width: auto!important; /* ~640px */
}

/* Wider for smaller screens (phones, tablets) */
@media (max-width: 576px) {
  .my-swal-popup {
    width: 90% !important; /* almost full width */
  }
}

/* Optional: tweak padding for mobile */
@media (max-width: 576px) {
  .my-swal-popup {
    padding: 1.5rem !important;
  }
}

/* Modal body background */
#studentModal .modal-body {
  background:rgb(254, 254, 255); /* light gray-blue background */
  position: relative; 
}

/* Card shadows */
#studentModal .card {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 12px;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

/* Animated dots & lines background */
#studentModal .modal-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  animation: moveBG 20s linear infinite;
  z-index: 0;
}

/* Animate background movement */
@keyframes moveBG {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 800px 0, 0 800px, 800px 800px; }
}

/* Fieldset styling */
#studentModal fieldset {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background-color: #f9fafc;
}

#studentModal legend {
  width: auto;
  padding: 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
}
#progressBar {
  transition: width 0.5s ease; /* smooth transition for lively update */
}

/* Restore clean Bootstrap-style input borders */
.form-control {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem; /* same as Bootstrap 5 */
    background-color: #fff !important;
    box-shadow: none !important;
}

/* Optional: better focus state */
.form-control:focus {
    border-color: #5a67ff !important; /* or #86b7fe for BS default */
    box-shadow: 0 0 0 0.2rem rgba(90, 103, 255, 0.25) !important;
}
