:root {
    --primary: #F39C12;
    --primary-hover: #e67e22;
    --blue-student: #3498DB;
    --text-dark: #2C3E50;
    --text-grey: #7F8C8D;
    --input-bg: #4A5568;
    --bg-body: #F4F6F8;
    --white: #FFFFFF;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-body);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-dark);
}

.app-container {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    height: 95vh;
    max-height: 800px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* HEADER ORANGE LINE */
.top-line {
    background: var(--primary);
    height: 8px;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 10;
}

/* ECRANE */
.screen {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* LOGO */
.logo-area { text-align: center; margin-top: 20px; margin-bottom: 20px; }
.logo-img { 
    width: 70px; height: 70px; background: #FFE0B2; border-radius: 50%; 
    display: inline-flex; align-items: center; justify-content: center; font-size: 35px; margin-bottom: 10px;
}
h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--text-dark); }
.subtitle { color: var(--primary); font-size: 13px; font-weight: 700; margin-top: 5px; }

/* TOGGLE (Parinte/Elev) */
.toggle-box {
    background: #F0F2F5;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    margin-bottom: 25px;
}
.toggle-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 700;
    color: #BDC3C7;
    cursor: pointer;
    transition: 0.3s;
}
.toggle-btn.active { background: var(--white); color: var(--text-dark); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* INPUTS STYLE */
.form-group { margin-bottom: 15px; }
label { font-size: 11px; font-weight: 800; color: var(--text-grey); text-transform: uppercase; display: block; margin-bottom: 6px; }

.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0AEC0; 
    font-size: 16px;
}
input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 10px;
    border: none;
    background: var(--input-bg);
    color: white;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
input::placeholder { color: #A0AEC0; }
input:focus { outline: 2px solid var(--primary); }

/* BUTOANE */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

/* LINKS */
.link-small { 
    font-size: 12px; color: var(--primary); font-weight: 700; text-align: right; display: block; margin-top: 5px; cursor: pointer; 
}
.bottom-text {
    text-align: center; margin-top: auto; font-size: 13px; color: var(--text-grey); padding-bottom: 10px;
}
.bottom-text span { color: var(--primary); font-weight: 800; cursor: pointer; }

/* DASHBOARD PARINTE */
.dash-card-add {
    border: 2px dashed #CBD5E0;
    border-radius: 16px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #A0AEC0;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.2s;
}
.dash-card-add:hover { border-color: var(--primary); color: var(--primary); background: #FFFBF5; }
.plus-circle {
    width: 45px; height: 45px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); margin-bottom: 10px;
    color: var(--text-dark);
}

/* CHAT */
.chat-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; }
#chat-msgs { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 15px; border-radius: 12px; max-width: 85%; font-size: 14px; line-height: 1.5; }
.bot-msg { background: #F7F9FC; border: 1px solid #E2E8F0; align-self: flex-start; }
.user-msg { background: var(--primary); color: white; align-self: flex-end; }

.chat-input-box { display: flex; gap: 10px; margin-top: 10px; }
.chat-input-box input { background: #EDF2F7; color: #333; border: 1px solid #E2E8F0; }
.chat-input-box input::placeholder { color: #999; }
/* CLASS SELECTION GRID */
.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 coloane */
    gap: 12px;
}

.class-card {
    background: var(--white);
    border: 2px solid #E2E8F0;
    border-radius: 15px;
    padding: 15px 5px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    font-size: 14px;
}

.class-card:hover {
    border-color: var(--primary);
    background-color: #FFF9E6;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
