* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f5f7fb;
    color: #222;
    line-height: 1.6;
}

header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo a {
    text-decoration: none;
    color: #1e4f9c;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

nav a {
    margin-left: 12px;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
}

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

.welcome {
    margin-left: 15px;
    font-weight: 500;
}

.btn, .btn-small {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #1e4f9c;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.9rem;
}

.btn.primary, .btn-small.primary {
    background: #1e4f9c;
    color: #fff;
}

main {
    padding-bottom: 40px;
}

.card {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.card h1, .card h2 {
    margin-bottom: 12px;
}

.card p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

form {
    max-width: 420px;
    margin: 0 auto;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

button {
    border: none;
}

button.btn, input[type="submit"].btn {
    margin-top: 16px;
    width: 100%;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Speaker button */

.speaker-btn {
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    border: none;
    background: none;
}

/* Simple mode */

.simple-mode body {
    font-size: 1.2rem;
}

.simple-toggle {
    margin: 10px 0;
    font-size: 1rem;
}

/* Footer */

footer {
    border-top: 1px solid #ddd;
    background: #fff;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Progress label */

.progress-label {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    background: #e4f5e7;
    color: #136b24;
}

/* Responsive */

@media (max-width: 600px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.level-btn {
    margin-right: 6px;
    margin-bottom: 6px;
}

.level-active {
    background: #1e4f9c;
    color: #fff;
}
.admin-badge{
  background:#ffd700;
  color:#333;
  padding:2px 8px;
  border-radius:12px;
  font-size:11px;
  margin-left:6px;
}


/* --- AuraLearns brand + nav --- */
.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:14px;}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#111;}
.brand-logo{width:38px;height:38px;object-fit:contain;}
.brand-text{font-weight:700;font-size:1.1rem;}
.nav{display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
.nav a{text-decoration:none;color:#1e4f9c;font-weight:600;}
.nav a:hover{text-decoration:underline;}

/* --- Modal popup --- */
.modal{display:none;position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.45);align-items:center;justify-content:center;padding:16px;}
.modal-content{background:#fff;border-radius:14px;max-width:420px;width:100%;padding:18px 18px 16px 18px;box-shadow:0 10px 30px rgba(0,0,0,0.2);}
.close{float:right;font-size:24px;cursor:pointer;}
.modal-actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;}

/* Alerts */
.alert{padding:10px 12px;border-radius:10px;margin:10px 0;}
.alert ul{margin-left:18px;}
.alert.error{background:#ffe8e8;border:1px solid #ffb2b2;}
.alert.success{background:#e9fff0;border:1px solid #b7f2c9;}
