/* =================== Font Face (Cabin) =================== */
@font-face {
  font-family: Cabin;
  src: url(../font/Cabin-Regular.ttf);
  font-weight: 400;
}
@font-face {
  font-family: Cabin;
  src: url(../font/Cabin-Medium.ttf);
  font-weight: 500;
}
@font-face {
  font-family: Cabin;
  src: url(../font/Cabin-SemiBold.ttf);
  font-weight: 600;
}
@font-face {
  font-family: Cabin;
  src: url(../font/Cabin-Bold.ttf);
  font-weight: 700;
}

/* =================== Custom Classes =================== */
.vivoice_title {
  font-family: Cabin;
  font-weight: 700;
}
.menu {
  font-family: Cabin;
  font-weight: 500;
  font-stretch: normal;
}

/* =================== Language Selector =================== */
.languageSelector {
  font-size: 1.15rem !important;
  color: #a1a5b7;
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}
.languageDropdown {
  display: flex;
  top: 100%;
  left: 0;
  border: none;
  background-color: inherit;
  color: #a1a5b7;
  border-radius: 5px;
  overflow: hidden;
}
.languageDropdown option {
  padding: 10px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}
.languageSelector:hover #languageDropdown {
  display: block;
}
.languageSelector:hover #languageDropdown option {
  display: block;
}
.languageToggle {
  padding: 10px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.languageSelector:hover #languageToggle {
  display: block;
}
.languageToggle:hover {
  background-color: #2980b9;
}

/* =================== Dropdown =================== */
.custom-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  padding: 0px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 65px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content button {
  font-family: Cabin, Helvetica, sans-serif;
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: none;
  background-color: inherit;
  cursor: pointer;
}
.dropdown-content button:hover {
  background-color: #ddd;
}
.show {
  display: block;
}

/* =================== Why choose Vivoice =================== */
.whychoosevivoice-section {
  margin: 0;
  font-family: Cabin, sans-serif;
  background-color: inherit;
}
.wcv-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.wcv-column {
  flex-basis: calc(25% - 20px);
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
@media screen and (max-width: 767px) {
  .wcv-container {
    flex-direction: column;
    align-items: stretch;
  }
  .wcv-column {
    flex-basis: auto;
    margin-right: 0;
  }
}

/* =================== New form =================== */
.form-container {
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}
.form-container {
  max-width: 600px;
  margin: 50px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: #003366;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 2px solid #219cd7;
  padding: 10px;
  border-radius: 1.5rem;
}
input:invalid {
  border: 2px solid #219cd7;
  background-color: #fff;
}
input:focus:invalid {
  outline: none;
}
.error {
  font-size: 80%;
  color: rgb(246,2,2);
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
}
.error.active {
  padding: 0.3em;
}
textarea {
  resize: vertical;
  height: 100px;
}
.form-btn,
.prm-btn {
  background-color: #003366;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.form-btn:hover,
.prm-btn:hover {
  color: #003366;
  background-color: #e8e8e8;
}
.btn.btn-primary:hover {
  color: #003366 !important;
  background-color: #cbcbcb !important;
}

/* =================== Feature Section =================== */
.feature-section {
  font-family: Cabin, sans-serif;
}
@media (max-width: 700px) {
  .center-on-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 960px) {
  .svg-container .col {
    flex-basis: 100%;
    max-width: 100%;
  }
  .svg-container svg {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }
  .wcv-container {
    flex-direction: column;
    align-items: center;
  }
  .wcv-column {
    padding-bottom: 1rem;
    width: 100%;
    max-width: 100%;
  }
  .wcv-column img {
    height: auto;
    margin: 0 auto;
  }
  .center-at-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 300px;
  }
  .center-at-half img {
    margin: 0 auto;
  }
}

/* =================== Layout chung (Sidebar, Wrapper, Topbar, Footer) =================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
}
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #1B1B2F;
  color: #fff;
  z-index: 999;
  transition: width 0.3s ease;
}
.wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 220px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}

html.sidebar-collapsed #sidebar {
  width: 100px;
}
html.sidebar-collapsed .wrapper {
  margin-left: 100px;
}

@media (max-width: 992px) {
  /* Ẩn sidebar bằng cách dời nó sang trái */
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    transform: translateX(-220px); /* Ẩn ra ngoài */
    transition: transform 0.3s ease;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  /* Ẩn nút gập/mở cũ (#sidebarToggle) ở màn hình nhỏ */
  #sidebarToggle {
    display: none !important;
  }
  .wrapper,
  html.sidebar-collapsed .wrapper {
    margin-left: 0;
  }
}

/* Sidebar Header */
.sidebar-header {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header a img {
  margin-left: 0; 
  max-height: 40px;
}
.sidebar-header .logo-expanded {
  display: block;
  height: 40px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
.sidebar-header .logo-collapsed {
  display: none;
  height: 40px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
}
html.sidebar-collapsed #sidebar .logo-expanded {
  display: none;
}
html.sidebar-collapsed #sidebar .logo-collapsed {
  display: block;
  height: 80px;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

#sidebarToggle {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #dcdfe2;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  z-index: 1001;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sidebarToggle:hover {
  background-color: #92989d;
}
#sidebarToggle i {
  pointer-events: none;
}

/* Nav Link */
.sidebar .nav.flex-column {
  margin-top: 10px;
}
.sidebar .nav-link {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.3s ease;
  padding: 10px 15px;
}
.sidebar .nav-link i {
  min-width: 24px; 
  text-align: center;
  margin-right: 8px; 
  flex-shrink: 0;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: #2B2B3D;
  color: #fff;
}
.sidebar .nav-link.active i,
.sidebar .nav-link.active span.label-text {
  color: #fff;
}
html.sidebar-collapsed .sidebar .nav-link {
  justify-content: center;
}
.sidebar .nav-link span.label-text {
  display: inline-block;
  margin-left: 8px;
  opacity: 1;
  max-width: 200px;
  overflow: hidden;
  transition: opacity 0.2s ease 0.3s, max-width 0.3s ease 0.3s;
}
html.sidebar-collapsed .sidebar .nav-link span.label-text {
  opacity: 0;
  max-width: 0;
  transition-delay: 0s;
}

/* =================== Main Content, Topbar, Footer =================== */
.main-content {
  flex: 1;
  padding: 10px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  background-color: #f8f9fa;
}
footer {
  background-color: #343a40;
  color: #fff;
  text-align: center;
  padding: 10px;
  flex-shrink: 0;
}
footer p {
  margin: 0;
}

/* =================== Loader, Scrolltop =================== */
#loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}
#kt_scrolltop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  background-color: #219CD7;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
}

/* =================== Các style khác (Upload, Transcript, etc.) =================== */
#uploadedFileDisplay {
  border: 1px solid #219CD7;
  border-radius: 5px;
  background-color: #f8f9fa;
  margin-bottom: 20px;
}
.audio-player-container {
  width: 100%;
}
.audio-player-container audio {
  width: 100% !important;
  max-width: 100%;
}
#uploadProgressContainer {
  margin-bottom: 20px;
}
#uploadProgressContainer .progress {
  max-width: 100%;
  margin-left: 0px;
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
}
#uploadProgressContainer .progress-bar {
  height: 10px;
  border-radius: 5px;
  background-color: #007bff;
}
#uploadProgressContainer label {
  margin-left: 0;
  display: block;
}
.table-responsive {
  max-height: 300px;
  overflow-y: auto;
}
#transcriptDisplay {
  max-height: 400px;
  overflow-y: auto;
}
.upload-btn {
  background-color: #009fe3;
  border: none;
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.upload-btn:hover {
  background-color: #007bbf;
  transition: all 0.3s ease;
}
.upload-btn i {
  font-size: 1rem;
  color: white;
}
.label-left {
  display: block;
  text-align: left;
  margin-left: 140px;
  font-weight: bold;
  margin-bottom: 0.25rem;
}
.label-text {
  font-size: 16px;
}
#errorDisplay {
  margin-top: 15px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 10px;
}
.header-title {
  font-size: 16px;
  font-weight: bold;
  color: #0f1012;
  margin: 0;
}
.page * {
  font-size: 1.2rem !important;
  line-height: 1.4;
}

#audioPlayerContainer {
  display: block;
  margin: 0 auto;
  text-align: center;
  padding-top: 10px;
  width: 100%;
  max-width: 100%;
}
#audioPlayer {
  width: 100%;
  max-width: 600px;
}

/* style.css */

/* ========== Font Face ========== */
@font-face {
  font-family: Cabin;
  src: url("../font/Cabin-Regular.ttf");
  font-weight: 400;
}

/* ========== Layout & Classes ========== */
.page * {
  font-size: 1.2rem !important;
  line-height: 1.4;
}

/* ========== Transcript highlight ========== */
.speaker-block {
  background-color: #fff;
  margin-bottom: 1rem;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}
.speaker-header {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.speaker-lines .timestamp-line {
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  padding: 6px 10px;
}
.time-span {
  display: inline-block;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
  margin-right: 10px;
  flex-shrink: 0;
}
.content-span {
  display: inline-block;
  flex: 1;
  font-size: 1rem;
  color: #333;
  word-wrap: break-word;
}
/* Highlight 1 line */
.timestamp-line.highlight {
  background-color: #fff8b3 !important;
}

.client-slider-container {
  position: relative;
  max-width: 1000px; /* Tùy ý */
  margin: 50px auto; /* Tùy chỉnh lại nếu muốn */
  overflow: visible;
}

.client-slider img {
  display: block;
  margin: 0 auto; 
  max-height: 80px; 
}
.client-slider img.logo-tpbank {
  max-height: 65px !important; 
  width: auto !important;
  margin: 10px auto; 
}

