

/*whole site*/
/* container: keep it centered and fluid */
.container {
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  bottom: 0; /* no fixed offset */
}

.bg-light{
    --bs-bg-opacity: 1;
    background-color: rgb(255 255 255) !important;
}


/* goofy xxxxxx */
.xx {
    border-bottom: 2px solid black;
    padding-bottom: 5px;
    display: block
}


/* active module expanded box */
.active-module {
    border: 1px solid black;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    width: 100%;
    margin: 20px auto;
}


.video-box {
    display: block;
    border: 1px solid black;
    padding: 20px;
    background-color: rgba(247, 247, 247, 0.952);
    border-radius: 3px;
    width: 100%;
    margin: 20px auto;
}




.confirm-button {
    background-color: black;
    color: white;
    border: 1px solid black;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.confirm-button:hover{
    background-color: white;
    color: black;
}
/* active module expanded box */

/* reused styles cause i am DUMB */
.boxed-listening{
    display: block;
    border: 1px solid black;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    width: 100%;
    margin: 20px auto;
}

.boxed-reading {
    border: 1px solid black;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    width: 100%;
    margin: 20px auto;
}

.boxed-writing {
    border: 1px solid black;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    width: 100%;
    margin: 20px auto;
}
.boxed-speaking {
    border: 1px solid black;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 3px;
    width: 100%;
    margin: 20px auto;
}

/* reused styles cause i am DUMB */

/* video and confirm button area */
.video {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* blur filter */
.blurred {
    filter: blur(15px);
}
/* blur filter */


/* popup ok button that uses the blur filter */
.popup-modal{
    
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000; /* Ensure modal is on top */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: fit-content;
  margin: 40px auto;
  font-family: Arial, sans-serif; 
}


.modal-content h1 {
  font-size: 14px;
  color: #000;
  margin-bottom: 15px;
}

.ok-button {
  align-self: center;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  width: 50%;
}
/* popup ok button that uses the blur filter */

/* bootstrap is useless */
.text-completed {
    color: green;
}


/* UKA image: center it and make responsive */
.uka-image {
  display: block;
  max-width: 350px;
  width: 80%;
  height: auto;
  margin: 20px auto 10px auto;
  position: static; /* remove left positioning */
}

/* UKA text: centered below image */
.uka-text {
  text-align: center;
  position: static; /* remove relative offset */
  margin-top: 10px;
}


@keyframes fadeIn {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
    }






    /*speaking slot*/
        .calendar-container {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    position: relative;
    left: 0px;
    }
    .calendar-header {
      text-align: center;
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 20px;
    }
    .calendar-header button {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      padding: 5px 10px;
    }
    .calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
    }
    .day {
      padding: 10px;
      text-align: center;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }
    .day:hover {
      background-color: #e9ecef;
      color: #0f172a;
    }
    .day.selected {
      background-color: #007bff;
      color: white;
    }
    .day.disabled {
    background-color: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    }
    .slots-zone {
      display: none;
    }
    .slot {
      padding: 10px;
      background: #082aec;
      margin-bottom: 8px;
      border-radius: 8px;
      cursor: pointer;
      opacity: 0;
      transform: translateY(10px);
      animation: slotPop 0.3s ease forwards;
      text-align: center;
    }
    .slot:hover {
      background: #0cd32d;
    }
    .slot.selected {
      background-color: #28a745;
      color: white;
    }


    /*fade animation*/
    /* Animation for slot entry */
@keyframes slotPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
    .fade-box {
    opacity: 1;
    transition: opacity 0.5s ease; /* Smooth fade */
    }
    .fade-out {
    opacity: 0;
    }

    /*slide in*/

    .slide-box {
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.4s ease-in, transform 0.4s ease;
}

.slide-out {
    opacity: 0;
    transform: translateY(20px); /* moves down before disappearing */
    
}
    /*speaking slot*/

    /*confirm panel for booking speaking*/

      :root {
  --btn-bg: #ef4444;    /* Action button color */
  --btn-hover: #f87171; /* Hover color */
  --accent: #06b6d4;    /* Confirm color */
  --radius: 10px;
  --shadow: 0 6px 18px rgba(0,0,0,0.3);
  --duration: 300ms;
  --ease: cubic-bezier(.2,.9,.25,1);
}

.confirm-wrap {
  
  display: block;
}

/* Main action button */
.action-btn {
  background: var(--btn-bg);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--duration) var(--ease), background var(--duration);
}
.action-btn:hover {
  background: var(--btn-hover);
}
.confirm-wrap.confirm-open .action-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

/* Confirmation panel (hidden by default) */
.confirm-panel {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #1f2937;
    color: white;
    width: 200px;
    margin-left: 225px;
    margin-bottom: 5px;
    border-radius: var(--radius);
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
    box-shadow: var(--shadow);
}

/* Show panel */
.confirm-wrap.confirm-open .confirm-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.confirm-message {
  font-size: 14px;
}

.confirm-actions {
  display: flex;
  gap: 8px;
}

.btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-confirm {
  background: var(--accent);
  border: none;
  color: #042226;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

    /* Overlay background */
    .popup-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        display: none; /* hidden by default */
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    /* Popup box */
    .popup-box {
        background: #fff;
        padding: 20px 30px;
        border-radius: 8px;
        text-align: center;
        max-width: 300px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        animation: fadeIn 0.3s ease;
    }
    .popup-box p {
        margin-bottom: 20px;
        font-size: 16px;
    }
    .popup-box button {
        padding: 8px 16px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }
    .popup-box button:hover {
        background: #0056b3;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }


    /*speaking activity section*/
      .speaking-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 1250px;
    bottom: 0px;
    height: 400px;
  }

  .speaking-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
  }

  .attempts-left {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
  }

  .speaking-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    border-top: 1px solid #eee;
    margin-top: 8px;
  }

  .speaking-item {
    background: #f0f9ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    transition: background 0.3s;
  }

  .speaking-item:hover {
    background: #e6f3ff;
  }

  .score {
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 5px;
  }

  .test-id{
    font-weight: bold;
    color: #06b6d4;
    margin-bottom: 5px;
  }

  .note {
    font-size: 0.9rem;
    color: #444;
    overflow: hidden;
    max-height: 1.4em; /* show ~1 line initially */
    transition: max-height 0.3s ease;
    cursor: pointer;
  }

  .note.expanded {
    max-height: 200px; /* enough for multi-line */
  }

  .note-toggle {
    font-size: 0.85rem;
    color: #0d6efd;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
  }

  .speaking-list::-webkit-scrollbar {
    width: 6px;
  }
  .speaking-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
  }
  /*speaking activity section*/
.speaking-overlay {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.4); /* smooth transparent background */
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(5px); /* adds smooth blur effect */
}


/* Popup box */
.speaking-popup {
background: rgba(255, 255, 255, 0.9); /* slightly transparent white */
border-radius: 12px;
padding: 20px;
max-width: 600px;
width: 90%;
box-shadow: 0 5px 20px rgba(0,0,0,0.3);
animation: fadeIn 0.3s ease;
}


@keyframes fadeIn {
from { opacity: 0; transform: scale(0.95);}
to { opacity: 1; transform: scale(1);}
}


.speaking-plans {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin-top: 15px;
}


.speaking-plan {
background: rgba(249, 249, 249, 0.9);
border-radius: 8px;
padding: 15px;
text-align: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.speaking-plan:hover {
transform: translateY(-4px);
}
.speaking-plan h3 {
margin: 0 0 10px;
color: #007bff;
}
.speaking-plan p {
font-size: 0.9rem;
color: #555;
}


/* Close button */
.speaking-close-btn {
background: #ff4757;
color: #fff;
border: none;
padding: 8px 12px;
border-radius: 6px;
cursor: pointer;
float: right;
}