/*
* 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;
}


/* =============== BASE FORM STYLES =============== */
.form-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

/* =============== FORM GROUP STYLES =============== */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.form-label-required::after {
  content: " *";
  color: #e53e3e;
}

/* =============== INPUT FIELD STYLES =============== */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #2d3748;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

  .form-control:focus {
    color: #2d3748;
    background-color: #fff;
    border-color: #4299e1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
  }

/* =============== FLOATING LABELS =============== */
.floating-label-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: 1rem;
  color: #718096;
  pointer-events: none;
  transition: all 0.2s ease;
  background-color: white;
  padding: 0 0.25rem;
  transform-origin: left top;
}

.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
  transform: translateY(-1.25rem) scale(0.85);
  color: #4299e1;
}

/* =============== SELECT DROPDOWN STYLES =============== */
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #2d3748;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  appearance: none;
}

  .form-select:focus {
    border-color: #4299e1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
  }

/* =============== CHECKBOX & RADIO STYLES =============== */
.form-check {
  position: relative;
  display: block;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  margin-left: -1.75rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  appearance: none;
  position: relative;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

  .form-check-input:checked {
    background-color: #4299e1;
    border-color: #4299e1;
  }

    .form-check-input:checked::before {
      content: "";
      position: absolute;
      left: 0.4375rem;
      top: 0.125rem;
      width: 0.375rem;
      height: 0.75rem;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

.form-switch .form-check-input {
  width: 2.5em;
  height: 1.5em;
  margin-left: -2.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23e2e8f0'/%3e%3c/svg%3e");
  background-position: left center;
  border-radius: 2em;
  transition: background-position 0.15s ease-in-out;
}

  .form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  }

/* =============== TEXTAREA STYLES =============== */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* =============== VALIDATION STYLES =============== */
.is-valid {
  border-color: #38a169 !important;
}

  .is-valid:focus {
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2) !important;
  }

.is-invalid {
  border-color: #e53e3e !important;
}

  .is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
  }

.valid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #38a169;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #e53e3e;
}

.was-validated .form-control:valid ~ .valid-feedback,
.was-validated .form-control:valid ~ .valid-tooltip,
.form-control.is-valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-tooltip {
  display: block;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
  display: block;
}

/* =============== BUTTON STYLES =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding:0px !important
  font-weight: 400; 
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 14px;  
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background-color: #4299e1;
  border-color: #4299e1;
  box-shadow: 0 1px 2px 0 rgba(66, 153, 225, 0.4);
}

  .btn-primary:hover {
    background-color: #3182ce;
    border-color: #3182ce;
    box-shadow: 0 4px 6px -1px rgba(66, 153, 225, 0.3), 0 2px 4px -1px rgba(66, 153, 225, 0.2);
  }

.btn-secondary {
  color: #2d3748;
  background-color: #e2e8f0;
  border-color: #e2e8f0;
}

  .btn-secondary:hover {
    background-color: #cbd5e0;
    border-color: #cbd5e0;
  }

/* =============== INPUT GROUP STYLES =============== */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4a5568;
  text-align: center;
  white-space: nowrap;
  background-color: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px 0 0 8px;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  border-radius: 0 8px 8px 0;
}

/* =============== SPECIAL FORM ELEMENTS =============== */
/* Date picker */
.form-date {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%234a5568' d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
}

/* File upload */
.form-file {
  position: relative;
}

.form-file-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(2.75rem + 2px);
  margin: 0;
  opacity: 0;
}

.form-file-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: calc(2.75rem + 2px);
  padding: 0.75rem 1rem;
  line-height: 1.5;
  color: #4a5568;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-file-button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: block;
  height: calc(2.75rem + 2px);
  padding: 0.75rem 1rem;
  line-height: 1.5;
  color: #2d3748;
  background-color: #f7fafc;
  border-left: 1px solid #e2e8f0;
  border-radius: 0 8px 8px 0;
}

/* =============== ICON INTEGRATION =============== */
.with-icon-left {
  padding-left: 2.5rem;
  background-position: left 0.75rem center;
}

.with-icon-right {
  padding-right: 2.5rem;
  background-position: right 0.75rem center;
}

/* =============== DARK MODE SUPPORT =============== */
@media (prefers-color-scheme: dark) {
  .form-container {
    background-color: #2d3748;
    color: #f7fafc;
  }

  .form-control, .form-select, .form-textarea {
    background-color: #4a5568;
    color: #f7fafc;
    border-color: #4a5568;
  }

  .form-label, .floating-label {
    color: #cbd5e0;
  }

  .input-group-text {
    background-color: #4a5568;
    color: #f7fafc;
    border-color: #4a5568;
  }
}


}
