
@import url("https://fonts.googleapis.com/css2?family=Archivo&display=swap");

:root {
   /* Transitions */
  --transition: all 400ms ease;

  /* Basic Colors */
  --white: #fefefe;
  --ghost-white: #f8f9fc;
  --text-color: #0a0b0e;
  --main-gray: #646568;
  --gray-40-darker: #3a3b3c;
  --gray-lighter: #f8f9fc;

   /* Links */
  --link: #4945f3;

  /* Reds */
  --red: #fa3c4b;
  --red-30-darker: #cc252f;
  --red-50-darker: #b70f1c;

   /* Oranges */
  --orange: #dc896c;
  --orange-10-darker: #e6835d;
  --orange-30-darker: #c96638;
  --alert-orange: #ff9800;

  /* Blues */
  --blue-20-darker: #3e3bc7 ;
  --blue-30-darker: #3935b2;
  --blue-40-darker: #332f9d;
  --blue-50-darker: #2b2878;

  /* Cyans */
  --cyan-30-darker: #248288;
  --cyan-40-darker: #1e676c;
  --cyan-50-darker: #184d51;

   /* Greens */
  --green: #4caf50;
  --green-40-darker: #308631;
  --green-50-darker: #297c2a;

  /* Violet */
  --violet: #211443;
  --violet-40-lighter: #85628d;

  /* Nav bar gradient (last one wins if duplicated) */
  --background: #1A0064;
  --background: linear-gradient(153deg,rgba(26, 0, 100, 1) 0%, rgba(68, 3, 116, 1) 42%, rgba(7, 32, 162, 1) 72%, rgba(0, 139, 194, 1) 100%);

  /* Fonts */
  --font-family-archivo: "Archivo", sans-serif;
  --font-size-12px: 0.75rem;
  --font-size-14px: 0.875rem;
  --font-size-16px: 1rem;
}

body {
  width: 100vw;
  font-family: var(--font-family-archivo);
  height: auto;
  padding: 0;
  margin: 0;
  background: var(--ghost-white);
}

.nav-bar {
    background: var(--background);
    color: var(--white);
    border-bottom: 1px solid var(--white);
    position: sticky;
    top: 0;
    z-index: 1000; 
}

.nav-bar h1{
    font-size: 22px;
}

.nav-bar .col-12{
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.nav-bar .col-12 .justify-content-between{
   border-bottom: 0 !important;
}


main {
  margin: 0;
}

/* Buttons UI */

.btn-secondary {
  padding: 6px 16px;
  border: 1px solid var(--white);
  background: transparent;
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border: 1px solid var(--white);
  background: var(--blue-50-darker);
}

.btn-outline-primary, .btn-upload {
  padding: 6px 16px;
  border: 1px solid var(--blue-40-darker);
  background: var(--blue-40-darker);
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition);
  color: var(--white);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus, .btn-upload:hover,
.btn-upload:focus {
color: var(--white);
  border: 1px solid var(--green-50-darker);
  background: var(--green-50-darker);
}




.btn-primary {
  padding: 6px 16px;
  border: 1px solid var(--white);
  background: var(--red-30-darker);
  text-align: center;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  border: 1px solid var(--white);
  background: var(--orange-30-darker);
}
 
.main-container {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
   
}
.no-gutter {
--bs-gutter-x: 2rem;
}

.sidebar {
    background: var(--white);
    margin-top: 1rem ;
    position: sticky;
    top: 60px; 
    height: calc(100vh - 60px);
    overflow-y: auto; 
    box-shadow: rgba(149, 157, 165, 0.131) 0px 8px 24px;
    border: 1px solid rgba(168, 169, 171, 0.152);
}

.flex-column .nav-link {
  color: var(--gray-40-darker);
  font-weight: 400;
  transition: var(--transition);
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  transition: letter-spacing 0.3s ease;
}
.nav-link.active {
  color: var(--red);

}

.flex-column .nav-link:hover {
   letter-spacing: .1px;
}

.audio-process {
    margin-top: -5px !important;
}

.mb-5 {
 scroll-margin-top: 64px;
 background: var(--white);
 margin-top: 1rem ;
 padding: 1rem 2rem;
 box-shadow: rgba(149, 157, 165, 0.131) 0px 8px 24px;
 border: 1px solid rgba(168, 169, 171, 0.152);
 position: relative;
 border-top: 1px solid transparent; /* fallback */
}

.mb-5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px; /* thickness of border */
  background: linear-gradient(
    294deg,
    rgb(255, 255, 255) 0%,
    rgb(255, 255, 255) 60%,
    rgba(43, 40, 120, 1) 100%
    );

}

h2 {
    font-size: 20px;
}

.mb-5 {
    margin-bottom: 1rem !important;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.badge{
    border-radius: 0;
    padding: .5em 1rem;
    font-weight: 400;
}

.bg-info {
    background: var(--blue-30-darker) !important;
}

.bg-warning {
    background: var(--orange-30-darker) !important;
    color: var(--white);
    /* text-transform: uppercase; ← remove or comment this out */
}

p{
    color: var(--gray-40-darker);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  
}

.card {
  position: relative;
  background: var(--white);
  border-radius: 0;
  text-align: center;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid rgba(75, 116, 197, 0.34);
}


.card-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
  border-bottom: 1px solid rgba(100, 101, 104, 0.271);
  padding-bottom: .5rem;
  width: 100%;
}

.card-text {
  font-size: 0.95rem;
  color: var(--gray-40-darker);
}

.supported-formats-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 1rem;
  color: #2c3e50; /* dark modern color */
  border-left: 4px solid  var(--green); /* accent line for style */
  padding-left: 0.75rem;
}

.supported-formats-list {
  list-style: none; /* remove default bullets */
  padding-left: 0;
  margin: 0;
}

.supported-formats-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--gray-40-darker);
}

.supported-formats-list li::before {
  content: "✔"; /* or another icon for bullet */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green); /* match accent color */
  font-weight: bold;
}

.link {
    color: var(--link);
    text-decoration: none;
}
.link:hover {
    color: var(--link);
    text-decoration: underline;
    
}

.code-block-container {
  position: relative; /* needed for absolute button */
  background: rgba(230, 240, 250, 0.471);
  color: #1e1e2f;
  padding: 1rem;
  border-radius: 0;
  overflow: auto;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.107);
}

.code-block-container pre,
.code-block-container code[class^="language-"] {
  background: none !important; 
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgb(9,48,86);
  border: none;
  color: var(--white);
  transition: background 0.2s ease;
}

.copy-btn:hover, .copy-btn:focus {
  background: #28a745;
}

/* Hide the success icon text span initially */
.copy-btn .copy-success {
  display: none;
}

/* When copied, hide normal text and show success text */
.copy-btn.copied .copy-text {
  display: none;
}

/* Style the <img> icons */
.copy-btn img.copy-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.quick-start {
  margin-bottom: 1.5rem;
}

.quick-start p {
  font-size: 16px;
}

.quick-start h3 {
  font-size: 17px;
  margin-bottom: 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.green-text {
 color: #28a745;
 font-weight: 500;
}

.step, .rounded {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 247, 250, 0.604);
  padding: .7rem 1rem;
  border-left: 4px solid var(--blue-30-darker);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rounded   {
    flex-direction: column;
}

.step-number {
  font-size: 1rem;
  font-weight: bold;
  color: var(--blue-30-darker);
  flex-shrink: 0;
  margin-top: -3px;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-40-darker);
}

h3, h4, h5{
    font-size: 17px;
}

.nav-item {
    padding-right: .2rem;
}

.nav-item .nav-link {
    color: var(--gray-40-darker);
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid rgba(108, 117, 125, 0.312);
    border-bottom: transparent;
}

.nav-item .nav-link.active {
    border-radius: 0;
    background-color: var(--blue-50-darker);
    border: 1px solid var(--blue-40-darker);
    border-bottom: transparent;
    color: var(--white);
}

.nav-item .nav-link:hover, .nav-item .nav-link:focus {
    border-radius: 0;
    background-color: var(--blue-50-darker);
    border: 1px solid var(--blue-40-darker);
    border-bottom: transparent;
    color: var(--white);
}

.tab-pane {
  scroll-margin-top: 120px; /* height of your fixed navbar */
}

.table-card {
  margin-bottom: 2rem;

}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  color: #333;
}

.modern-table thead {
  background: var(--blue-40-darker);
  color: var(--white);
  text-align: left;
}

.modern-table thead th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.modern-table tbody tr {
  border-bottom: 1px solid #e3e8ef;
  transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
  background: rgba(80,145,193,0.1);
}

.modern-table tbody td {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.modern-table tbody td:first-child {
  font-weight: 500;
}

.modern-table tbody td:nth-child(2) {
  font-style: italic;
  color: #555;
}

.feature-card, .rounded {
    border-radius: 0 !important;
}

.feature-card .card-title {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card .card-text {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin-bottom: 0.75rem;
}

.feature-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
}

.badge-included {
  background-color: #28a745;
  color: #fff;
}

.badge-optional {
  background-color: var(--blue-40-darker);
  color: #fff;
}

.feature-card hr {
  border-top: 1px solid rgba(100, 101, 104, 0.271);
  margin: 0.75rem 0;
}

.feature-card small {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Modern cards */
#limits .row{
    margin-top: 0 !important;
}
#limits .row .col-md-6{
    margin-top: .5rem !important;
}

.modern-card {
     box-shadow: none !important;
}

.modern-card .card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Modern list inside cards */
.modern-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.modern-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.modern-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #5091c1; 
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1;
}

/* Modern alert */
.modern-alert {
  border-left: 5px solid var(--blue-30-darker);
  background-color: rgba(245, 247, 250, 0.604);
  padding: 1rem 1.25rem;
  box-shadow: none !important;
  border-radius: 0;
}

.modern-alert .alert-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.modern-alert ul {
  list-style: disc inside;
  margin-bottom: 0;
  padding-left: 1rem;
}


@media (max-width: 1270px) {
  .content, .container-fluid {
    padding:0 !important ;
  }
  .nav-bar {
    padding-left: 1rem;
  }
}

@media (max-width: 1225px) {
  .main-container{
    flex-direction: column;
    align-items: center;
    margin-left: 1rem;
  }
  .col-md-2 {
    width: 100%;
    padding-right: 0;
  }
  .sidebar {
    position: fixed;
    margin-top: 10px;
    height: auto;
    z-index: 1000;
    margin-left: -.8rem;
    margin-right: .8rem;
  }

  .flex-column {
    flex-direction: row !important;
 }

 .content {
    margin-top: 8rem;
    width: 100%;
 }

}

@media (max-width: 735px) {

    .col-md-2  {
        display: none;
    }

    .content {
        margin-top: 0;
        
    }
}


/* Credentials Card */
.credentials-card, .card-feature {
  background-color: var(--white);               
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
  border-radius: 0;
  padding: 0;   
  margin-bottom: 1rem; 
  border: 1px solid rgba(75, 116, 197, 0.34);
  
}
.account-info {
    padding: 1rem;
}

.card-header{
    padding: .5rem 1rem;
    background: rgba(27, 25, 168, 0.055);
    color: var(--text-color);
    border-radius: 0 !important;
    /* border: 1px solid var(--blue-50-darker); */
    border-bottom: 0;
}

.credentials-card .header{
    padding: .5rem 1rem;
    background: var(--blue-30-darker);
    color: var(--white);
    border-radius: 0 !important;
    border: 1px solid var(--blue-30-darker);
    border-bottom: 0;
}

.form-check-label strong {
    font-size: 16px;
}

/* Heading */
.credentials-card h5 {
  font-weight: 600;
  margin-bottom: 0 !important;
  font-size: 1rem;
}

/* Labels */
.credentials-card .text-muted {
  color: #6c757d;
}

/* Monospace values */
.credentials-card .font-monospace {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Key stats */
.credentials-card .fw-medium {
  font-weight: 500;
}

.credentials-card .fw-bold {
  font-weight: 700;
}

.credentials-card .text-success {
  color: var(--blue-40-darker);
  font-weight: 500;
}

/* Divider */
.credentials-card hr {
  border: 0;
  border-top: 1px solid #bebebe;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 576px) {
  .credentials-card {
    padding: 1rem;
  }
}

.drop-zone {
    border: 1px dashed var(--cyan-40-darker);
    border-radius: 0;
}

.drop-zone:hover {
    background: rgba(43, 192, 202, 0.161);
}

.results-container  .results-container .card {
  padding: 0;
  border: 1px solid #6c757d36;
}

strong {
  font-weight: 500;
}

.results-container .results-container .card-body {
  border: 0;
}

.results-container  .results-container .card-title {
  font-weight: 500;
}

.results-container  .list-unstyled li {
  margin-bottom: 8px;
}

.transcription-box {
  max-height: 250px;
  overflow-y: auto;
  line-height: 1.5;
  background-color: rgb(248, 249, 250);
}

.chunk-result {
  background-color: var(--white);
  border: 1px solid var(--blue-20-darker) !important;
}

.analysis-results {
  width: 100%;
}

.chunk-result .analysis-results span.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.5em;
}

.analysis-results small {
  font-weight: 500;
}

.border-top {
   padding-top: .5rem;
}

.gap {
    gap: 0;
}

.transcription-box {
    background-color: rgba(81, 239, 128, 0.035) !important;
    border: 1px dashed var(--green) !important;
}

.progress-bar {
    background-color: #008BC2;
}

.mobile-view {
    margin-top: 1rem;
    margin-bottom: 0;
  }

@media (max-width: 1270px) {
  .col-md-8 {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1250px) {
  .mobile-view {
    display: none;
  }
}

@media (max-width: 1249px) {
  .desktop-view {
    display: none;
  }
  .api-content .col-md-4{
    padding-left: calc(var(--bs-gutter-x) * 0);
    padding-right: calc(var(--bs-gutter-x) * 0);
    }
}

.api-content {
 padding-right: calc(var(--bs-gutter-x) * 0);
 padding-left: calc(var(--bs-gutter-x) * 0);
}


@media (max-width: 850px) {
  .api-content .col-md-4,
  .api-content .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.analysis-results-chunk-header {
  padding: 1rem;
  border: 1px dashed var(--alert-orange);
  margin-bottom: 1rem;
}

.analysis-badge {
  background-color: #f3f4f6; /* light gray background */
  color: #1f2937; /* dark text */
  font-weight: 500;
  padding: .5em 1rem;
  font-size: 0.85rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Specific subtle color accents with background = previous text color and text white */
.emotion-badge {
  background-color: #b91c1c; /* previous text color */
  color: #ffffff; /* text white */
}
.shouting-badge {
  background-color: #1d4ed8;
  color: #ffffff;
}
.age-badge {
  background-color: #166534;
  color: #ffffff;
}
.gender-badge {
  background-color: #b45309;
  color: #ffffff;
}
.synthetic-badge {
  background-color: #5b21b6;
  color: #ffffff;
}

.emoji-white {
  filter: brightness(0) invert(1);
}

#estimated-cost {
  color: var(--green-40-darker);
  font-weight: 700;
}

.results-container {
  max-height: 1120px;
}

.badge.bg-secondary {
  background: var(--gray-40-darker); /* light gray */
  color: var(--white); 
  font-size: 0.85rem;
  padding: 0.35em 0.65em;

}

.disabled-dropzone {
  opacity: 0.5;
  cursor: not-allowed;
}

.disabled-dropzone * {
  pointer-events: none;
}