:root {
    --font: "Geist", sans-serif;
    --light-border: 1px solid rgba(0, 0, 0, 0.2);
    --light-text: #475467;
    --very-light-text: #98A2B3;
    --light-background: #FCFBFD;
    --grey: #efebf3;
    --primary-purple: #9151F2;
    --dark-purple: #713dbe;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Report Details: keep content centered/narrow on wide screens */
.report-details-main {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    font-family: var(--font);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

#root {
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

#landing-page {
    overflow-y: auto;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.start {
    display: flex;
    align-items: start;
    justify-content: start;
}

.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

/* =========================
   Landing top navigation
   (used by src/components/Top/Top.tsx)
   ========================= */

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: var(--light-border);
    gap: 12px;
    background: white;
}

.landing-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.landing-logo {
    height: 20px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--light-text);
    font-weight: 500;
    min-width: 0;
}

.landing-nav-links a {
    cursor: pointer;
    color: rgb(29, 29, 29);
    font-size: 16px;
}

#nav-actions {
    gap: 10px;
}

.nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-username {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    opacity: 0.85;
}

.landing-menu-btn,
.sidebar-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: var(--light-border);
    background-color: white;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
}

.landing-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: var(--light-border);
    background: white;
}

.landing-mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: rgb(29, 29, 29);
}

@media (max-width: 1024px) {
  .sidebar-toggle-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 14px 16px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-menu-btn {
    display: inline-flex;
  }

  .nav-username {
    max-width: 140px;
  }
}

button {
    font-family: var(--font);
    padding: 7px 15px;
    cursor: pointer;
    border-width: 0px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 10px;
}

.white-btn {
    background-color: white;
    border: var(--light-border);
}

.white-btn:hover {
    background-color: var(--light-background);
}

.purple-btn {
    background-color: var(--primary-purple);
    color: white;
}

.purple-btn:hover {
    background-color: var(--dark-purple);
}

.clear-btn {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: 1px solid white;
}

.clear-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

#auth-page {
    /* position: absolute; */
    width: 100%;
    height: auto;
    min-height: calc(100vh - 50px);
    top: 0;
    left: 0;
    flex-direction: column;
    padding: 24px 16px;
}

#auth-page img {
    height: 35px;
    margin : 0 auto;
}

#auth-page h1 {
    font-weight: 600;
    font-size: 30px;
    margin: 20px 0px 0px 0px;
}

#auth-page p {
    color: var(--light-text);
    margin: 10px 0px 25px 0px;
}

.vertical-form {
    flex-direction: column;
    gap: 3px;
    width: 100%;
    margin: 0 auto;
}

.vertical-form input,
.vertical-form textarea {
    margin-bottom: 10px;
    width: 100%;
}

.vertical-form textarea {
    height: 100px;
}

.vertical-form select {
    margin-bottom: 10px;
    width: 100%;
}

.vertical-form button {
    width: 100%;
}

#auth-page form {
    width: 100%;
    max-width: 420px;
    margin-top: 24px;
}

input,
textarea {
    font-family: var(--font);
    padding: 3px 10px;
    border: var(--light-border);
    border-radius: 8px;
    outline: none;
}

textarea {
    resize: none;
}

select {
    font-family: var(--font);
    padding: 8px 10px;
    border: var(--light-border);
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
}

#forgot-password-btn {
    color: var(--primary-purple);
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

/* =========================
   App layout (sidebar + main content)
   (used by pages/Shared/SideBarLayout.tsx)
   ========================= */

.layout-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 998;
}

.sidenav {
    background-color: var(--light-background);
    border-right: var(--light-border);
    padding: 20px 16px;
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidenav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    /* No logo in the sidebar header (logo is in the top bar),
       so avoid reserving empty space on desktop. */
    margin-bottom: 0;
}

.sidenav img {
    height: 35px;
}

.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: var(--light-border);
    background-color: white;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
}

.options-container {
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-direction: column;
    height: calc(100%);
    padding: 0px 0px 20px 0px;
    width: 100%;
}

.options-container .nav-options:last-child {
    border-top: var(--light-border);
    padding-top: 15px;
}

.nav-options {
    flex-direction: column;
    width: 100%;
}

.nav-options a {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    padding: 5px 10px;
    color: var(--light-text);
    font-weight: 500;
    cursor: pointer;
    width: calc(100% - 0px);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-options a:hover {
    background-color: var(--grey);
}

.nav-options img {
    width: 20px;
}

.nav-options .active {
    background-color: var(--primary-purple);
    color: white;
}

.nav-options .active:hover {
    background-color: var(--dark-purple);
}

.nav-options .active img {
    filter: brightness(0) invert(1);
}

/* Main content container next to the sidebar */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Top header inside app pages */
.app-topnav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 16px 0;
    border-bottom: 0;
    flex-wrap: wrap;
}

.app-topnav h2 {
    color: black;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
}

.app-topnav p {
    color: var(--light-text);
    font-weight: 400;
    margin: 4px 0 0 0;
}

.app-topnav > div:first-child {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}

.app-topnav > div:last-child {
    gap: 10px;
}

/* Right-side controls (language + profile) */
.topnav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Off-canvas sidebar behavior on smaller screens */
@media (max-width: 1024px) {
    .sidenav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 999;
    }

    /* On mobile, keep a bit of spacing for the close button */
    .sidenav-header {
        margin-bottom: 18px;
    }

    .layout-wrapper.sidebar-open .sidenav {
        transform: translateX(0);
    }

    .layout-wrapper.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .sidebar-close-btn {
        display: inline-flex;
    }

    .main-content {
        padding: 16px;
    }
}

#notifications {
    height: 18px;
    padding: 12px;
    border: var(--light-border);
    border-radius: 50px;
    cursor: pointer;
}

/* Profile dropdown (used inside .app-topnav) */
.profile-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pfp {
    height: 40px;
    width: 40px;
    cursor: pointer;
    position: relative;
    top: auto;
    right: auto;
    border-radius: 999px;
}

#message-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.message {
    padding: 16px 22px;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-weight: 500;
}

.message.success {
    background-color: #10b981;
}

.message.error {
    background-color: #ef4444;
}

#loading {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
}

/* Dropdown anchored to the avatar container */
#dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 1000;
    width: 150px;
    cursor: pointer;
    flex-direction: column;
    display: none;
    gap: 8px;
}

#dropdown:hover {
    background-color: var(--light-background);
}

#dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex; 
}

#dropdown a {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    padding: 8px;
    text-align: left;
    width: 100%;
    transition: backgorund-color 0.3s ease;
    font-weight: 400;
}

.dropdown-list {
  position: absolute;
  top: 100%;   
  left: 0;
  background: #fff;
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 100;
  min-width: 150px;
}

.dropdown-item {
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: #f2f2f2;
}


.search-input {
    display: flex;
    align-items: center;
    border: var(--light-border);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 10px;
    background: white;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-input input {
    border-width: 0px;
    width: 100%;
    max-width: none;
    outline: none;
    font-size: 14px;
}

.search-input img {
    height: 18px;
    width: 18px;
    opacity: 0.7;
    cursor: default;
}

.search-input--modern {
    width: 340px;
    min-width: 260px;
}

.search-input--modern:focus-within {
    border-color: rgba(132, 82, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(132, 82, 255, 0.12);
}

.search-input__icon {
    pointer-events: none;
}

.search-options {
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

.search-options div {
    gap: 10px;
    flex-wrap: wrap;
}

/* Keep the search icon + input on one line (prevents the broken tall textbox) */
.search-options .search-input {
    flex-wrap: nowrap;
}

/* .select {
    border: var(--light-border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    gap: 8px;
    font-size: 14px;
    color: var(--light-text);
} */

.select {
  position: relative;
  cursor: pointer;
}

.select span {
    font-weight: 500;
    color: black;
}

.table {
    overflow-x: auto;
    border-radius: 8px;
    border: var(--light-border);
    font-family: var(--font);
    width: 100%;
}

.table table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--light-background);
}

.table th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    padding: 15px 20px;
    font-size: 14px;
}

.table td {
    padding: 12px 20px;
    border-top: var(--light-border);
    font-size: 14px;
    color: black;
}

.status-circle {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-green {
    background-color: #6FCF97;
}

.status-yellow {
    background-color: #F2C94C;
}

.status-orange {
    background-color: #F2994A;
}

.status-grey {
    background-color: lightgrey;
}

.status-red {
    background-color: #EB5757;
}

.table .actions img {
    cursor: pointer;
    height: 20px;
}

.table .actions .left-space {
    margin-left: 10px;
}

.faded {
    cursor: default !important;
    opacity: 0.25;
}

.disclaimer {
    margin: 10px 0px;
    font-size: 14px;
    color: var(--very-light-text);
}

.upload-container {
    height: 250px;
    width: 100%;
    max-width: 800px;
flex-direction: column;
    border: var(--light-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-container:hover {
    background-color: var(--light-background);
}

.upload-container img {
    background-color: var(--grey);
    height: 18px;
    padding: 12px;
    border-radius: 50px;
    border: 10px solid var(--light-background);
    margin-bottom: 15px;
}

.upload-container p {
    margin: 5px 0px;
    font-size: 14px;
    color: var(--light-text);
}

.upload-container span {
    font-weight: 500;
    color: var(--dark-purple);
}

.grey-text {
    font-weight: 500;
    color: var(--very-light-text);
}

#setting-options {
    margin-bottom: 0px;
}

#popup {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#popup>div {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    width: 440px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-top: 3px solid var(--gold);
}

#popup>div h2 {
    margin: 0px;
    font-size: 20px;
}

#popup>div h2 img {
    cursor: pointer;
    filter: brightness(0);
    height: 12px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

#popup form {
    margin-top: 15px;
}

.double-select {
    width: calc(100% - 10px);
    background-color: var(--grey);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.double-select a {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 50px;
    padding: 8px 0px;
    font-size: 14px;
}

.double-select a:hover {
    background-color: #dad6df;
}

.double-select .active {
    background-color: var(--primary-purple);
    color: white;
}

.double-select .active:hover {
    background-color: var(--dark-purple);
}

.image-input {
    border: var(--light-border);
    padding: 10px;
    width: calc(100% - 20px);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: start;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 15px;
}

.image-input a {
    color: var(--light-text);
    font-size: 14px;
}

.image-input:hover {
    background-color: var(--grey);
}

#person-container {
    align-items: center !important;
    gap: 30px;
}

#person-container img {
    width: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 100%;
    border-width: 0px;
    display: block;
    border: var(--light-border);
}

#person-container>div {
    flex-direction: column;
    width: 100%;
}

#person-container h3 {
    margin: 0px 0px 12px 0px;
}

.info-row {
    width: calc(100% - 40px);
    border-radius: 8px;
    border: var(--light-border);
}

.info-row>div {
    flex-direction: column;
    border-right: var(--light-border);
    padding: 20px;
}

.info-row>div:last-child {
    border-right-width: 0px;
}

.info-row p {
    margin: 0px;
    font-size: 18px;
    font-weight: 500;
}

.info-row a {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--light-text);
}

.info-row.equal>div {
    flex: 1;
}

#class-container .info-row>div {
    flex: 1;
}

.vertical-form .search-input {
    width: calc(100% - 8px);
    margin-bottom: 10px;
}

.vertical-form .search-input input {
    width: 100%;
    margin-bottom: 0px;
}

.vertical-form .search-input img {
    filter: brightness(0.3);
    height: 12px;
}

.string-list {
    border: var(--light-border);
    border-radius: 8px;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
}

.string-list p {
    color: var(--light-text);
    font-size: 14px;
    margin: 15px;
}

.string-list a {
    width: 100%;
    border-bottom: var(--light-border);
    padding: 10px;
    margin-left: 20px;
}

.string-list a:last-child {
    border-bottom-width: 0px;
}

.vertical-form .string-list {
    margin-bottom: 10px;
}

.card {
    padding: 20px;
    width: calc(100% - 40px);
    border-radius: 8px;
    border: var(--light-border);
    margin-top: 20px;
}

.card h3 {
    margin: 0px;
}

#transcript {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

#transcript span {
    font-weight: bold;
    color: #9151F2;
}

#transcript a {
    width: calc(100% - 20px);
    background-color: #F9F7FC;
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.75;
}

.card>.table {
    margin-top: 15px;
}

#overall-counter {
    font-size: 16px;
    font-weight: 400;
    border: var(--light-border);
    border-radius: 50px;
    padding: 10px 20px;
}

#overall-counter span {
    font-weight: 500;
    padding: 0px !important;
    background-color: white !important;
    margin-left: 5px;
}

.green-score span,
.yellow-score span,
.red-score span {
    padding: 10px;
    border-radius: 50px;
}

.green-score span {
    color: #6FCF97;
    background-color: #EEF8F2;
}

.yellow-score span {
    color: #F2C94C;
    background-color: #FDF8E7;
}

.red-score span {
    color: #EB5757;
    background-color: #FDEEEE;
}

#rubric-table tbody tr td {
    padding: 25px !important;
}

.double-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}

.double-container>div {
    flex: 1;
}

#attendance-info {
    margin-top: 30px;
}

#attendance-chart {
    width: 90%;
    aspect-ratio: 1 / 1;
}

#attendance-info>div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#talk-time-info {
    margin-top: 30px;
}

#talk-time-chart {
    width: 100%;
    height: 100%;
}

#observations {
    flex-direction: column;
    color: var(--light-text) !important;
    gap: 0px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 15px;
}

#observations p {
    margin: 5px 0px;
}

#observations ol {
    padding-left: 0px !important;
}

#teacher-container,
#student-container {
    display: none;
}

#date-text {
    justify-content: start;
    margin-top: 30px;
    gap: 10px;
}

.spinner {
    width: 12px;
    height: 12px;
    border: 3px solid #ddd;
    border-top: 3px solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#popup .info-row {
    width: 100%;
    margin-top: 15px;
}

#incident-details h4 {
    margin: 25px 0px 10px 0px;
}

#incident-details p {
    margin: 0px !important;
    color: var(--light-text);
    font-size: 15px;
}

#attendance-table .status-circle {
    height: 12px;
    width: 12px;
    border: 3px solid #F9FAFB;
}

section {
    flex-direction: column;
    padding: 75px 0px;
    text-align: center;
    border-bottom: var(--light-border);
}

.purple-tag {
    color: #9151F2;
    background-color: #F9F5FF;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
}

#hero {
    position: relative;
    /* isolation: isolate; */
    padding-bottom: 0px;
}

#hero::before,
#hero::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(164, 133, 255, .3), rgba(164, 133, 255, 0));
}

#hero::before {
    left: -320px;
    top: 100px;
}

#hero::after {
    right: -320px;
    top: 100px;
    background: radial-gradient(closest-side, rgba(255, 170, 230, .3), rgba(255, 170, 230, 0));
}

section>h1 {
    font-size: 50px;
    max-width: 800px;
    margin-bottom: 0px;
}

section>h2 {
    font-size: 35px;
    margin-bottom: 0px;
}

section>p {
    color: var(--light-text);
    max-width: 700px;
}

#hero #cta {
    gap: 10px;
    margin: 15px 0px 50px 0px;
}

#hero img {
    width: 900px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

#features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px 100px 0px 100px;
}

#features-grid p {
    color: var(--light-text);
}

#features-grid img {
    background-color: #F9F5FF;
    padding: 15px;
    border-radius: 50px;
    overflow: visible;
}

#testimonial {
    background-color: #FCFAFF;
}

#testimonial>h1 {
    font-size: 40px;
    font-weight: 500;
    max-width: unset;
}

#testimonial #school-image {
    height: 50px;
}

#testimonial #person-image {
    height: 75px;
    border-radius: 50px;
    margin-top: 45px;
}

#testimonial a {
    font-weight: 600;
    font-size: 20px;
    margin: 15px 0px 10px 0px;
}

#testimonial span {
    color: #9151F2;
}

#how {
    position: relative;
    isolation: isolate;
}

#how::before,
#how::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(164, 133, 255, .3), rgba(164, 133, 255, 0));
}

#how::before {
    left: -320px;
    top: 100px;
}

#how::after {
    right: -320px;
    top: 100px;
    background: radial-gradient(closest-side, rgba(255, 170, 230, .3), rgba(255, 170, 230, 0));
}

#how img {
    max-width: 900px;
    margin-top: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

#steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 100px 100px 0px 100px;
}

#steps-container p {
    color: var(--light-text);
}

#steps-container h3 {
    margin-top: 30px;
}

#steps-container span {
    color: white;
    background-color: #9151F2;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
}

.faq-list details {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    width: 1000px;
}

.faq-list summary {
    width: 1000px;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

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

.faq-list summary::after {
    content: "+";
    font-size: 1.25rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-list p {
    margin-top: 0.5rem;
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;
}

#cta-box {
    margin-top: 80px;
    border-radius: 16px;
    width: 1200px;
    padding: 50px;
    flex-direction: column;
    color: white;
    background: linear-gradient(90deg, #7c4dff 0%, #c156ff 100%);
}

#cta-box h2 {
    font-weight: 500;
    font-size: 40px;
    margin-bottom: 0px;
}

#cta-box div {
    gap: 10px;
    margin-top: 15px;
}

footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 28px 16px;
}

footer a {
    font-size: 18px;
}

footer img {
    height: 50px;
}

footer>.start {
    flex-direction: column;
    gap: 30px;
}

footer .start div {
    gap: 30px;
    flex-wrap: wrap;
}

footer .start a {
    font-weight: 500;
    cursor: pointer;
    color: rgb(20, 20, 20);
}

footer .between {
    border-top: var(--light-border);
    margin-top: 20px;
    padding-top: 20px;
}

footer .between>div {
    gap: 20px;
}

footer .between a {
    cursor: pointer;
}

iframe {
    border: 0px solid black;
}

#no-reports {
    display: none;
    height: calc(100% - 100px);
    align-items: center;
    justify-content: center;
}

#settings-page .table {
    margin-bottom: 15px;
}

#picture-main {
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#picture-main > div {
    border: 1px solid rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    gap: 15px;
    display: none;
}

#picture-main #upload-picture {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#picture-main #upload-picture:hover {
    background-color: rgb(240, 240, 240);
}

#picture-main > div p {
    margin: 0px;
}

#picture-main h1 {
    margin: 0px;
}

#picture-main > p {
    margin: 20px;
}

.signup-header{
    position: relative;
    top : 25px;
}

.login-header{
    position: relative;
    top : 30px;
}

/* Language switcher (AR | EN) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    border: var(--light-border);
    border-radius: 999px;
    padding: 6px 10px;
    background: #f7f7fb;
    gap: 8px;
}

.lang-pill {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.lang-pill:hover {
    color: var(--purple);
    background: rgba(132, 82, 255, 0.08);
}

.lang-pill.active {
    /* Active language should keep text dark (EN requested black, not white) */
    color: #111827;
    background: rgba(132, 82, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(132, 82, 255, 0.35);
}

.lang-divider {
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.12);
}



/* ============================
   Excel Table - Forced Styling
===============================*/

.excel-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 20px !important;
  font-size: 15px !important;
}

.excel-table th {
  background: #5d2eff !important;
  color: #fff !important;
  padding: 12px 14px !important;
  text-align: left !important;
  font-weight: 600 !important;
  border: 0 !important;
}

.excel-table td {
  padding: 10px 14px !important;
  border-top: 1px solid #eaeaea !important;
  background: #ffffff !important;
}

.excel-table tr:nth-child(even) td {
  background: #f7f4ff !important;
}

.excel-table tr:hover td {
  background: #ece4ff !important;
  transition: 0.2s !important;
}

/* Progress Bar */
.progress-bar-container {
  width: 300px !important;
  height: 10px !important;
  background: #ddd !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin: 10px 0 !important;
}

.progress-bar {
  height: 10px !important;
  background: #6b39ff !important;
  width: 0% !important;
  transition: width 0.3s !important;
}

/* Loader */
.loader-inline {
  border: 3px solid #ddd !important;
  border-top: 3px solid #6b39ff !important;
  border-radius: 50% !important;
  width: 22px !important;
  height: 22px !important;
  animation: spin 0.6s linear infinite !important;
  display: inline-block !important;
  margin-right: 10px !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.download-template-btn{
    color: blue;
}

.wrong-col {
  background-color: #ffb3b3 !important;
  color: #900;
  border: 2px solid #900;
}

.Toastify{
        border-bottom: none;        
}

.invite-btn{
    padding :  2px; 
}
.invite-send{
    width: 85%;
}


/* ===== Login Page Styles (ONLY for this page) ===== */

.login-form {
  width: 100%;
  max-width: 420px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Layout */
.login-row {
  display: flex;
  gap: 20px;
  width: 100%;
}


.login-col {
  position: relative;
  flex: 1;
  width: 100%;
}
/* Inputs */
.login-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.login-input:focus {
  border-color: #9151F2;
}

/* Dropdown */
.login-dropdown {
  width: 100%;
  height: 48px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.login-dropdown-selected {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown icon */
.login-role-icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.login-arrow {
  font-size: 12px;
}

.login-dropdown-list {
  position: absolute;
  top: 52px;          /* = dropdown height */
  left: 0;
  width: 100%;        /* exactly same width as Role input */
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 0;
  z-index: 50;

  box-shadow: 0px 6px 30px rgba(0,0,0,0.15);
}

.login-dropdown-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  width: 100%;
}

/* .login-dropdown-item:hover {
  background: #f6f2ff;
} */



/* Login button */
.login-btn {
  width: 100%;
  height: 52px;
  background: #9151F2;
  color: white;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #713dbe;
}

/* Forgot link */
.login-forgot {
  margin-top: 18px;
  display: block;
  text-align: center;
  font-weight: 600;
  color: #9151F2;
  cursor: pointer;
}

/* Sign up link (Login page) */
.login-signup {
  margin-top: 10px;
  display: block;
  text-align: center;
  font-weight: 600;
  color: #9151F2;
  cursor: pointer;
}

.login-col.email-col {
  flex: 0 0 65%;
}

.login-col.role-col {
  flex: 0 0 35%;
}

@media (max-width: 520px) {
  .login-row {
    flex-direction: column;
    gap: 16px;
  }

  .login-col.email-col,
  .login-col.role-col {
    flex: 0 0 100%;
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* Main container */
.reset-wrapper {
  height: 100vh;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Card */
.reset-card {
  width: 100%;
  max-width: 520px; /* كبرنا البوكس 1.5x */
  background: #fff;
  padding: 45px 40px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Logo inside card */
.reset-logo {
  width: 140px;
  margin: 0 auto 20px;
  display: block;
}

/* Title */
.reset-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

/* Sub-text */
.reset-subtext {
  color: #777;
  margin-bottom: 25px;
}

/* Inputs */
.reset-input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 8px;
  outline: none;
  font-size: 15px;
}

.reset-input:focus {
  border-color: #9b59b6;
}

/* Password meter bar */
.meter-container {
  height: 7px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 5px;
}

.meter-fill {
  height: 100%;
  width: 0%;
  transition: 0.3s;
}

/* Password meter label */
.meter-label {
  font-size: 13px;
}

/* Checkbox rows */
.reset-check {
  display: flex;
  align-items: center;
  margin: 8px 0 18px;
  font-size: 14px;
}

/* Confirm error */
.confirm-error {
  color: red;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Button */
.reset-btn {
  width: 100%;
  background: #8e44ad;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: 0.2s;
}

.reset-btn:hover {
  background: #7d3cb5;
}

.reset-btn:disabled {
  background: #c9a8d8;
  cursor: not-allowed;
}

.filter-select {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 15px;
}

.filter-dropdown {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
/* .border-t{
    border: none !important;
} */

.bg-black{
    background-color: #98A2B3 !important;
}

.class-dropdown{
    height: 43px;
}

.class-input{
    height: 43px;
}


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

.animate-fade {
  animation: fadeIn 0.2s ease-out;
}

.animate-scale {
  animation: scaleIn 0.2s ease-out;
}

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

.animate-fadeIn {
  animation: fadeIn 0.15s ease-out;
}


.add-subject{
    width: 91%;
}

.add-subject-btn{
    width: 10%;
    margin-left: 1%;
}


.school-class-table{
    line-height: 50px;
}

.Upload-Container{
    width: 75%;
    margin-left: 18%;
}


.sidebar-active {
    background-color: var(--primary-purple) !important;
    color: white !important;
    border-radius: 8px;
}

.sidebar-active:hover {
    background-color: var(--dark-purple) !important;
}

.sidebar-active img {
    filter: brightness(0) invert(1) !important;
}

.nav-options a:hover {
    background-color: var(--grey) !important;
}


.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    color: var(--light-text);
    border-radius: 8px;
    transition: 0.2s ease;
}

/* Hover */
.nav-item:hover {
    background: var(--grey);
}

/* Active link */
.active-link {
    background-color: var(--primary-purple) !important;
    color: white !important;
}

/* Active Hover */
.active-link:hover {
    background-color: var(--dark-purple) !important;
}

/* Active icon to white */
.active-link img {
    filter: brightness(0) invert(1) !important;
}

/* ===========================================================
   FINAL REAL FIX — strongest selector
   =========================================================== */

.nav-options a.sidebar-active {
    background-color: var(--primary-purple) !important;
    color: white !important;
    border-radius: 8px;
}

.nav-options a.sidebar-active:hover {
    background-color: var(--dark-purple) !important;
}

.nav-options a.sidebar-active img {
    filter: brightness(0) invert(1) !important;
}

/* Prevent hover overriding active */
.nav-options a:not(.sidebar-active):hover {
    background-color: var(--grey) !important;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  animation: fadeIn .3s ease forwards;
  transform: translateY(20px);
  opacity: 0;
  width: min(775px, 92vw);
  max-height: 90vh;
  height: auto;
  overflow-y: auto;
  position: relative;
}

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

.close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
}

.upload-container.drag-active {
    background-color: #f0fdf4; 
    border-color: #4CAF50; 
    transform: scale(1.02); 
    transition: all 0.2s ease;
}


.danger-btn {
    background-color: #dc2626;
    color: white;
}
.danger-btn:hover {
    filter: brightness(0.95);
}


.primary-btn {
    background-color: #2563eb;
    color: white;
}
.primary-btn:hover {
    filter: brightness(0.95);
}


.warning-btn {
    background-color: #f59e0b;
    color: white;
}
.warning-btn:hover {
    filter: brightness(0.95);
}


/* =========================
   Responsive adjustments
   ========================= */

@media (max-width: 1024px) {
  .app-topnav {
    padding-bottom: 12px;
  }

  .app-topnav h2 {
    font-size: 22px;
  }

  #hero img {
    width: 100%;
    max-width: 900px;
    height: auto;
  }

  #features-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 24px 0px 24px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0px;
  }

  section > h1 {
    font-size: 34px;
    padding: 0 16px;
  }

  section > h2 {
    font-size: 26px;
    padding: 0 16px;
  }

  section > p {
    padding: 0 16px;
  }

  #hero::before,
  #hero::after {
    display: none;
  }

  #features-grid {
    grid-template-columns: 1fr;
    padding: 32px 16px 0px 16px;
  }

  .search-options div {
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
  }

  .search-input input {
    width: 100%;
  }

  .upload-container {
    padding: 28px 16px;
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  section > h1 {
    font-size: 28px;
  }

  .purple-tag {
    padding: 8px 14px;
    font-size: 13px;
  }

  .table {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================
   PaginationControls (src/components/Pagination/PaginationControls.tsx)
   Used by Reports, Upload Center, Camera, Organization
   ============================= */

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  flex-wrap: wrap;
}

.pagination-controls .page-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.pagination-controls .page-btn.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.pagination-controls .page-btn.disabled,
.pagination-controls .page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-controls .page-info {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.rows-per-page {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.rows-per-page select {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
}
