/* [Master Stylesheet]
 * @Project:            Rapidise Web
 * @Author:             Tejas Kateshiya
 * @Date:               22-07-2025
 * @Email:              tejas.kateshiya@rapidise.co
 * @Last modified by:   Tejas Kateshiya
 * @Last modified date: 22-07-2025
 * @Copyright: Rapidise
 */

/* [Table of Content]
1. Imports
2. Root Elements
3. Scrollbar
4. Webkit Autofill
5. Form Elements
6. Sidebar
7. Accordion
8. Content
9. Main Navbar
10. Table
11. Pagination
12. File Upload
13. Toggle Button
14. Responsive Design
15. Login
16. Notifications
17. Custom Dropdown
18. Loader
19. Buttons
20. Audio Button
21. Miscellaneous
22. Progressbar
*/

/* 1. Imports */

/* 2. Root Elements */
:root {
  --dark: #34495E;
  --light: #ffffff;
  --success: #0ABF30;
  --error: #E24D4C;
  --warning: #E9BD0C;
  --info: #3498DB;
  --primary: #CFCFCF;
  /* --secondary: #090446; */
  --secondary: #1B3B6F;
  --btn-primary: #6509ac;
  --btn-danger: #a31f1f;
}

body {
  font-family: Arial, sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

body, div, h1, h2, h3, h4, h5, h6, p, input, option, a, span {
  font-family: "Sintony", serif !important;
  font-optical-sizing: auto !important;
}

div, p, span:not(.accordion-label *), input, option, a {
  font-size: clamp(17px, 2vw, 15px) !important;
}

input[type="checkbox"] {
  height: 15px;
  width: 15px;
}

.bg-primary{
  background-color: var(--secondary) !important;
}

.border-primary{
  border-color : var(--secondary) !important;
}

.mt-6{
  margin-top: 3rem;
}

.mx-6{
  margin: 0 3.3rem;
}

.card-header-top{
  border-top: 1px solid rgba(0,0,0,.125);
}

.cursor-pointer {
  cursor: pointer !important;
}

.equal-col-width-75 {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  text-align: center;
}


/* 3. Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 7px;
}

::-webkit-scrollbar-track {
  border: 1px solid #ced4da;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #748294;
  border-radius: 10px;
  box-shadow: none !important;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* 4. Webkit Autofill */
.file-input::-webkit-file-upload-button {
  visibility: hidden;
  display: none !important;
}

/* 5. Form Elements */

.form-control {
  border: 1px solid var(--primary);
  color: var(--secondary) !important;
  font-weight: 600;
  box-shadow: none !important;
}

.form-control:focus {
  border: 1px solid var(--dark) !important;
}

.form-control.is-valid, .was-validated .form-control:valid {
  border-color: var(--dark) !important;
  background-image: none;
  padding: .375rem .75rem !important;
  box-shadow: none !important;
}

.form-control.is-invalid, .was-validated .form-control:invalid {
  border-color: var(--btn-danger) !important;
  padding: .375rem .75rem !important;
  background-image: none;
  box-shadow: none !important;
}

.form-check-label {
  color: var(--secondary) !important;
}

.form-check-input:valid:checked {
  background-color: var(--secondary) !important;
}

.form-check-input.is-valid, .was-validated .form-check-input:valid {
  border-color: var(--secondary) !important;
}

.invalid-feedback {
  font-weight: 600;
  font-size: 13px !important;
}

.error-msg {
  align-items: center;
  display: flex;
  color: #dc3545;
  font-size: clamp(12px, 2vw, 14px) !important;
  margin: 0px;
  bottom: -20px;
  left: 0;
  white-space: nowrap;
  border-color: #dc3545;
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  font-size: 13px !important;
  text-wrap: wrap !important;
}

/* 6. Sidebar */
.sidebar {
  width: 200px;
  background-color: #f4f4f4;
  padding: 15px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #333;
}

.sidebar ul li a:hover {
  color: #007BFF;
}

.custom-sidebar {
  max-height: 87vh !important;
  position: absolute;
  overflow: auto;
  position: sticky;
  top: 94px;
}

.bg-white.content-section {
  max-height: 87vh !important;
  min-height: 87vh !important;
  overflow: auto;
}

.custom-sidebar .submenus {
  height: 3rem;
  font-weight: normal !important;
  font-size: 1rem !important;
  color: var(--secondary);
  border: solid 1px transparent !important;
  transition: all 0.4s ease-in-out;
  font-size: clamp(17px, 2vw, 16px) !important;
}

.submenus.selected {
  background-color: var(--secondary) !important;
  color: white !important;
  border-top: solid 1px #ffffff !important;
}

.custom-sidebar .submenus:hover {
  height: 3rem;
  font-weight: normal !important;
  font-size: 1.03rem !important;
  background-color: var(--secondary) !important;
  border-top: solid 1px #ffffff !important;
  color: white !important;
  padding: 12px 30px 12px 58px;
}

.custom-sidebar button.submenus {
  color: var(--secondary);
  background: white;
  width: 100%;
  text-align: left;
  padding: 12px 30px 12px 60px;
  align-items: center;
  display: flex;
}

.form-control-time-field{
  max-width: 220px;
}

/* 7. Accordion */
.accordion-item a.nav-link {
  padding: 22px 30px;
}

.accordion-item {
  color: var(--secondary) !important;
  border-bottom: 1px solid #D4D4D4;
  box-shadow: none !important;
  border-radius: 0px !important;
  font-size: 1.25rem;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.accordion-button:focus {
  border-color: #D4D4D4;
}

.custom-sidebar .accordion-label {
  font-size: 1.15rem !important;
  padding-left: 6px;
}

.custom-sidebar .accordion-item i {
  font-size: 25px;
  padding: 0px 7px;
}

.accordion-item:hover .accordion-button {
  background-color: var(--secondary);
  color: white !important;
}

.accordion-item:hover .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button {
  color: var(--secondary) !important;
  border-bottom: 1px solid #D4D4D4;
  box-shadow: none !important;
  border-radius: 0px !important;
  font-size: clamp(20px, 2vw, 17px) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0.80rem 1.3rem !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  color: var(--secondary) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--secondary);
  color: white !important;
  font-weight: 600;
}

.accordion-button::after {
  color: var(--secondary) !important;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

/* 8. Content */
.content {
  flex: 1;
  padding: 15px;
}

body, html {
  margin: 0;
  font-family: Tahoma, Arial, "Times New Roman", "Microsoft YaHei", Helvetica, sans-serif;
  background-color: #D4D4D4;
}

.bg-white {
  box-shadow: 0px 1px 5px #052b3d7a;
  border: 1px solid #052b3d75;
}

.main-heading {
  position: sticky;
  top: 0;
  height: fit-content;
  overflow: auto;
  box-shadow: 0px 10px 10px rgb(255 255 255);
  z-index: 10;
  border-bottom: 1px solid #bdbbca;
}

.main-navbar {
  height: 86.39px;
  background-color: var(--secondary);
  z-index: 1000;
  justify-content: space-between;
  padding: 0 3rem 0 4rem;
  transition: box-shadow 0.2s ease-in-out;
  color: white;
}

.main-navbar .logo {
  max-width: 200px;
}

.main-navbar.scrolled {
  box-shadow: 0px 0px 23px rgb(19 78 96);
}

.main-card-width {
  width: clamp(300px, 92%, 1200px) !important;
}

.logout-text {
  display: block;
}

.badge-style {
  box-shadow: 0px 0px 4px rgb(0 0 0 / 22%) !important;
  padding: 0px 6px;
  margin: 2px 5px 2px 0px;
  color: white;
  background-color: var(--secondary) !important;
  cursor: pointer;
}

.badge-style:hover {
  transform: scale(1.02);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.main-heading p {
  background-color: #F2F5F7;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: bold !important;
  color: var(--secondary) !important;
  justify-content: center;
  display: flex;
  padding: 0.7rem;
  margin-bottom: 0.4rem;
}

.table-heading p {
  font-size: clamp(18px, 1vw, 16px) !important;
  font-weight: bold;
  text-align: center;
  border-bottom: 1.8px solid #8f8bafab;
  padding: calc(2px + 0vw) calc(7px + 0vw);
}

.table-heading {
  margin: calc(8px + 0%) 0px calc(18px + 0%) 0px;
  color: var(--secondary) !important;
}

.info-box {
  padding: 5px 30px 0px 28px;
}

.attribute-Key {
  color: var(--secondary);
  display: flex;
  align-items: center !important;
}

.attribute-Key-Sm {
  color: var(--secondary);
  align-items: center;
  display: flex;
  min-width: clamp(107px, 10vw, 150px);
  padding: 6px 0px;
}

.port-label-width {
  min-width: clamp(125px, 15vw, 185px);
}

.trigger-Key {
  color: #383838;
  margin-top: 8px;
  align-items: center;
  display: flex;
  margin: 0px;
  padding: 8px 0px;
  min-width: calc(calc(11% - 3px)) !important;
}

.content-section .info-box .attribute-Key {
  min-width: clamp(190px, 16vw, 319px) !important;
}

.attribute-value {
  position: relative;
  color: var(--secondary) !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
}

.upload-status{
  color: var(--secondary) !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
}

form .attribute-Key {
  height: 45px !important;
  padding-bottom: 5px;
}

.background-blue{
  background-color: var(--primary);
  padding: 1rem;
  color: var(--light);
}

.camera-container {
    height: 35rem;
    width: 100%;
    max-width: 60rem;
    min-width: 55rem;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.external-camera-values {
  animation: fadeIn 0.3s ease-in-out;
}


.stream-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  color: var(--secondary);
  font-weight: 600;
  font-size: calc(calc(7px + 1vw));
  height: 100%;
  background: #ffffff;
  align-items: center;
  display: flex !important;
  justify-content: center;
}


.attribute-value .custom-dropdown {
  color: var(--secondary) !important;
  background-color: transparent !important;
  border: 1px solid var(--primary);
  text-align: center;
  min-height: 36.31px !important;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: clamp(15px, 2vw, 15px) !important;
}

.attribute-value .custom-dropdown.port-id {
  color: var(--secondary) !important;
  background-color: var(--light) !important;
  border: 1px solid var(--primary);
  text-align: center;
  min-height: 36.31px !important;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600 !important;
}

.codec-dropdown option {
  background-color: #ecf0f4;
  margin: 3px 0px;
  padding: 1px 5px;
  border-radius: 3px;
}

.disable-dropdown.custom-dropdown {
  background-color: #e9ecef !important;
}

.intercom-value-width {
  width: clamp(210px, 18vw, 170px) !important;
}

.help-box {
  padding: 1rem 2rem;
}

.help-box label {
  font-size: 1.3rem;
  color: #333333;
}

.help-box p {
  font-size: 1.1rem;
  color: #999999 !important;
}

/* 9. Main Navbar */
.main-navbar {
  height: 86.39px;
  background-color: var(--secondary);
  z-index: 1000;
  justify-content: space-between;
  padding: 0 3rem 0 3rem;
  transition: box-shadow 0.2s ease-in-out;
  color: white;
}

.main-navbar .logo {
  max-width: 265px;
  min-width: 265px;
}

.main-navbar.scrolled {
  box-shadow: 0px 0px 23px rgb(19 78 96);
}

/* 10. Table */
.info-box table {
  width: 100%;
  border-collapse: collapse;
}

.info-box th, td {
  padding: clamp(2px, 1vw, 9px) clamp(0px, 1vw, 5px);
  text-align: center;
  color: var(--dark) !important;
}

.info-box tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.info-box tbody tr:nth-child(even) {
  background-color: #f2faff;
}

.info-box thead{
  border: 1px solid #b5bdc5b7;
}

.info-box th {
  border-bottom: 1px solid #b5bdc5b7;
  background-color: #e2eff8;
  color: var(--secondary) !important;
  white-space: nowrap;
  padding: 10px 20px !important;
}

.info-box td {
  border: 1px solid #b5bdc5b7;
}

/* 11. Pagination */
.page-link.disabled {
  opacity: 0.5;         /* Visual feedback */
  cursor: not-allowed !important;
}

.pagination {
  display: flex;
  align-items: center;
}

.pagination .page-info {
  margin: 0 10px;
}
.pagination .page-link {
  padding: 6px 10px;
  text-decoration: none;
  background-color: #d8e1eb;
  color: var(--dark);
  font-weight: 600;
  border: 1px solid var(--primary);
  border-radius: 7px;
}

.pagination span {
  color: var(--dark);
}

.pagination .page-link:hover {
  background-color: #ddd;
  box-shadow: 0px 0px 7px;
}

.pagination .page-link.disabled:hover {
  background-color: #E7E7E7;
  box-shadow: none;
}

table .rowCheckbox {
  width: clamp(8vh, 10vw, 15vh) !important; /* Responsive width */
}


/* 12. File Upload */
.upload-wrapper {
  position: relative;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  max-width: 300px;
}

.file-input {
  width: 100%;
  font-size: 12px !important;
  padding: 10.5px;
  border: 1px solid var(--primary);
  border-radius: 6px;
}

.file-input-label {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6.5px 10px;
  background: var(--secondary) !important;
  color: #FFFFFF;
  border: 1px solid var(--secondary);
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: normal;
}

.file-input::before {
  content: 'No file chosen';
  display: inline-block;
  background: transparent;
  border: none;
  outline: none;
  white-space: nowrap;
  cursor: pointer;
  color: #666;
}

.file-input:valid::before {
  content: attr(value);
}

.min-w-max-content {
  min-width: max-content;
}

.custom-date-picker {
  padding: 10px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  margin: 0px 15px 0px 10px;
}

/* 13. Toggle Button */
.toggle_icon, .toggle_icon::before, .toggle_icon::after {
  position: absolute;
  width: 25px;
  height: 3px;
  border-radius: 4px;
  background-color: white;
}

.toggle_icon {
  top: calc(50% - 2px);
  left: calc(50% - 15px);
}

.toggle_icon::before, .toggle_icon::after {
  content: "";
  left: 0;
}

.toggle_icon::before {
  bottom: 8px;
}

.toggle_icon::after {
  top: 8px;
}

.toggled .toggle_icon {
  height: 5px;
  width: 30px;
  left: 5px;
  top: calc(50% - 2px);
  transform: rotate(-45deg);
  background-color: rgb(255, 255, 255);
}

.toggled .toggle_icon::after {
  width: 30px;
  height: 5px;
  top: -1px;
  transform: rotate(-270deg);
  background-color: rgb(255, 255, 255);
}

.toggled .toggle_icon::before {
  transform: scale(0);
}

.toggle_icon, .toggle_icon::after {
  transition: all 0.3s linear;
}

.custom-toggle {
  display: block;
  position: fixed;
  background-color: transparent;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
}

/* 14. Responsive Design */
@media (max-width: 1700px) {
  .custom-sidebar .accordion-label {
    padding-left: 0px;
  }

  .custom-sidebar .accordion-item i {
    padding: 0px 7px 0px 0px !important;
  }

  .help-box {
    padding: 1rem !important;
  }
}

@media (min-width: 1400px) {
  .main-card-width {
    width: calc(97% - 30px) !important;
  }

  .custom-sidebar {
    max-height: max-content;
  }
}

@media (max-width: 1400px) {
  .camera-container {
    max-width: 60rem;
    min-width: 35rem;
    height: 25rem;
   }

}

@media (max-width: 992px) {
  .toggler-button {
    display: block;
    position: fixed;
    top: 15px;
    left: 10px;
    z-index: 1050;
  }

  .custom-sidebar {
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    top: 88px;
    left: -100%;
    width: 100%;
    background-color: #FFFFFF;
    transition: left 0.3s ease-in-out;
    z-index: 100;
  }

  .custom-sidebar.show {
    left: 0;
    border: solid 1px rgb(5 59 255 / 37%);
    box-shadow: 0px 0px 10px 3px rgb(5 59 255 / 30%);
    overflow-y: auto;
  }

  .custom-sidebar .accordion {
    margin-bottom: 45px;
  }
}

@media (max-height:669px) {
  .custom-sidebar .accordion {
    margin-bottom: 150px !important;
  }
}

@media (max-width: 768px) {
  form .attribute-Key {
    width: 100%;
    height: 28px !important;
    padding-top: 0.8rem;
  }

  .login-wrapper .form {
    max-width: 90%;
    padding: 6% 4%;
  }

  .login-wrapper .logo {
    width: 80%;
  }
}

@media (max-width: 576px) {
  .form .attribute-value {
    margin-bottom: 6px;
  }

  .gap-3 {
    gap: 8px !important;
  }

  .attribute-Key {
    height: 20px !important;
  }

  .responsive-flex-col {
    flex-direction: column !important;
  }

  .main-navbar .logo {
    max-width: 200px;
    min-width: 200px;
  }

  .logout-text {
    display: none;
  }

  .main-navbar {
    padding: 0 1rem 0 3rem;
  }

  .error-msg {
    bottom: -19px;
  }

  .camera-container {
    border-width: 1px;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 16rem;
    max-height: 20rem;
    min-width: 15rem;
}

.stream-message {
    font-size: calc(9px + 1vw);
}
}


/* css for responsive height width*/
.w-33 {
  width: 33.33% !important;
}

.w-50 {
  width: 50% !important;
}

@media (min-width: 1400px) {
  .w-50-xxl {
    width: 50% !important;
  }

  .w-25-xxl {
    width: 25% !important;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {

  .content-section .info-box .attribute-Key {
    min-width: clamp(190px, 24vw, 319px) !important;
  }

  .day-header {
    width: calc(9% + 90px) !important
  }

  .time-slot {
    width: calc(19% + 75px) !important;
  }

  .trigger-Key {
    min-width: calc(calc(19% - 20px)) !important;
  }

  .w-50-xl {
    width: 50% !important;
  }

  .flex-col-xl {
    flex-direction: column !important;
  }

  .w-25-xl {
    width: 25% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {

  .day-header {
    width: calc(20% + 30px) !important;
  }

  .time-slot {
    width: calc(27% + 61px) !important;
  }

  .trigger-Key {
    min-width: calc(calc(22% - 17px)) !important;
  }

  .w-100-lg {
    width: 100% !important;
  }

  .flex-col-lg {
    flex-direction: column !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {

  .day-header {
    width: calc(25% + 30px) !important;
  }

  .time-slot {
    width: calc(30% + 83px) !important;
  }

  .w-100-md {
    width: 100% !important;
  }

  .flex-col-md {
    flex-direction: column !important;
  }

  .camera-container {
    width: 100%;
    height: 20rem;
    min-width: 30rem;
  }

}

@media (min-width: 576px) and (max-width: 767px) {

  .time-slot {
    width: calc(39% + 29px) !important;
  }

  .w-100-sm {
    width: 100% !important;
  }

  .flex-col-sm {
    flex-direction: column !important;
  }

  .camera-container {
    width: 100%;
    height: auto;
    min-width: 20rem;
    aspect-ratio: 4 / 3; /* Maintain a nice ratio on small screens */
}

.stream-message {
    font-size: calc(10px + 1.2vw);
    padding: 0 1rem;
}
}

@media (max-width: 575px) {
  .info-box {
    padding: 5px 17px 0px 17px;
  }

  .time-slot {
    width: calc(79% + 29px) !important;
  }

  .day-header {
    width: calc(79% + 29px) !important
  }

  .main-card-width {
    width: calc(98% - 15px) !important;
  }

  .w-100-xsm {
    width: 100% !important;
  }

  .w-50-xsm {
    width: 50% !important;
  }

  .gap-0-xsm {
    gap: 0 !important;
  }

  .p-0-xsm {
    padding: 0 !important;
  }

  .gap-2-xsm {
    gap: 0.5rem !important;
  }

  .flex-col-sm {
    flex-direction: column !important;
  }
}


/* .attribute-Value responsiveness */
@media (min-width: 1200px) and (max-width: 1550px) {
  .content-section .info-box .attribute-Key {
    min-width: clamp(190px, 16vw, 319px) !important;
    width: 185px !important;
    word-break: break-word;
  }
}


/* .attribute-Value responsiveness */
@media (min-width: 776px) and (max-width: 1200px) {
  .content-section .info-box .attribute-Key {
    min-width: clamp(190px, 25vw, 319px) !important;
    width: 250px !important;
    word-break: break-word;
  }
}


/* .attribute-Value responsiveness */
@media (min-width: 776px) and (max-width: 1200px) {
  .content-section .info-box .attribute-Key {
    min-width: clamp(190px, 25vw, 319px) !important;
    width: 250px !important;
    word-break: break-word;
  }
}

/* 15. Login */
.login-wrapper {
  height: 100vh;
  width: 100vw;
  background-image: url(../images/bg.png);
  background-repeat: repeat;
  margin: 0;
}

.login-wrapper .background-top {
  height: 50%;
  background: url(../images/background.png);
  /* background: linear-gradient(135deg, #0F1C2E 0%, #1B3B6F 25%, #162D52 50%, #0D1E3C 75%, #08141F 100% ); */
  opacity: 1;
  background-repeat: round;
  position: absolute;
  width: 100%;
}

.login-wrapper .hero {
  padding: 60px 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper .form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: #ffffff;
  border: 1px solid #dddd;
  border-radius: 19px;
  width: 100%;
  max-width: 600px;
  z-index: 1;
  padding: 4% 2%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-wrapper .input {
  padding: 2.5% 3% !important;
  margin-top: 1rem !important;
  border-radius: 1rem !important;
  display: block;
  width: 100%;
  outline: none;
  background-color: #f8f9fa;
  color: rgb(1 40 93);
  font-size: inherit;
  border: 1px solid #dddddd;
  -webkit-border-radius: 1rem !important;
  -moz-border-radius: 1rem !important;
  -ms-border-radius: 1rem !important;
  -o-border-radius: 1rem !important;
}

.login-wrapper .input:focus {
  border-color: #03305C;
  box-shadow: 0 0 0 0.2rem rgba(3, 48, 92, 0.1);
}

.login-wrapper .submit {
  max-height: 50px;
  margin: 2rem 0;
  font-weight: bold !important;
  padding: 2.5% 1% !important;
  border-radius: 1rem !important;
  display: block;
  width: 100%;
  outline: none;
  font-size: inherit;
  border: none;
  color: rgb(255, 255, 255);
  cursor: pointer;
  background: #03305C;
  transition: all 0.3s ease;
  -webkit-border-radius: 1rem !important;
  -moz-border-radius: 1rem !important;
  -ms-border-radius: 1rem !important;
  -o-border-radius: 1rem !important;
}

.login-wrapper .submit:hover {
  background: #024078;
  transform: translateY(-2px);
}

.login-wrapper .logo {
  max-width: 300px;
  height: auto;
  width: 60%;
  margin: 1rem 1rem 4rem;
}

.login-wrapper ::placeholder {
  color: rgb(161, 161, 161);
}

.login-form {
  position: relative;
}

.login-form .invalid-feedback {
  position: absolute;
  left: 8px;
}

/* Password toggle styling */
.password-wrapper {
  position: relative;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
  color: #6c757d;
}

.toggle-password:hover {
  color: #03305C;
}

/* Form group styling */
.form-group {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}

/* 16. Notifications */
.notifications {
  position: fixed;
  top: 30px;
  right: 20px;
}

.notifications :where(.toast, .column) {
  display: flex;
  align-items: center;
}

.notifications .toast {
  width: 400px;
  position: relative;
  overflow: hidden;
  list-style: none;
  border-radius: 4px;
  padding: 16px 17px;
  margin-bottom: 10px;
  background: var(--light);
  justify-content: space-between;
  animation: show_toast 0.3s ease forwards;
}

@keyframes show_toast {
  0% {
    transform: translateX(100%);
  }

  40% {
    transform: translateX(-5%);
  }

  80% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-10px);
  }
}

.notifications .toast.hide {
  animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
  0% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(0%);
  }

  80% {
    transform: translateX(-5%);
  }

  100% {
    transform: translateX(calc(100% + 20px));
  }
}

.toast::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: progress 5s linear forwards;
}

@keyframes progress {
  100% {
    width: 0%;
  }
}

#toast-container>div {
  opacity: 0.9 !important;
  box-shadow: none !important;
  border-radius: 5px !important;
}

.toast{
  width: 21vw !important;
  min-width: 320px !important;
}

.toast.success::before, .btn#success {
  background: var(--success);
}

.toast.error::before, .btn#error {
  background: var(--error);
}

.toast.warning::before, .btn#warning {
  background: var(--warning);
}

.toast.info::before, .btn#info {
  background: var(--info);
}

.toast .column i {
  font-size: 1.75rem;
}

.toast.success .column i {
  color: var(--success);
}

.toast.error .column i {
  color: var(--error);
}

.toast.warning .column i {
  color: var(--warning);
}

.toast.info .column i {
  color: var(--info);
}

.toast .column span {
  font-size: 1.07rem;
  margin-left: 12px;
}

.toast i:last-child {
  color: #aeb0d7;
  cursor: pointer;
}

.toast i:last-child:hover {
  color: var(--primary);
}

.buttons .btn {
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 5px;
  color: var(--light);
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 4px;
}

.logout {
  font-family: Tahoma, Arial, "Times New Roman", "Microsoft YaHei", Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent !important;
  border: none;
  color: #FFFFFF;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-self: center;
}

/* Form group styling */
.form-group {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}


.logout {
  font-family: Tahoma, Arial, "Times New Roman", "Microsoft YaHei", Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent !important;
  border: none;
  color: #FFFFFF;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-self: center;
}

.form-control-sm {
  min-height: 7rem !important;
}

.hideDiv {
  display: none !important;
}


@media screen and (max-width: 530px) {
  .notifications {
    width: 95%;
  }

  .notifications .toast {
    width: 100%;
    font-size: 1rem;
    margin-left: 20px;
  }

  .buttons .btn {
    margin: 0 1px;
    font-size: 1.1rem;
    padding: 8px 15px;
  }
}

div#toast-container {
  z-index: 1100;
}

/* 17. Custom Dropdown */
.custom-dropdown {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  font-size: 14px;
  position: relative;
  cursor: pointer;
  outline: none;
  padding: 6px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

.custom-dropdown-container {
  position: relative;
}

.custom-dropdown-container::after {
  content: "▼";
  font-size: 12px;
  color: var(--secondary);
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Hover state for the select */
.custom-dropdown:hover {
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
  border-color: var(--secondary) !important;
}

.custom-dropdown option {
  text-align: center;
}

/* Active/Focus state for the select */
.custom-dropdown:focus {
  border-color: var(--secondary) !important;
  outline: 0 !important;
  text-align: center;
}

/* Style for options */
.custom-dropdown option:hover,
.custom-dropdown option:checked {
  background-color: var(--secondary) !important;
  color: white !important;
  text-align: center;
}

/* Active state for options */
.custom-dropdown option:active {
  text-align: center;
  background-color: var(--secondary) !important;
}

/* 18. Loader */
.loader-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.27);
  z-index: 9999;
  display: none;
  pointer-events: all;
}

.loading-wave {
  position: relative;
  width: 300px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.loading-bar {
  width: 20px;
  height: 10px;
  margin: 0 5px;
  background-color: var(--secondary);
  border-radius: 5px;
  animation: loading-wave-animation 1s ease-in-out infinite;
}

.loader-message {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 5px;
}

.loading-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-bar:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes loading-wave-animation {
  0% {
    height: 10px;
  }

  50% {
    height: 50px;
  }

  100% {
    height: 10px;
  }
}

/* 19. Buttons */
button.btn.btn-primary.form-btn {
  background-color: var(--secondary) !important;
  border: 1px solid var(--secondary) !important;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 16px !important;
  transition: all 0.15s ease-in-out;
  z-index: 1;
}

button.btn.btn-primary.form-btn::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle, rgba(10, 46, 63, 0.4) 10%, transparent 50%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease-out, opacity 0.2s ease-out;
  opacity: 0;
  z-index: -1;
}

button.btn.btn-primary.form-btn:hover {
  background-image: radial-gradient(circle, #0883bc 0%, #0b3042a3 100%);
  box-shadow: 0 5px 15px rgba(10, 46, 63, 0.5);
}

button.btn.btn-primary.form-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

button.btn.btn-primary.form-btn:active {
  box-shadow: 0 3px 10px rgba(10, 46, 63, 0.3);
}

button:focus {
  box-shadow: none !important;
}

button:disabled {
  cursor: not-allowed !important;
  pointer-events: initial !important;
}

.btn-danger {
  background-color: #a31f1f !important;
  border-color: #a31f1f !important;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 16px !important;
  transition: all 0.15s ease-in-out;
  z-index: 1;
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(93, 33, 33, 0.8); 
}

.btn-outline-danger:disabled:hover {
  background-color: #d8e1eb !important;
  border-color: #a31f1f !important;
  color: #a31f1f !important;
  cursor: not-allowed;
  opacity: 0.7 !important;
}


.btn-outline-danger:disabled {
  opacity: 0.7 !important;
  background-color: #d8e1eb !important;
}

.btn-outline-danger {
  border-radius: 8px;
  border-color: #a31f1f !important;
  color: #a31f1f !important;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 16px !important;
  transition: all 0.25s ease-in-out;
  z-index: 1;
}

.btn-outline-danger:hover {
  color: #FFFFFF !important;
  background-color: #a31f1f !important;
  border-color: #a31f1f !important;
}


.btn-outline-success {
  border-radius: 8px;
  border-color: #1e5f10 !important;
  color: #1e5f10 !important;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 6px 16px !important;
  transition: all 0.25s ease-in-out;
  z-index: 1;
}

.btn-outline-success:disabled:hover {
  background-color: #d8e1eb !important;
  border-color: #1e5f10 !important;
  color: #1e5f10 !important;
  cursor: not-allowed;
}

.btn-outline-success:hover {
  color: #FFFFFF !important;
  background-color: #1e5f10 !important;
  border-color: #1e5f10 !important;
}

.btn-outline-success:disabled {
  opacity: 0.7 !important;
  background-color: #d8e1eb !important;
}

.go-btn-field {
  width: 65px !important;
}

/* 20. Audio Button */
.play-pause-btn {
  width: clamp(96px, 5vw, 113px) !important;
  height: 40px !important;
  border: none;
  border-radius: 10px;
  background-color: var(--secondary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.play-pause-btn:hover {
  box-shadow: 0 5px 15px rgba(10, 46, 63, 0.5);
}

.play-pause-btn i {
  transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
}

.playing .fa-play {
  opacity: 0;
  transform: scale(0.1);
}

.playing .fa-pause {
  display: inline;
  opacity: 1;
  transform: scale(1.1);
}

.fa-pause {
  opacity: 0;
  transform: scale(0.1);
}

.play-pause-btn.playing i {
  transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
}

/* 21. Miscellaneous */
.image-radio ul {
  list-style-type: none;
}

.image-radio li {
  display: inline-block;
}

.image-radio input[type="radio"][id^="home_screen.quick_dial.icon"] {
  display: none;
}

.image-radio label {
  border: 1px solid #fff;
  padding: 0px;
  display: block;
  position: relative;
  margin: 0px;
  cursor: pointer;
}

.image-radio label:before {
  background-color: white;
  color: white;
  content: " ";
  display: block;
  border-radius: 50%;
  border: 1px solid grey;
  position: absolute;
  top: -5px;
  left: -5px;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 28px;
  transition-duration: 0.4s;
  transform: scale(0);
}

.image-radio label img {
  height: 35px;
  width: 35px;
  transition-duration: 0.2s;
  transform-origin: 50% 50%;
}

.image-radio :checked+label {
  border-color: #e30e0e;
}

.image-radio :checked+label:before {
  content: "✓";
  display: none;
  background-color: grey;
  transform: scale(1);
}

.image-radio :checked+label img {
  transform: scale(0.9);
  box-shadow: 0 0 5px #8e2222;
  z-index: -1;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}


/* css for time input  */
.time-input {
  width: 110px;
  padding: 5px 13px;
  color: #555;
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}

/* css for schedule times of input output page  */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border-radius: 8px;
  padding: 20px 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.schedule-item{
  padding: 0 0 10px;
}

.day-row {
  display: flex;
  margin: 3px 10px;
  justify-content: start;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  transition: background-color 0.2s;
}

.day-times {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: auto;
}

.day-header {
  width: calc(11% + 50px);
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  background: #e9ecef;
  padding: 7px 10px;
  margin: 0px 10px 0px 0px;
  border-left: 3px solid var(--secondary);
  padding-left: 8px;
}

.time-slot {
  display: flex;
  justify-content: start;
  align-items: center;
  background: #fff;
  border: 1px solid var(--primary);
  padding: 6px 8px;
  border-radius: 6px;
  color: #383838;
  min-width: 194px;
  text-align: center;
  font-size: 14px;
  gap: 0.2rem;
  transition: background-color 0.2s;
  border-left: 2px solid var(--primary);

}

.time-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
  outline: none;
}

.time-slot:hover {
  background-color: #f0f7ff;
}

.alt-schedule-header {
  border-left: 3px solid #9b59b6;
  padding-left: 8px;
}

.empty-schedule-message{
  height: 100%;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.schedule{
  height: 100%;
}

/* css for customize SweetAlert2 confirmation box */
div:where(.swal2-icon) .swal2-icon-content {
  font-size: 50px !important;
}

.swal2-popup .swal2-title {
  font-size: 22px !important;
}

button.swal2-cancel.swal2-styled.swal2-default-outline {
  background-color: var(--secondary) !important;
  border-radius: 8px !important;
  border: 1px solid var(--secondary) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 6px 16px !important;
  transition: all 0.15s ease-in-out;
  z-index: 1 !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  -ms-border-radius: 8px !important;
  -o-border-radius: 8px !important;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -ms-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
}

button.swal2-confirm.swal2-styled.swal2-default-outline {
  background-color: #a31f1f !important;
  border-radius: 8px !important;
  border: 1px solid #a31f1f !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  padding: 6px 16px !important;
  transition: all 0.15s ease-in-out;
  z-index: 1 !important;
  -webkit-border-radius: 8px !important;
  -moz-border-radius: 8px !important;
  -ms-border-radius: 8px !important;
  -o-border-radius: 8px !important;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -ms-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
}



/* Progressbar feDiffuseLighting */
.progress-container {
  display: none; /*Hide initially */
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 24px;
  border: 1px solid #ccc;
  margin-top: 1em;
  position: relative;
  box-shadow: inset -4px 0 8px rgba(0, 0, 0, 0.2);
}

.upload-status{
  display: none;
}

#uploadBar {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    45deg,
    #4caf50 25%,
    #43a047 25%,
    #43a047 50%,
    #4caf50 50%,
    #4caf50 75%,
    #43a047 75%,
    #43a047 100%
  );
  background-size: 40px 40px;
  animation: progress-stripes 0.30s linear infinite;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px 0 0 8px;
  transition: width 0.4s ease-in-out;
  overflow: hidden;
  box-shadow: inset 2px 0 4px rgba(255, 255, 255, 0.253);
}

#uploadBar span {
  color: white;
  font-weight: bold;
  white-space: nowrap;
}


@keyframes progress-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}
