/* modern.css - Based on Landing Page Template */

:root {
    --felt-bg: #f5e6d0;
    --felt-bg-light: #faf3ea;
    --felt-blue: #3a7ecf;
    --felt-blue-light: #5a9ee8;
    --felt-orange: #e8943a;
    --felt-green: #5ab34e;
    --felt-yellow: #e8c93a;
    --felt-red: #d94545;
    --felt-purple: #8e5abf;
    --felt-brown: #7a5c3e;
    --felt-brown-light: #a0845e;
    --text-dark: #3d2e1e;
    --text-medium: #5a4633;
    --text-light: #8a7560;
    --card-bg: #fffcf7;
    --shadow-soft: 0 4px 20px rgba(61, 46, 30, 0.08);
    --shadow-medium: 0 8px 30px rgba(61, 46, 30, 0.12);
    --shadow-strong: 0 12px 40px rgba(61, 46, 30, 0.18);
    --stitch: 2px dashed rgba(61, 46, 30, 0.2);
    --radius: 20px;
    --radius-lg: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--felt-bg);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a08560' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Fredoka', sans-serif;
}

/* ─── Layout Shell ─── */
.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: rgba(245, 230, 208, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: var(--stitch);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
}

.brand img {
    height: 48px;
    border-radius: 12px;
}

.brand span {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-dark);
}

.app-main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ─── UI Components ─── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    border: 2px dashed rgba(61, 46, 30, 0.08);
    box-shadow: var(--shadow-soft);
}

.btn {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--felt-orange), #d6832e);
    color: #fff;
    box-shadow: 0 4px 18px rgba(232, 148, 58, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 148, 58, 0.45);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--felt-brown);
    border: 2px dashed var(--felt-brown);
}

.btn-secondary:hover {
    background: var(--felt-brown);
    color: #fff;
    border-style: solid;
    transform: translateY(-2px);
}

/* ─── Forms ─── */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 2px dashed rgba(61, 46, 30, 0.15);
    background: var(--card-bg);
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--felt-orange);
    box-shadow: 0 0 0 4px rgba(232, 148, 58, 0.1);
}

/* Helpers */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ─── Teacher Layout ─── */
.teacher-layout {
    display: flex;
    flex: 1;
    width: 100%;
    margin: 0;
    max-width: 100%;
    padding: 0 !important;
}

.teacher-sidebar {
    width: 250px;
    background: var(--card-bg);
    border-right: 2px dashed rgba(61, 46, 30, 0.1);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: calc(100vh - 85px);
}

.teacher-main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(61, 46, 30, 0.05);
    color: var(--text-dark);
}

.sidebar-link.active {
    background: var(--felt-blue);
    color: white;
}

.breadcrumb-bar {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.breadcrumb-bar a {
    color: var(--felt-blue);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-bar a:hover {
    text-decoration: underline;
}