@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');




*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;

}

a{
    text-decoration: none;
    color: black;


}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F6F6F6;
}


nav {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 6rem;
    height: 5rem;
    align-items: center;

}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: .5rem;
    margin-left: 1rem;
}

.nav-links a{
    text-decoration: none;
    color: black;
    padding: 0.5rem 0;
    font-size: 1.25rem;
}

.nav-links li + li::before { 
    content: "|";
    margin-right: .5rem;
}

.logo {
    font-family: "Ubuntu";
    font-size: 2.5rem;
    font-weight: 300;
    padding-right: 1.25rem
}

#get-started {

    margin-left: auto;
    display: inline-block;
    padding: .7rem 1.2rem;
    border-radius: .9rem;
    background-color: #0076E1;
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    border: none;
    cursor: pointer;

}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 0rem;
    
}

.hero{

  display: flex; 
  align-items: center;
  justify-content: space-between;

  padding: 12rem 6rem;
  max-width: 100vw;
  height: calc(100vh - 120px);
}

.hero-text {
    max-width: 800px;
    flex-shrink: 1;
    box-sizing: border-box;
}

.hero-chat {
  display: block;
  height: 35rem;
  width: 40rem;
  background-color: #ffffff;
  border: 1px solid rgb(212, 212, 212);
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);

  align-items: center;
  box-sizing: border-box;
  
}
.hero h1{
    flex: 1 1 auto;
    font-size: clamp(2.5rem, 5rem, 6rem);
    line-height: 1.1;
    font-weight: 700;
}

.hero p{
    flex: 1 1 auto;
    font-size: clamp(.75rem, 1.5rem, 2rem);
    max-width: 700px;
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: .5;
    font-weight: 400;
    line-height: 1.5
}






.steps{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 5rem auto;
    max-width: 95vw;
    justify-content: space-between;
}

.card {
    background-color: #ffffff;
    border: 1px solid rgb(230, 230, 230);
    border-radius: 8px;;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    padding: 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}


footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: .75rem;
    opacity: 50%;
    font-size: .75rem;
}

.card-number{
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;


    background-color: #0076E1;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.5rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-header h2 {
    font-weight: 400;
    font-size: 2rem;
}

#get-started-hero {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: .9rem;
    background-color: #0076E1;
    color: #ffffff;
    margin-top: 2rem;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
}

.nav-links a:hover {
    text-decoration: underline;
}

#get-started:hover, #get-started-hero:hover {
    background-color: #005BAE
}

#how-it-works {
    scroll-margin-top: 100px;
}

.faq-item {
    background: #ffffff;
    display: block;
    border: 1px solid rgb(230, 230, 230);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    padding: 1rem 1.5rem;
    margin: 1rem;
    max-width: 1200px;
    height: 100px;
}

#faq {
    padding: 0 2rem;
}

.faq-item summary {
    cursor: pointer;
    list-style: none; 
    position: relative;
        padding-left: 1.5rem;

}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#faq-question-header{
    padding: 2rem 1rem;
}

.faq-item summary::-webkit-details-marker {
    display:none;
}

.faq-item summary::before {
    /*fix content*/
    content: "+";
    position: absolute;
    left: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::before {
    /*fix content later*/
    content: "-";
    transform: rotate(180deg);
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.faq-item[open] p {
    max-height: 500px;
}

.main-page-header {
    background-color: #ececec;
    width: 100vw;
    height: 5.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.25)
}

.chatbox-area {
    display: flex;
    justify-content: center;
    flex-direction: column;
}


#time-value {
    opacity: 1;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
}

#timer {
    background-color: rgba(235, 235, 235, 0.8);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #cfcfcf;
    height: 4.5rem;
}

#chat-output {
    width: min(100%, 40rem);
    height: 22.5rem;
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
    overflow-y: auto;
    white-space: pre-wrap;
}

#bottom-chat {
    border-top: 1px solid #cfcfcf;
    display: flex;
    justify-content: center;
    align-items: center;
}

#record-button{
    padding: 1rem;
    border-radius: .5rem;
    background-color: rgb(54, 54, 54);
    color: white;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-size: 1.5rem;
    margin: 2rem;
}

#record-button:hover {
    background-color: black;
}

#rubric-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(214, 214, 214);
    box-shadow: 0px 0px 5px rgba(0,0,0,.25);
    padding: 2rem;
    width: 65%;
    height: 80%;
    border-radius: 16px;
}
.dialog-header {
    display: flex; 
    justify-content: space-between;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    align-items: center;
    margin-top: -15px;
}

#close-rubric-selector {
    background-color: white;
    color: rgb(54,54,54);
    border: none;

    font-size: 2rem;
    cursor: pointer;
    
}

#close-rubric-selector:hover {
    color: black;
}

/* --- Rubric modal layout --- */
.rubric-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
  height: calc(100% - 3rem);
}

.rubric-selector-sidebar {
  border-right: 1px solid #e5e5e5;
  padding-right: 1rem;
  overflow-y: auto;
}

#rubric-selector-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0; /* enable child scrolling */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .9rem;
}

.inline-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

legend.legend {
  font-size: .95rem;
  margin-bottom: .25rem;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .35rem 0;
}

#rubric-form select,
#rubric-form input[type="number"] {
  border: 1px solid #d8d8d8;
  border-radius: .5rem;
  padding: .6rem .75rem;
  font-size: 1rem;
  background: #fff;
}

.primary-btn {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: .7rem;
  background-color: #0076E1;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.primary-btn:hover { background-color: #005BAE; }

.ghost-btn {
  padding: .6rem .9rem;
  border-radius: .7rem;
  border: 1px solid #d8d8d8;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.ghost-btn:hover { background: #f6f6f6; }

.tiny-note {
  font-size: .8rem;
  opacity: .7;
  margin-top: .5rem;
}

.status {
  font-size: .95rem;
  padding: .5rem .75rem;
  border-radius: .5rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}
.status.loading { border-style: dashed; }
.status.idle { opacity: .9; }

.rubric-preview {
  flex: 1;
  min-height: 0;
  border: 1px solid #dbe4f5;
  border-radius: .85rem;
  background: linear-gradient(180deg, #fdfdff 0%, #f5f7fb 100%);
  padding: 1.2rem 1.35rem;
  overflow: auto;
  font-family: 'Ubuntu', sans-serif;
  font-size: .92rem;
  line-height: 1.55;
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rubric-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rubric-section {
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: .9rem;
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.rubric-section-title {
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
}

.rubric-summary {
  font-size: .5rem;
  color: #000000;
  line-height: 1.65;
  white-space: pre-wrap;
}

.rubric-indicator-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
  margin: 0;
  padding: 0;
  counter-reset: indicator;
}

.rubric-indicator {
  position: relative;
  border: 1px solid #d6e3fb;
  border-radius: .8rem;
  padding: 1rem 1.05rem 1rem 2.8rem;
  background: linear-gradient(135deg, rgba(226, 239, 255, 0.85) 0%, rgba(244, 249, 255, 0.95) 100%);
  color: #0f172a;
  font-size: .96rem;
  line-height: 1.55;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.rubric-indicator::before {
  counter-increment: indicator;
  content: counter(indicator, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  font-weight: 700;
  color: #1d4ed8;
  font-size: .92rem;
}

.rubric-empty {
  background: #f1f5f9;
  border-radius: .75rem;
  padding: .9rem 1rem;
  color: #64748b;
  font-size: .95rem;
  border: 1px dashed #d0d8e8;
}

.rubric-actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  margin-top: .25rem;
}

/* dialog base already exists; keep your existing styles for #rubric-selector and header */
