@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@700&family=Oxygen:wght@400;700&family=Space+Grotesk:wght@500;600&display=swap');

/* [LOADING-SCREEN] PWA loading screen with driving jokes */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4A73E8 0%, #5E87F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 400px;
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-title {
    font-family: 'Mukta', sans-serif;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: white;
}

.loading-tagline {
    font-size: 1.2em;
    margin: 0 0 25px 0;
    opacity: 0.9;
    font-weight: 600;
}

.loading-joke {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.95;
    font-style: italic;
    min-height: 50px;
}

.open-app-btn {
    background: white;
    color: #4A73E8;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInBounce 0.5s ease-out;
}

.open-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.open-app-btn:active {
    transform: translateY(0);
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

body {
    font-family: 'Oxygen', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    padding-top: 150px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #f5f7fa;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    border-bottom: 3px solid #4A73E8;
    background-color: #f5f7fa;
    z-index: 1000;
    height: 60px;
    box-sizing: border-box;
}

.header-logout-btn {
    position: absolute;
    left: 15px;
}

.header-home-btn {
    position: absolute;
    left: 15px;
    font-size: 1.8em;
}

.header-settings-btn {
    position: absolute;
    right: 15px;
}

.header-students-btn {
    position: absolute;
    right: 65px;
    background: rgba(74, 115, 232, 0.1);
    color: #4A73E8;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s;
}

.header-students-btn:hover {
    background: rgba(74, 115, 232, 0.2);
    transform: translateY(-1px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header img {
    height: 35px;
    width: auto;
}

h1 {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    color: #4A73E8;
    margin: 0;
    font-size: 1.2em;
    line-height: 1.2;
}

.logged-in-text {
    color: #4A73E8;
    font-weight: 600;
    font-size: 0.7em;
    line-height: 1;
}

.header-logout-btn,
.header-home-btn,
.header-settings-btn {
    background: none;
    border: none;
    text-decoration: none;
    font-size: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-logout-btn:hover,
.header-home-btn:hover,
.header-settings-btn:hover {
    transform: scale(1.1);
}

/* Header Bottom Row */
.header-bottom-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Header Instructor Status Badges */
.header-instructor-statuses {
    display: flex;
    gap: 6px;
}

.header-instructor-badge {
    padding: 4px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Mukta', sans-serif;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.header-instructor-badge:hover {
    transform: scale(1.15);
    animation: none;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

.header-instructor-badge.available {
    background: #00C851;
}

.header-instructor-badge.unavailable {
    background: #ffbb33;
}

.header-instructor-badge.on-lesson {
    background: #ff4444;
}

/* Contact Menu Popup */
.contact-menu {
    position: fixed;
    z-index: 10000;
}

.contact-menu-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 150px;
}

.contact-menu-header {
    padding: 10px 16px;
    background: #4A73E8;
    color: white;
    font-weight: 700;
    font-family: 'Mukta', sans-serif;
    font-size: 14px;
}

.contact-menu-availability {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.contact-menu-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.contact-menu-item:last-child {
    border-bottom: none;
}

.contact-menu-item:hover {
    background: #f5f7fa;
    text-decoration: none;
}

/* Futuristic Universal Search Bar */
.universal-search-container {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

.search-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #4A73E8, #00d4ff, #4A73E8, #00d4ff);
    background-size: 400% 400%;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
    z-index: -1;
}

.universal-search-container:focus-within .search-glow {
    opacity: 0.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.universal-search-input {
    width: 100%;
    padding: 12px 24px;
    font-family: 'Space Grotesk', monospace;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(74, 115, 232, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(74, 115, 232, 0.1);
}

.universal-search-input::placeholder {
    color: #666;
    font-weight: 500;
}

.universal-search-input:focus {
    outline: none;
    border-color: #4A73E8;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(74, 115, 232, 0.3);
    transform: translateY(-2px);
}

.search-pulse {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4A73E8;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.universal-search-container:focus-within .search-pulse {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0.3;
    }
}

.flash-messages {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
}

.flash-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-error {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.flash-success {
    background-color: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.flash-info {
    background-color: #eef;
    color: #33c;
    border-left: 4px solid #33c;
}

.welcome-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-modal {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-modal.tim {
    border-top: 5px solid #4A73E8;
}

.welcome-modal.martyn {
    border-top: 5px solid #FC832B;
}

.welcome-modal.linzi {
    border-top: 5px solid #FF69B4;
}

.welcome-modal h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.welcome-modal.tim h2 {
    color: #4A73E8;
}

.welcome-modal.martyn h2 {
    color: #FC832B;
}

.welcome-modal.linzi h2 {
    color: #FF69B4;
}

.welcome-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-modal-close:hover {
    color: #333;
}

.welcome-content {
    font-size: 1.1em;
    line-height: 1.6;
}

.welcome-lessons {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.welcome-lessons li {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #4A73E8;
}

.welcome-modal.martyn .welcome-lessons li {
    border-left-color: #FC832B;
}

.welcome-modal.linzi .welcome-lessons li {
    border-left-color: #FF69B4;
}

.welcome-quote {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
    font-size: 1em;
}

h2 {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    color: #4A73E8;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
}

a {
    color: #4A73E8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.sync-btn {
    display: inline-block;
    background-color: #FC832B;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 700;
    min-height: 44px;
    line-height: 1.5;
}

.sync-btn:hover {
    background-color: #e77320;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    background-color: white;
    color: #4A73E8;
    border: 2px solid #4A73E8;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oxygen', sans-serif;
    min-height: 44px;
    line-height: 1.5;
}

.filter-btn:hover {
    background-color: #f0f4ff;
}

.filter-btn.active {
    background-color: #4A73E8;
    color: white;
}

.instructor-status-bar {
    background: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.instructor-status-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.95em;
}

.instructor-statuses {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.instructor-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructor-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.contact-icon {
    font-size: 1.4em;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

.instructor-status.available {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.instructor-status.unavailable {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.instructor-status.on-lesson {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

section {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lesson {
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border-left: 4px solid #4A73E8;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #f0f4ff;
    line-height: 1.4;
}

.lesson.tim {
    border-left-color: #4A73E8;
    background-color: #f0f4ff;
}

.lesson.martyn {
    border-left-color: #FC832B;
    background-color: #fff5ed;
}

.lesson.linzi {
    border-left-color: #FF69B4;
    background-color: #fff0f7;
}

/* [TEST-COORD-FRONTEND] [ASSESSMENT-LESSON-FRONTEND] Lesson type colors */
.lesson-assessment {
    border-left-color: #FFB300 !important;
    background-color: #FFF9E6 !important;
}

.lesson-mock-test {
    border-left-color: #9C27B0 !important;
    background-color: #F3E5F5 !important;
}

.lesson-driving-test {
    border-left-color: #FF6F00 !important;
    background-color: #FFF3E0 !important;
}

/* Gap / Unavailability lessons - distinct gray styling */
.lesson-unavailability {
    border-left-color: #9E9E9E !important;
    background: repeating-linear-gradient(
        45deg,
        #f5f5f5,
        #f5f5f5 10px,
        #e8e8e8 10px,
        #e8e8e8 20px
    ) !important;
    opacity: 0.85;
}

.lesson-unavailability .lesson-content b {
    color: #666;
    font-style: italic;
}

.lesson b {
    font-size: 1em;
    color: #2c3e50;
}

.lesson-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.lesson-time {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}

.lesson-time-simple {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
    margin-top: 4px;
}

.lesson-location-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.lesson-location {
    flex: 1;
    font-size: 0.9em;
}

.travel-time {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.traffic-status {
    font-size: 0.9em;
    white-space: nowrap;
}

.lesson-actions {
    margin-top: 6px;
}

.lesson-actions a {
    margin-right: 8px;
    font-size: 0.85em;
    display: inline-block;
    padding: 6px 10px;
    min-height: 32px;
    line-height: 1.3;
}

.countdown {
    display: inline-block;
    background-color: #4A73E8;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 700;
}

.countdown.soon {
    background-color: #FC832B;
}

.countdown.ready {
    background-color: #4A73E8;
    opacity: 0.8;
}

form {
    max-width: 600px;
}

form label {
    display: block;
    margin: 10px 0;
    font-size: 1.05em;
    min-height: 44px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

form input[type="checkbox"],
form input[type="radio"] {
    margin-right: 8px;
}

/* [TEST-COORD-FRONTEND] Date and time input styling - bigger and more obvious */
.date-time-wrapper {
    position: relative;
    width: 100%;
}

.date-time-input,
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 18px 20px !important;
    font-size: 18px !important;
    font-weight: 500;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    background-color: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
    box-sizing: border-box;
}

.date-time-input:hover,
input[type="date"]:hover,
input[type="time"]:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.date-time-input:focus,
input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* Visible placeholder for empty date/time inputs */
.date-time-input:invalid::before,
input[type="date"]:invalid::before,
input[type="time"]:invalid::before {
    content: attr(data-placeholder);
    color: #95a5a6;
    font-weight: 400;
}

.date-time-input:invalid:focus::before,
input[type="date"]:invalid:focus::before,
input[type="time"]:invalid:focus::before {
    content: '';
}

/* Show calendar/clock icons more prominently */
.date-time-input::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.date-time-input:hover::-webkit-calendar-picker-indicator,
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Floating helper text for date/time inputs */
.date-time-helper {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 16px;
    pointer-events: none;
    transition: opacity 0.2s;
}

.date-time-input:valid ~ .date-time-helper,
input[type="date"]:valid ~ .date-time-helper,
input[type="time"]:valid ~ .date-time-helper,
.date-time-input:focus ~ .date-time-helper,
input[type="date"]:focus ~ .date-time-helper,
input[type="time"]:focus ~ .date-time-helper {
    opacity: 0;
}

form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
    margin-top: 10px;
}

button {
    background-color: #4A73E8;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 15px;
    font-weight: 700;
    min-height: 44px;
    line-height: 1.5;
}

button:hover {
    background-color: #3a5ec7;
}

/* ========================================
   [UNIVERSAL-TILE] ActionTile - Single button/tile pattern
   ======================================== */

/* CSS Design Tokens for ActionTile */
:root {
  --action-tile-bg: #ffffff;
  --action-tile-border: #e1e8ed;
  --action-tile-hover-bg: #f5f7fa;
  --action-tile-active-bg: #e8eef5;
  --action-tile-text: #2c3e50;
  --action-tile-subtitle: #7f8c8d;
  --action-tile-icon-size: 1.5em;
  --action-tile-badge-bg: #FC832B;
  --action-tile-badge-text: #ffffff;
  --action-tile-disabled-opacity: 0.5;
  --action-tile-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --action-tile-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Base ActionTile Structure */
.action-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--action-tile-bg);
  border: 1px solid var(--action-tile-border);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--action-tile-shadow);
  min-height: 44px; /* Touch target accessibility */
  position: relative;
  color: var(--action-tile-text); /* Default text color, can be overridden by parent */
}

.action-tile:hover {
  background: var(--action-tile-hover-bg);
  box-shadow: var(--action-tile-shadow-hover);
  transform: translateY(-1px);
}

.action-tile:active {
  background: var(--action-tile-active-bg);
  transform: translateY(0);
}

.action-tile:focus-visible {
  outline: 2px solid #4A73E8;
  outline-offset: 2px;
}

.action-tile[aria-disabled="true"] {
  opacity: var(--action-tile-disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
}

/* ActionTile Icon */
.action-tile__icon {
  font-size: var(--action-tile-icon-size);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ActionTile Content */
.action-tile__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* Enable text truncation */
}

.action-tile__title {
  font-weight: 600;
  color: inherit; /* Inherit color from parent to support gradient backgrounds */
  font-size: 1em;
  line-height: 1.3;
}

.action-tile__subtitle {
  font-size: 0.85em;
  color: inherit; /* Inherit color from parent to support gradient backgrounds */
  opacity: 0.9; /* Slight transparency for hierarchy */
  line-height: 1.2;
}

/* ActionTile Badge */
.action-tile__badge {
  background: var(--action-tile-badge-bg);
  color: var(--action-tile-badge-text);
  font-size: 0.75em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
}

/* ActionTile Variants */
.action-tile--compact {
  padding: 8px 12px;
  gap: 8px;
  min-height: 36px;
}

.action-tile--compact .action-tile__icon {
  font-size: 1.2em;
}

.action-tile--compact .action-tile__title {
  font-size: 0.9em;
}

.action-tile--panel {
  padding: 16px 20px;
  gap: 16px;
  border-radius: 12px;
}

.action-tile--panel .action-tile__icon {
  font-size: 2em;
}

.action-tile--panel .action-tile__title {
  font-size: 1.1em;
}

.action-tile--panel .action-tile__subtitle {
  font-size: 0.9em;
}

/* Mobile Responsive ActionTile */
@media (max-width: 768px) {
  .action-tile {
    padding: 10px 14px;
  }
  
  .action-tile--panel {
    padding: 14px 16px;
  }
}

.empty-state {
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.show-me-tell-me {
    background-color: #fff5ed;
    border: 2px solid #FC832B;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.show-me-tell-me h3 {
    color: #FC832B;
    margin-top: 0;
}

.question {
    background-color: white;
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
    border-left: 3px solid #4A73E8;
}

.smart-suggestions {
    background-color: #f0f4ff;
    border: 2px solid #4A73E8;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.smart-suggestions h3 {
    color: #4A73E8;
    margin-top: 0;
}

strong {
    color: #4A73E8;
}

.fixed-action-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-bottom: 3px solid #4A73E8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.action-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.action-bar-title {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    color: #4A73E8;
    font-size: 1.3em;
}

.action-bar-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.action-bar-buttons button {
    margin: 0;
}

.cancel-btn,
.edit-btn,
.copy-btn,
.feedback-btn,
.save-btn {
    display: inline-block;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
    line-height: 1.5;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.save-btn {
    background-color: #4A73E8;
}

.save-btn:hover {
    background-color: #3a5ec7;
    transform: translateY(-1px);
}

.edit-btn {
    background-color: #4A73E8;
}

.edit-btn:hover {
    background-color: #3a5ec7;
    text-decoration: none;
    transform: translateY(-1px);
}

.copy-btn {
    background-color: #27ae60;
}

.copy-btn:hover {
    background-color: #229954;
    transform: translateY(-1px);
}

.feedback-btn {
    background-color: #f39c12;
}

.feedback-btn:hover {
    background-color: #e67e22;
    text-decoration: none;
    transform: translateY(-1px);
}

.cancel-btn {
    background-color: #95a5a6;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
    text-decoration: none;
    transform: translateY(-1px);
}

.page-content {
    padding-top: 80px;
}

.plan-tile {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    border-left: 5px solid #4A73E8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.plan-tile.risk-tile {
    background-color: #fff5f0;
    border-left-color: #e74c3c;
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4ff;
}

.tile-icon {
    font-size: 1.8em;
    line-height: 1;
}

.tile-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.tile-subtitle {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.student-access-tile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white !important; /* Force white text for gradient background */
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-access-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.student-access-tile .tile-header {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.student-access-tile .tile-title {
    color: white !important;
    font-weight: 700;
}

.student-access-tile .tile-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* [UNIVERSAL-TILE] Ensure ActionTile components use white text on gradient */
.student-access-tile .action-tile__title,
.student-access-tile .action-tile__subtitle {
    color: white !important;
}

/* [TEST-COORD-FRONTEND] Tests & Mock Tests tile styling */
.tests-access-tile {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white !important; /* Force white text for gradient background */
    cursor: pointer;
    transition: all 0.3s ease;
}

.tests-access-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.tests-access-tile .tile-header {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
    position: relative;
}

.tests-access-tile .tile-title {
    color: white !important;
    font-weight: 700;
}

.tests-access-tile .tile-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* [UNIVERSAL-TILE] Ensure ActionTile components use white text on gradient */
.tests-access-tile .action-tile__title,
.tests-access-tile .action-tile__subtitle {
    color: white !important;
}

/* [RECEIPT-MGMT-FRONTEND] Receipt tile styling */
.xero-connect-tile {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border: none;
    color: white !important;
}

.xero-connect-tile .action-tile__title,
.xero-connect-tile .action-tile__subtitle {
    color: white !important;
}

.receipt-upload-tile {
    background: linear-gradient(135deg, #06d6a0, #00a878);
    border: none;
    color: white !important;
}

.receipt-upload-tile .action-tile__title,
.receipt-upload-tile .action-tile__subtitle {
    color: white !important;
}

.receipt-list-tile {
    background: linear-gradient(135deg, #5e60ce, #4a4bb5);
    border: none;
    color: white !important;
}

.receipt-list-tile .action-tile__title,
.receipt-list-tile .action-tile__subtitle {
    color: white !important;
}

.needs-receipts-tile {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    color: white !important;
}

.needs-receipts-tile .action-tile__title,
.needs-receipts-tile .action-tile__subtitle {
    color: white !important;
}

/* [ROUTE-BUILDER-FRONTEND] Route Builder tile styling */
.route-builder-tile {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white !important;
}

.route-builder-tile .action-tile__title,
.route-builder-tile .action-tile__subtitle {
    color: white !important;
}

/* [TEST-COORD-FRONTEND] Notification badge for pending requests */
.notification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white !important;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.tile-content {
    line-height: 1.7;
    color: #2c3e50;
}

.risk-list {
    margin: 0;
    padding-left: 25px;
    list-style-type: none;
}

.risk-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #c0392b;
    font-weight: 500;
}

.risk-list li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.coaching-intro {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

.coaching-list {
    margin: 0;
    padding-left: 30px;
}

.coaching-list li {
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.plan-section {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-card {
    background-color: #f0f4ff;
    border-left: 4px solid #4A73E8;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.topic-card h3 {
    margin-top: 0;
    color: #4A73E8;
    font-size: 1.2em;
}

.hint {
    margin-top: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    font-size: 0.95em;
}

.question-card {
    background-color: white;
    border: 2px solid #4A73E8;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.question-header {
    margin-bottom: 10px;
}

.question-type {
    background-color: #FC832B;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85em;
}

.question-text {
    font-size: 1.05em;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.answer {
    background-color: #f0f4ff;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #4A73E8;
    font-size: 0.95em;
}

.instructor-note {
    background-color: #fff5ed;
    border: 2px solid #FC832B;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.topic-hints {
    margin-top: 25px;
}

.hint-card {
    background-color: #f0f4ff;
    border-left: 4px solid #4A73E8;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.hint-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4A73E8;
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
}

.hint-card p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.5;
}

.section-intro {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.question-card.show-me .question-type {
    background-color: #4A73E8;
}

.question-card.tell-me .question-type {
    background-color: #FC832B;
}

.question-card.show-me {
    border-color: #4A73E8;
}

.question-card.tell-me {
    border-color: #FC832B;
}

.answer-text {
    background-color: #f0f4ff;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.95em;
}

.topics-covered {
    margin-bottom: 25px;
}

.topics-covered ul {
    padding-left: 20px;
}

.topics-covered li {
    margin: 8px 0;
    color: #2c3e50;
}

.feedback-content {
    margin-bottom: 25px;
}

.feedback-box {
    background-color: #f0f4ff;
    border-left: 4px solid #4A73E8;
    padding: 20px;
    border-radius: 6px;
    line-height: 1.6;
    color: #2c3e50;
}

.feedback-note {
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 0.9em;
    font-style: italic;
}

.feedback-rating {
    margin-bottom: 25px;
}

.rating-display {
    font-size: 1.1em;
    color: #2c3e50;
}

/* Mobile Responsiveness - Breakpoint 1024px and below */
@media (max-width: 1024px) {
    .action-bar-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-bar-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Mobile Responsiveness - Breakpoint 768px and below */
@media (max-width: 768px) {
    body {
        padding: 12px;
        padding-top: 140px;
        padding-bottom: 20px;
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .header {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.3em;
        margin-top: 20px;
    }
    
    section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(33.333% - 6px);
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .lesson {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .lesson b {
        font-size: 0.95em;
    }
    
    .countdown {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        padding: 4px 10px;
        font-size: 0.8em;
        text-align: center;
        width: fit-content;
    }
    
    .fixed-action-bar {
        position: sticky;
        top: 0;
    }
    
    .action-bar-content {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-bar-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .action-bar-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .action-bar-buttons button,
    .action-bar-buttons a {
        flex: 1;
        min-height: 44px;
    }
    
    .page-content {
        padding-top: 120px;
    }
    
    .topic-card,
    .hint-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .question-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .feedback-box {
        padding: 15px;
    }
    
    .plan-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .plan-tile {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .tile-header {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .tile-icon {
        font-size: 1.5em;
    }
    
    .tile-title {
        font-size: 1.2em;
    }
}

/* Mobile Responsiveness - Breakpoint 600px and below */
@media (max-width: 600px) {
    body {
        padding: 10px;
        padding-top: 70px;
        padding-bottom: 100px;
    }
    
    .header {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px 10px;
        height: 60px;
    }
    
    .header-logout-btn,
    .header-home-btn {
        font-size: 1.3em;
    }
    
    h1 {
        font-size: 1.3em;
    }
    
    .filter-buttons {
        flex-direction: row;
        gap: 6px;
    }
    
    .filter-btn {
        flex: 1;
        min-height: 38px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .instructor-status-bar {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .instructor-status-label {
        font-size: 0.85em;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .instructor-statuses {
        gap: 8px;
    }
    
    .instructor-status {
        padding: 5px 12px;
        font-size: 0.85em;
    }
    
    .lesson-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-top: 6px;
    }
    
    .lesson-actions a {
        flex: 1;
        padding: 6px 8px;
        background-color: #4A73E8;
        color: white;
        border-radius: 3px;
        text-align: center;
        margin-right: 0;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .action-bar-content {
        padding: 8px;
    }
    
    .action-bar-buttons {
        flex-direction: row;
        gap: 8px;
    }
    
    .action-bar-buttons button,
    .action-bar-buttons a {
        flex: 1;
        min-height: 38px;
        padding: 8px 10px;
        margin: 0;
        font-size: 0.9rem;
    }
    
    .page-content {
        padding-top: 85px;
    }
    
    button {
        width: 100%;
        min-height: 38px;
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .cancel-btn,
    .edit-btn,
    .copy-btn {
        width: 100%;
        min-height: 38px;
        padding: 10px;
        display: block;
        text-align: center;
        font-size: 0.9rem;
    }
    
    form {
        max-width: 100%;
    }
    
    form label {
        font-size: 0.95rem;
        margin: 10px 0 6px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
    }
    
    form input[type="checkbox"],
    form input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    form textarea {
        font-size: 1rem;
        padding: 12px;
        min-height: 120px;
    }
    
    .topic-card h3,
    .hint-card h4 {
        font-size: 1.1em;
    }
    
    .question-card {
        border-width: 1px;
    }
}

/* Mobile Responsiveness - Breakpoint 400px and below */
@media (max-width: 400px) {
    body {
        padding: 8px;
        padding-top: 70px;
        padding-bottom: 100px;
    }
    
    .header img {
        height: 30px;
    }
    
    h1 {
        font-size: 1.2em;
    }
    
    h2 {
        font-size: 1.1em;
    }
    
    section {
        padding: 12px;
    }
    
    .lesson {
        padding: 8px;
    }
    
    .topic-card,
    .hint-card,
    .question-card {
        padding: 10px;
    }
    
    .plan-tile {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .tile-header {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .tile-icon {
        font-size: 1.3em;
    }
    
    .tile-title {
        font-size: 1.1em;
    }
    
    .action-bar-title {
        font-size: 1em;
    }
}

/* Fixed Search Bar Below Header */
.search-bar-fixed {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(74, 115, 232, 0.15);
    padding: 10px 15px;
    box-shadow: 0 4px 20px rgba(74, 115, 232, 0.08);
    z-index: 999;
}

.search-bar-fixed .universal-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar-fixed .universal-search-input {
    font-size: 15px;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
    animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% {
        border-color: #e0e0e0;
        box-shadow: 0 4px 20px rgba(74, 115, 232, 0.1);
    }
    50% {
        border-color: #4A73E8;
        box-shadow: 0 4px 25px rgba(74, 115, 232, 0.25);
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 150px;
    }
    
    .search-bar-fixed {
        padding: 8px 10px;
        left: 0;
        right: 0;
    }
    
    .search-bar-fixed .universal-search-container {
        max-width: 100%;
        position: relative;
    }
    
    .search-bar-fixed .universal-search-input {
        font-size: 16px;
        padding: 10px 12px;
        width: 100%;
        box-sizing: border-box;
    }
}

.students-header {
    margin-bottom: 20px;
}

.students-header p {
    margin: 5px 0;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Oxygen', sans-serif;
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #4A73E8;
    box-shadow: 0 0 0 3px rgba(74, 115, 232, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.student-tile {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-height: 44px;
    display: block;
}

.student-tile:hover {
    border-color: #4A73E8;
    box-shadow: 0 4px 12px rgba(74, 115, 232, 0.15);
    text-decoration: none;
    transform: translateY(-2px);
}

.student-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.student-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
    color: #666;
}

.lesson-count {
    color: #4A73E8;
    font-weight: 600;
}

.latest-lesson {
    color: #888;
}

.student-detail-header {
    margin-bottom: 25px;
}

.back-link {
    display: inline-block;
    color: #4A73E8;
    text-decoration: none;
    margin-bottom: 10px;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.lesson-history {
    margin-bottom: 30px;
}

.lesson-history-card {
    background: white;
    border-left: 4px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lesson-history-card.tim {
    border-left-color: #4A73E8;
}

.lesson-history-card.martyn {
    border-left-color: #FC832B;
}

.lesson-history-card.linzi {
    border-left-color: #FF69B4;
}

.lesson-date {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.lesson-time {
    color: #666;
    margin-bottom: 8px;
}

.lesson-instructor {
    color: #4A73E8;
    font-weight: 600;
    margin-bottom: 5px;
}

.lesson-location {
    color: #666;
    margin-bottom: 10px;
}

.lesson-topics {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.topic-tag {
    background: #f0f4ff;
    color: #4A73E8;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.lesson-rating {
    margin-top: 10px;
    color: #666;
}

.lesson-feedback-preview {
    margin-top: 15px;
    padding: 15px;
    background: #fffbf0;
    border-radius: 8px;
    border: 1px solid #ffe4a3;
}

.lesson-feedback-preview p {
    margin: 8px 0;
    color: #666;
}

.lesson-feedback-preview a {
    color: #4A73E8;
    font-weight: 600;
    text-decoration: none;
}

.lesson-feedback-preview a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 10px;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.in-progress {
    background: #fff3cd;
    color: #856404;
}

.status-badge.upcoming {
    background: #d1ecf1;
    color: #0c5460;
}

@media (max-width: 768px) {
    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
    
    .student-tile {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .student-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .lesson-history-card {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .student-tile {
        padding: 12px;
    }
    
    .lesson-history-card {
        padding: 12px;
    }
    
    .topic-tags {
        gap: 6px;
    }
    
    .topic-tag {
        font-size: 0.8em;
        padding: 3px 8px;
    }
}

.smtm-header {
    margin-bottom: 20px;
}

.smtm-header p {
    margin: 5px 0;
}

.smtm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.legend-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85em;
}

.legend-badge.show-me {
    background: #4A73E8;
    color: white;
}

.legend-badge.tell-me {
    background: #FC832B;
    color: white;
}

.smtm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.smtm-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 44px;
}

.smtm-card.show-me {
    border-left: 5px solid #4A73E8;
}

.smtm-card.tell-me {
    border-left: 5px solid #FC832B;
}

.smtm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.smtm-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8em;
    margin-bottom: 12px;
}

.smtm-card.show-me .smtm-type-badge {
    background: #e8f0fe;
    color: #4A73E8;
}

.smtm-card.tell-me .smtm-type-badge {
    background: #fff4e6;
    color: #FC832B;
}

.smtm-question {
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.smtm-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.smtm-card.revealed .smtm-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.smtm-answer-label {
    font-weight: 700;
    color: #4A73E8;
    margin-bottom: 8px;
}

.smtm-answer-text {
    color: #666;
    line-height: 1.6;
}

.smtm-tap-hint {
    margin-top: 12px;
    font-size: 0.85em;
    color: #999;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.smtm-card.revealed .smtm-tap-hint {
    opacity: 0;
    height: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .smtm-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 12px;
    }
    
    .smtm-card {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .smtm-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .smtm-legend {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
}

@media (max-width: 400px) {
    .smtm-card {
        padding: 12px;
    }
    
    .smtm-legend {
        padding: 10px;
    }
}

/* Planning Tools Styles */
.area-clusters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.cluster-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cluster-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.cluster-stats {
    color: #666;
    margin: 10px 0;
    font-size: 0.95em;
}

.cluster-details {
    margin: 15px 0;
}

.cluster-details summary {
    cursor: pointer;
    color: #4A73E8;
    font-weight: 600;
    padding: 8px 0;
}

.cluster-details summary:hover {
    text-decoration: underline;
}

.student-list {
    margin: 10px 0;
    padding-left: 25px;
}

.student-list li {
    padding: 5px 0;
    color: #555;
}

.cluster-suggestion {
    background: #f0f7ff;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #1976d2;
}

.route-section {
    margin: 20px 0;
}

.route-section h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.route-list {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.route-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.route-item:last-child {
    border-bottom: none;
}

.route-number {
    background: #4A73E8;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.route-info {
    flex: 1;
}

.route-info strong {
    color: #333;
}

.route-info small {
    color: #666;
}

.btn-optimize {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-optimize:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.time-saved {
    margin-left: 10px;
    font-size: 0.9em;
}

.gap-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gap-time {
    font-weight: 700;
    color: #333;
    font-size: 1.2em;
}

.gap-timerange {
    color: #666;
    font-size: 0.95em;
}

.gap-location {
    color: #666;
    margin: 8px 0;
}

.gap-students {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    color: #1976d2;
}

.area-insights {
    margin-top: 15px;
}

.insight-bar-container {
    margin-bottom: 25px;
}

.insight-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #333;
}

.insight-label strong {
    font-size: 1.1em;
}

.insight-label span {
    color: #666;
    font-size: 0.9em;
}

.insight-bar-wrapper {
    background: #e0e0e0;
    border-radius: 10px;
    height: 35px;
    overflow: hidden;
}

.insight-bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: white;
    font-weight: 600;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.insight-count {
    white-space: nowrap;
}

.insight-suggestion {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff3e0;
    border-radius: 6px;
    color: #e65100;
    font-size: 0.9em;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analytics-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analytics-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.analytics-value {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.analytics-label {
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .area-clusters {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-bar {
        padding-left: 10px;
        font-size: 0.9em;
    }
}

/* Mobile fixes for Plan View and Feedback */
@media (max-width: 600px) {
    /* Plan view action buttons - stack on mobile */
    .plan-view-header + div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .plan-view-header + div button {
        width: 100% !important;
    }
    
    /* Plan topic cards - reduce padding on mobile */
    .plan-topic-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .plan-topic-header {
        flex-wrap: wrap;
        font-size: 0.95em;
    }
    
    .plan-topic-description {
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    .plan-topic-risks ul {
        padding-left: 20px;
    }
    
    .plan-tip {
        font-size: 0.85em;
        padding: 10px;
    }
    
    /* Quick rating buttons - stack better on mobile */
    .quick-rating-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .quick-rating-btn {
        padding: 15px 8px !important;
        min-height: 90px;
    }
    
    .quick-rating-stars {
        font-size: 18px !important;
    }
    
    .quick-rating-label {
        font-size: 12px !important;
        word-break: break-word;
        line-height: 1.2;
        text-align: center;
    }
    
    /* Feedback topics reference - better mobile layout */
    .feedback-topics-ref {
        padding: 12px !important;
    }
    
    .feedback-topics-ref > div {
        gap: 6px !important;
    }
    
    .feedback-topics-ref > div > div {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    
    /* Plan section headings */
    .plan-section h3 {
        font-size: 1em !important;
    }
    
    .plan-view-header h2 {
        font-size: 1.3em !important;
    }
    
    .plan-view-subtitle {
        font-size: 0.9em !important;
    }
}

@media (max-width: 400px) {
    /* Extra small screens - full width rating buttons for readability */
    .quick-rating-buttons {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        max-width: 100%;
    }
    
    .quick-rating-btn {
        padding: 15px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        min-height: auto;
    }
    
    .quick-rating-stars {
        font-size: 20px !important;
        margin-right: 15px;
    }
    
    .quick-rating-label {
        font-size: 14px !important;
        text-align: left;
    }
}

.selected-topics-area {
    background-color: #f0f4ff;
    border: 2px solid #4A73E8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.selected-topics-area h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #4A73E8;
    font-size: 1.2em;
}

.selected-topics-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 30px;
}

.topic-badge {
    background-color: #4A73E8;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.topic-badge:hover {
    background-color: #3a5ec7;
}

.topic-badge:hover::after {
    content: " ✕";
    margin-left: 4px;
}

.empty-selection {
    color: #7f8c8d;
    font-style: italic;
}

.accordion-container {
    margin-bottom: 25px;
}

.accordion-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.accordion-item:hover {
    border-color: #4A73E8;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
    min-height: 44px;
    user-select: none;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header:active {
    background-color: #dee2e6;
}

.accordion-icon {
    font-size: 1.2em;
    color: #4A73E8;
    font-weight: bold;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.accordion-title {
    font-family: 'Mukta', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    flex-grow: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.accordion-content.expanded {
    max-height: 2000px;
    padding: 15px 20px 20px 20px;
}

.accordion-content label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    margin: 0;
    min-height: 44px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 4px;
    padding-left: 8px;
}

.accordion-content label:hover {
    background-color: #f8f9fa;
}

.accordion-content input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .selected-topics-area {
        padding: 15px;
    }
    
    .selected-topics-area h3 {
        font-size: 1.1em;
    }
    
    .topic-badge {
        font-size: 0.85em;
        padding: 5px 10px;
    }
    
    .accordion-header {
        padding: 14px 16px;
    }
    
    .accordion-title {
        font-size: 1em;
    }
    
    .accordion-content.expanded {
        padding: 12px 16px 16px 16px;
    }
    
    .accordion-content label {
        padding: 10px 8px;
    }
}

/* Lesson tile with dedicated action bar */
.lesson {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.lesson-content {
  flex: 1;
  padding-bottom: 8px;
}

.lesson-rating {
  margin-top: 8px;
}

/* Tile Action Bar - Dedicated space at bottom */
.tile-actions-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 5px 5px;
  margin: 0 -10px -10px;
}

.tile-action-icon {
  font-size: 0.9em;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 36px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
  font-weight: 500;
  border: 2px solid #FF6B35;
}

.tile-action-icon:hover {
  transform: translateY(-2px);
  background: #4A73E8;
  box-shadow: 0 4px 8px rgba(74, 115, 232, 0.3);
  color: white;
}

/* Plan Tile Styles */
.plan-tile {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.plan-tile-header {
  padding: 20px;
  border-bottom: 2px solid #4A73E8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.plan-title-section h2 {
  margin: 0;
  color: #4A73E8;
  font-size: 1.5em;
}

.plan-subtitle {
  margin: 4px 0 0 0;
  color: #666;
  font-size: 0.95em;
}

.plan-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.plan-tile-body {
  padding: 20px;
}

.plan-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.plan-section h3 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 1.1em;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #4A73E8;
}

.risk-content {
  display: grid;
  gap: 10px;
}

.risk-item {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 10px;
  border-radius: 6px;
  color: #856404;
  font-size: 0.95em;
}

.briefing-content {
  background: #e7f3ff;
  border-left: 4px solid #4A73E8;
  padding: 14px;
  border-radius: 6px;
  line-height: 1.5;
  color: #333;
  font-size: 0.95em;
}

.tips-list {
  margin: 0;
  padding-left: 20px;
}

.tips-list li {
  margin-bottom: 6px;
  color: #333;
  line-height: 1.5;
  font-size: 0.95em;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-pill {
  background: #4A73E8;
  color: white;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.9em;
  font-weight: 500;
}

.smtm-card {
  background: white;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.smtm-type {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: 600;
  margin-bottom: 6px;
}

.smtm-question {
  margin-bottom: 6px;
  color: #333;
  font-size: 0.95em;
}

.smtm-answer {
  color: #495057;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.9em;
}

/* Plan Creator Styles */
.plan-creator-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.foundation-lessons-section h3,
.selected-topics-section h3,
.smtm-section h3 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 18px;
}

.foundation-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.foundation-lesson-tile {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.foundation-lesson-tile:hover {
  border-color: #4A73E8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 115, 232, 0.2);
}

.foundation-lesson-tile.selected {
  background: #E8F0FE;
  border-color: #4A73E8;
}

.foundation-lesson-number {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.foundation-lesson-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 16px;
}

.foundation-lesson-desc {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.4;
}

.selected-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-topic-chip {
  background: #E8F0FE;
  color: #4A73E8;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-topic-chip .remove-btn {
  background: none;
  border: none;
  color: #4A73E8;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.level-badge {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
}

.level-badge.introduction { background: #ff4444; }
.level-badge.development { background: #ff9800; }
.level-badge.refinement { background: #4caf50; }

.smtm-questions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smtm-question-item {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: start;
}

.smtm-type {
  background: #4A73E8;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.smtm-text {
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.5;
}

.level-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.level-popup {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
}

.level-popup h3 {
  margin: 0 0 8px 0;
  color: #2c3e50;
}

.level-popup p {
  margin: 0 0 20px 0;
  color: #7f8c8d;
  font-size: 14px;
}

.level-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.level-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.level-btn:hover {
  border-color: #4A73E8;
  transform: translateX(4px);
}

.level-color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.level-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-info strong {
  color: #2c3e50;
  font-size: 16px;
}

.level-info span {
  color: #7f8c8d;
  font-size: 13px;
}

/* Feedback Form Styles */
.feedback-form-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topic-content-section {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
}

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.topic-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 20px;
}

.content-item {
  margin-bottom: 16px;
}

.content-item:last-child {
  margin-bottom: 0;
}

.content-item h4 {
  margin: 0 0 8px 0;
  color: #4A73E8;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-item p {
  margin: 0;
  color: #2c3e50;
  line-height: 1.6;
  font-size: 14px;
}

.content-item.risks {
  background: #fff3cd;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
}

.content-item.tip {
  background: #e8f5e9;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.smtm-instructor-view {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
}

.smtm-instructor-view h3 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 18px;
}

.smtm-instructor-item {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.smtm-instructor-item:last-child {
  margin-bottom: 0;
}

.smtm-question-header {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.smtm-question-text {
  flex: 1;
  color: #2c3e50;
  font-size: 15px;
  font-weight: 500;
}

.smtm-answer {
  background: #e8f0fe;
  padding: 12px;
  border-radius: 6px;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.5;
}

.smtm-answer strong {
  color: #4A73E8;
}

.rating-selection-section {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.rating-selection-section h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 18px;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.rating-button input[type="radio"] {
  display: none;
}

.rating-card {
  background: #f8f9fa;
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.rating-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.rating-button input:checked + .rating-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.rating-stars {
  font-size: 24px;
  margin-bottom: 8px;
}

.rating-label {
  font-size: 13px;
  font-weight: 600;
}

/* Quick Feedback Rating Buttons */
.quick-rating-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.quick-rating-btn {
  background: #f8f9fa;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quick-rating-btn:hover {
  background: #e9ecef;
  border-color: #667eea;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.quick-rating-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.quick-rating-stars {
  font-size: 20px;
  line-height: 1;
}

.quick-rating-label {
  font-size: 11px;
  font-weight: 600;
  color: #495057;
}

.quick-rating-btn:hover .quick-rating-label {
  color: #667eea;
}

.feedback-topics-ref {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
}

/* Skill Assessment Styles */
.skill-assessment-container {
  margin: 20px 0;
}

.skill-topic-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.skill-topic-header {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-assessment-row {
  margin: 12px 0;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.skill-assessment-row:last-child {
  border-bottom: none;
}

.skill-name {
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
  font-size: 14px;
}

.skill-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.skill-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.skill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-btn.needs-work {
  border-color: #ffc107;
}

.skill-btn.needs-work:hover {
  background: #fff3cd;
  border-color: #ffb300;
}

.skill-btn.needs-work.active {
  background: #ffc107;
  color: white;
  border-color: #ffb300;
}

.skill-btn.good {
  border-color: #17a2b8;
}

.skill-btn.good:hover {
  background: #e8f4f8;
  border-color: #138496;
}

.skill-btn.good.active {
  background: #17a2b8;
  color: white;
  border-color: #138496;
}

.skill-btn.excellent {
  border-color: #28a745;
}

.skill-btn.excellent:hover {
  background: #d4edda;
  border-color: #218838;
}

.skill-btn.excellent.active {
  background: #28a745;
  color: white;
  border-color: #218838;
}

.feedback-note-section {
  margin: 24px 0;
}

.feedback-note-section label {
  display: block;
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
  font-size: 14px;
}

.feedback-note-section textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.feedback-note-section textarea:focus {
  outline: none;
  border-color: #667eea;
}

.feedback-actions {
  margin-top: 24px;
  text-align: center;
}

.feedback-actions button {
  min-width: 200px;
}

.feedback-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Lesson Suggestion Banner */
.suggestion-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.suggestion-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
}

.suggestion-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 4px;
  font-weight: 600;
}

.suggestion-lesson {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.suggestion-reason {
  font-size: 14px;
  opacity: 0.95;
}

.btn-apply-suggestion {
  background: white !important;
  color: #667eea !important;
  border: 2px solid white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
  max-width: 80px;
}

.btn-apply-suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== STUDENT PROFILE TILE ===== */
.profile-tile {
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.profile-header h2 {
  margin: 0;
  font-size: 1.8em;
  color: #333;
}

.status-badge {
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
}

.profile-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.profile-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #4A73E8;
  font-size: 1.3em;
}

.profile-section h4 {
  margin-top: 16px;
  margin-bottom: 12px;
  color: #555;
  font-size: 1.1em;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item label {
  font-weight: 600;
  color: #666;
  font-size: 0.9em;
}

.info-item span {
  color: #333;
  font-size: 1em;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  color: #4A73E8;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
}

.foundation-progress {
  margin-top: 20px;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.topic-badge {
  background: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.financial-item {
  background: white;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.financial-item label {
  font-weight: 600;
  color: #666;
}

.financial-item span {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

.financial-item.outstanding span {
  color: #f44336;
}

.payment-history {
  margin-top: 20px;
}

.payments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.payment-item {
  background: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95em;
  border-left: 4px solid #4CAF50;
}

.info-block {
  margin-bottom: 16px;
}

.info-block label {
  display: block;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.info-block p {
  margin: 0;
  color: #333;
  line-height: 1.6;
  background: white;
  padding: 12px;
  border-radius: 6px;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-primary {
  background: #4A73E8 !important;
  color: white !important;
}

.btn-secondary {
  background: #6c757d !important;
  color: white !important;
}

.btn-danger {
  background: #dc3545 !important;
  color: white !important;
  border: 1px solid #dc3545 !important;
}

.btn-danger:hover {
  background: #c82333 !important;
}

/* ===== FLOATING SAVE BUTTON ===== */
.floating-save-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid #e0e0e0;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== GLOBAL DYNAMIC FOOTER ===== */
.global-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid #e0e0e0;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.global-footer.hidden {
  transform: translateY(100%);
}

.footer-actions {
  display: flex;
  gap: 12px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.footer-actions button {
  flex: 1;
  max-width: 200px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.footer-actions button:active {
  transform: translateY(0);
}

.footer-actions .btn-primary {
  background: #4A73E8;
  color: white;
}

.footer-actions .btn-secondary {
  background: #6c757d;
  color: white;
}

.footer-actions .btn-danger {
  background: #dc3545;
  color: white;
}

/* Add bottom padding to tile container when footer is visible */
.tile-container.has-footer {
  padding-bottom: 90px;
}

/* ===== PROGRESS SETUP TILE ===== */
.progress-setup-tile {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.progress-setup-tile h2 {
  margin-bottom: 12px;
  color: #333;
  font-size: 1.8em;
}

.progress-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.progress-topic-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.topic-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  font-size: 1.1em;
}

.level-buttons {
  display: flex;
  gap: 8px;
}

.btn-level {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s;
}

.btn-intro {
  background: #FFE0B2;
  color: #E65100;
}

.btn-intro:hover, .btn-intro.selected {
  background: #FF9800;
  color: white;
  border-color: #E65100;
  transform: scale(1.05);
}

.btn-dev {
  background: #FFF9C4;
  color: #F57F17;
}

.btn-dev:hover, .btn-dev.selected {
  background: #FFC107;
  color: white;
  border-color: #F57F17;
  transform: scale(1.05);
}

.btn-ref {
  background: #C8E6C9;
  color: #2E7D32;
}

.btn-ref:hover, .btn-ref.selected {
  background: #4CAF50;
  color: white;
  border-color: #2E7D32;
  transform: scale(1.05);
}

.new-driver-option {
  text-align: center;
  margin: 32px 0;
  padding: 24px;
  background: #f0f4ff;
  border-radius: 12px;
}

.btn-new-driver {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-new-driver:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.progress-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.progress-summary h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #4A73E8;
}

.summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-badge {
  background: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== STUDENTS LIST TILE ===== */
.students-list-tile {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.students-list-tile h2 {
  margin-bottom: 24px;
  color: #333;
  font-size: 1.8em;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.student-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid #4A73E8;
}

.student-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.student-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.student-name {
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
}

.student-status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  color: white;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
}

.student-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #666;
  font-size: 0.9em;
}

/* ===== SEARCH PROFILE TILE ===== */
.search-profile-tile {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-profile-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

.search-profile-tile h3 {
  margin: 0 0 16px 0;
  font-size: 1.6em;
}

.search-profile-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.search-profile-stats span {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9em;
}

.search-profile-cta {
  text-align: right;
  font-size: 0.9em;
  opacity: 0.9;
  font-weight: 600;
}

/* [PLAN-VIEW-STYLES] Plan View Tile Styling */
.plan-view-header {
  margin-bottom: 20px;
}

.plan-view-subtitle {
  color: #666;
  margin: 8px 0 0 0;
  font-size: 0.95em;
}

.plan-view-location {
  color: #4A73E8;
  margin: 4px 0 0 0;
  font-size: 0.9em;
}

.plan-section {
  margin-bottom: 30px;
}

.plan-section h3 {
  color: #4A73E8;
  margin: 0 0 16px 0;
  font-size: 1.3em;
  border-bottom: 2px solid #4A73E8;
  padding-bottom: 8px;
}

.plan-topic-card {
  background: white;
  border-left: 4px solid #4A73E8;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plan-topic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-topic-description {
  color: #444;
  line-height: 1.6;
  margin: 12px 0;
}

.plan-topic-risks {
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  padding: 12px;
  margin-top: 12px;
  border-radius: 4px;
}

.plan-topic-risks ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.plan-topic-risks li {
  margin: 4px 0;
  color: #856404;
}

.plan-tip {
  background: #e8f4f8;
  border-left: 3px solid #17a2b8;
  padding: 12px;
  margin-top: 12px;
  border-radius: 4px;
  color: #0c5460;
}

.plan-topic-drills {
  background: #f0f9ff;
  border-left: 3px solid #0891b2;
  padding: 12px;
  margin-top: 12px;
  border-radius: 4px;
}

.plan-topic-drills ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.plan-topic-drills li {
  margin: 4px 0;
  color: #0e7490;
}

.plan-briefing {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plan-key-points {
  background: white;
  padding: 16px 16px 16px 40px;
  border-radius: 8px;
  list-style: disc;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plan-key-points li {
  margin: 10px 0;
  line-height: 1.6;
  color: #333;
}

.plan-coaching-questions {
  background: white;
  padding: 16px 16px 16px 40px;
  border-radius: 8px;
  list-style: decimal;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plan-coaching-questions li {
  margin: 12px 0;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
}

.smtm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.smtm-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s;
}

.smtm-card:hover {
  border-color: #4A73E8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 115, 232, 0.2);
}

.smtm-question {
  margin-bottom: 12px;
  color: #495057;
  font-size: 0.95em;
}

.smtm-answer {
  color: #28a745;
  font-size: 0.9em;
  border-top: 1px solid #e9ecef;
  padding-top: 12px;
}

.plan-level-text {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
  color: #666;
}

.plan-topic-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.plan-topic-header strong {
  flex: 1;
  min-width: 150px;
}

/* Mock Test Student Selection Cards */
.student-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.student-card-selectable {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.student-card-selectable:hover {
  border-color: #4A73E8;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 115, 232, 0.15);
}

.student-card-selectable.selected {
  border-color: #4A73E8;
  background: #e8f0fe;
  border-width: 3px;
}

.student-card-selectable .student-name {
  font-weight: 600;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 8px;
}

.student-card-selectable .student-info {
  color: #666;
  font-size: 0.9em;
}

/* Mock Test Route Selection */
.route-area-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn-route-area {
  flex: 1;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1em;
  font-weight: 600;
}

.btn-route-area:hover {
  border-color: #4A73E8;
  background: #f8f9ff;
  transform: translateY(-2px);
}

.btn-route-area.selected {
  border-color: #4A73E8;
  background: #e8f0fe;
  border-width: 3px;
}

.route-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-route {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-route:hover {
  border-color: #4A73E8;
  background: #f8f9ff;
}

.btn-route.selected {
  border-color: #4A73E8;
  background: #e8f0fe;
  border-width: 3px;
}

/* Mock Test Review Summary */
.review-summary {
  background: #f8f9ff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.review-item:last-child {
  border-bottom: none;
}

.smtm-preview {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.smtm-preview h4 {
  margin-top: 0;
  color: #333;
}

.smtm-item {
  padding: 10px;
  background: #f8f9ff;
  border-radius: 8px;
  margin: 10px 0;
}

/* Tile Actions */
.tile-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* [ROUTE-BUILDER-FRONTEND] Route Builder Styling */
.route-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.route-template-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.route-template-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.route-template-card h3 {
  color: #333;
  margin: 0 0 12px 0;
  font-size: 18px;
}

.route-template-description {
  color: #666;
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.route-template-info {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #888;
}

.generate-route-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.generate-route-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.generate-route-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.generated-route-card {
  background: linear-gradient(135deg, #d4fc79, #96e6a1);
  border: 2px solid #28a745;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.generated-route-card h3 {
  margin: 0 0 12px 0;
  color: #155724;
}

.route-description {
  color: #155724;
  margin: 0 0 20px 0;
}

.route-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.route-stat {
  font-size: 16px;
  color: #155724;
}

.route-stat strong {
  font-size: 24px;
  display: block;
  margin-top: 4px;
}

.route-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* [GIFT-CARD-SYSTEM] Filter buttons */
.btn-filter {
  padding: 10px 20px;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-filter:hover {
  background: #f0f3ff;
}

.btn-filter.active {
  background: #667eea;
  color: white;
}

.btn-secondary {
  padding: 10px 20px;
  border: 2px solid #6c757d;
  background: white;
  color: #6c757d;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #6c757d;
  color: white;
}

/* [STUDENT-ASSESSMENT] Assessment Modal Styles */
.assessment-type-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.assessment-option {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.assessment-option:hover {
  border-color: #4A73E8;
  background: #f0f4ff;
  transform: translateX(5px);
}

.assessment-icon {
  font-size: 36px;
  min-width: 50px;
  text-align: center;
}

.assessment-details h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 18px;
}

.assessment-details p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .assessment-option {
    padding: 15px;
  }
  
  .assessment-icon {
    font-size: 28px;
    min-width: 40px;
  }
  
  .assessment-details h3 {
    font-size: 16px;
  }
  
  .assessment-details p {
    font-size: 13px;
  }
}

/* [STUDENT-ASSESSMENT] Modal overlay styles */
.universal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.universal-modal.active {
  opacity: 1;
  pointer-events: all;
}

.universal-modal .modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

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

.universal-modal .modal-header {
  padding: 25px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.universal-modal .modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.universal-modal .modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.universal-modal .modal-close:hover {
  background: #f1f3f5;
  color: #333;
}

.universal-modal .modal-body {
  padding: 25px;
}

@media (max-width: 600px) {
  .universal-modal {
    padding: 10px;
  }
  
  .universal-modal .modal-content {
    max-height: 95vh;
  }
  
  .universal-modal .modal-header {
    padding: 20px;
  }
  
  .universal-modal .modal-header h2 {
    font-size: 20px;
  }
  
  .universal-modal .modal-body {
    padding: 20px;
  }
}
