/* Basic Reset / Box Sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Container Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 25px;
    border-bottom: 1px solid #ccc;
    background-color: #ffffff;
    margin-bottom: 2em;
}

/* Logo Styling */
.logo {
    /* Flexbox handles alignment, no need for inline-block */
    flex-shrink: 0; /* Prevent logo from shrinking if menu gets too wide */
}

.logo img {
    max-height: 50px;         /* Adjust max height as needed */
    display: block;          /* Prevents extra space below image */
}

/* Menu (UL) Styling */
.menu {
    display: flex;            /* Lay out list items horizontally */
    align-items: center;     /* Vertically align items in the menu */
    list-style: none;        /* Remove default bullet points */
}

/* Menu Item (LI) Styling */
.menu li {
    margin-left: 20px;        /* Space between menu items (adjust as needed) */
}

/* Styling for BOTH standard links (<a>) and the logout button */
.menu a,
.menu .menu-link-style { /* Target both 'a' and the button */
    display: inline-block; /* Allows padding */
    padding: 8px 12px;    /* Padding for clickable area */
    color: #333;          /* Link color */
    text-decoration: none;  /* Remove underline */
    font-family: sans-serif; /* Or your preferred font */
    font-size: 1rem;        /* Adjust font size */
    transition: color 0.2s ease; /* Smooth hover effect */

    /* Reset button-specific styles for the logout button */
    background: none;
    border: none;
    cursor: pointer;
    font: inherit; /* Inherit font styles from parent */
}

/* Hover effect for BOTH */
.menu a:hover,
.menu .menu-link-style:hover {
    color: #007bff;         /* Hover color (adjust as needed) */
    /* text-decoration: underline; Optional: Add underline on hover */
}

/* Specific styling for the logout form to ensure no interference */
.logout-form {
    display: inline; /* Keep form itself from taking block space */
    margin: 0;
    padding: 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    min-width: 160px;
    z-index: 1000;
}

.dropdown-menu li a {
    padding: 8px 12px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Registration */

/* ---------- Auth Split Layout ---------- */
.auth-split {
    max-width: 900px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* LEFT SIDE */
.auth-left {
    padding: 48px 44px;
}

/* RIGHT SIDE */
.auth-right {
    padding: 48px 40px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
}

/* ---------- Features ---------- */
.features-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    font-size: 0.95rem;
    color: #374151;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.features-list li:last-child {
    border-bottom: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-right {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

/* ---------- Form Fields ---------- */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #abafb5;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
    color: #aaa;
}

/* Focus state */
input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Help text */
.help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #888;
}

/* Errors */
.field-error {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #dc2626;
}

/* ---------- Primary Button ---------- */
.btn-primary-full {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
}

.btn-primary-full:hover {
    background: #1e40af;
}

.btn-primary-full:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ---------- Footer Links ---------- */
.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 0.85rem;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Checkout styling */

    :root {
      --primary: #0078d7;
      --primary-dark: #005fa8;
      --bg: #f5f7fb;
      --text: #1f2937;
      --muted: #6b7280;
      --card-bg: #ffffff;
      --border: #e5e7eb;
    }

    * {
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                   Roboto, Helvetica, Arial, sans-serif;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
    }

    .page {
      min-height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .pricing-container {
      display:block;
      max-width: 420px;
      width: 100%;
      height: auto;
      background: var(--card-bg);
      border: 1px solid #dfdfdf;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      padding: 32px;
      text-align: center;
      margin-right: 1em;
    }

    .badge {
      display: inline-block;
      background: rgba(0, 120, 215, 0.1);
      /*color: var(--primary);*/
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .checkout-badge {
      display: inline-block;
      background: rgba(0, 120, 215, 0.1);
      color: var(--primary);
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 16px;
    }

    h1 {
      margin: 0 0 8px;
      font-size: 28px;
    }

    .subtitle {
      color: var(--muted);
      font-size: 15px;
      margin-bottom: 32px;
    }

    .price {
      font-size: 44px;
      font-weight: 700;
      margin: 16px 0;
      color: var(--primary);
    }

    .price span {
      font-size: 16px;
      font-weight: 500;
      color: var(--muted);
    }

    .features {
      list-style: none;
      padding: 0;
      margin: 24px 0 32px;
      text-align: left;
    }

    .features li {
      display: flex;
      align-items: center;
      margin-bottom: 12px;
      font-size: 15px;
    }

    .features li::before {
      content: "✓";
      color: var(--primary);
      font-weight: bold;
      margin-right: 10px;
    }

    .checkout-form {
      margin-top: 8px;
    }

    .checkout-button {
      width: 100%;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 10px;
      padding: 14px 18px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.05s ease;
    }

    .checkout-button:hover {
      background: var(--primary-dark);
    }

    .checkout-button:active {
      transform: translateY(1px);
    }

    .fine-print {
      margin-top: 16px;
      font-size: 13px;
      color: var(--muted);
    }

    @media (max-width: 480px) {
      .pricing-container {
        padding: 24px;
      }

      h1 {
        font-size: 24px;
      }

      .price {
        font-size: 36px;
      }
    }


/*Subscription expired */

.renew-subscription-title {
    display: block;
    margin: auto;
    text-align: center;
}

/* Lesson Library */

.lesson-library-header { text-align: center; margin-bottom: 30px; }
.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.lesson-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.lesson-card h4 { margin-top: 0; color: #2c3e50; }
.lesson-intro {
    font-size: 0.95em;
    color: #34495e;
    flex-grow: 1; /* Allows the text to take up available space */
    margin-bottom: 15px;
}
.add-form select, .add-form button {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.add-form button {
    margin-top: 10px;
    background-color: #27ae60;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-color: #27ae60;
}
.add-form button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Unassign button */

.unassign-form select, .unassign-form button {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.unassign-form button {
    margin-top: 10px;
    background-color: #3498db;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-color: #3498db;
}
.unassign-form button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/*.student-selector-form {
    max-width: 500px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}*/
.student-selector-form label { font-weight: bold; margin-right: 10px; }
.student-selector-form select { padding: 8px; border-radius: 5px; border: 1px solid #ccc; }

.student-selector-form {
    display: flex;
    max-width: 75%;
    justify-content: center;
    align-items: center;
    gap: 20px; / Adds space between the filter elements /
    flex-wrap: wrap; / Allows filters to wrap on smaller screens */
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 20px;
    /*background-color: #dfdfdf;*/
    border-radius: 8px;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-weight: bold; }
.filter-group select { padding: 8px; border-radius: 5px; border: 1px solid #ccc; }

.add-form button.assigned {
    background-color: #7f8c8d; /* Grey color for assigned button */
    border-color: #7f8c8d;
    cursor: default;
}

/* Curriculum */

.create-custom-subject-wrapper {
    margin-top: 2em;
}

