@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root{
--primary:#0d47a1;
--secondary:#1abc9c;
--accent:#f39c12;
--bg:#f2f6fc;
--card:#ffffff;
--text:#0f172a;
--radius:18px;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
font-family:'Poppins',system-ui;
background:var(--bg);
color:var(--text);
}

.container{
max-width:1200px;
margin:auto;
padding:20px;
}

/* HEADER */
.main-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 20px;
background:#4e73df;
color:white;
position:sticky;
top:0;
z-index:1000;
}

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

.menu-btn{
font-size:26px;
cursor:pointer;
}

/* SIDE MENU */
.side-menu{
height:100%;
width:0;
position:fixed;
top:0;
right:0;
background:#1e1e2f;
overflow-x:hidden;
transition:0.4s;
padding-top:60px;
z-index:1001;
}

.side-menu a{
padding:14px 25px;
text-decoration:none;
font-size:16px;
color:white;
display:flex;
align-items:center;
gap:10px;
border-bottom:1px solid #333;
}

.side-menu a:hover{
background:#4e73df;
}

.close-btn{
position:absolute;
top:10px;
left:20px;
font-size:28px;
cursor:pointer;
color:white;
}

.overlay{
position:fixed;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
top:0;
left:0;
display:none;
z-index:1000;
}

/* CARD */
.card{
background:white;
padding:20px;
border-radius:16px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
margin-bottom:20px;
}

.btn{
padding:10px 18px;
border:none;
border-radius:10px;
font-weight:600;
cursor:pointer;
}

.btn-primary{
background:#1abc9c;
color:white;
}

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

footer{
background:#0f172a;
color:#e5e7eb;
padding:30px;
text-align:center;
margin-top:40px;
}
/* WELCOME PAGE */
.welcome-container{
  max-width:1000px;
  margin:60px auto;
  padding:20px;
}

.welcome-card{
  background:white;
  padding:30px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  text-align:center;
}

.welcome-card h1{
  color:#0d47a1;
  margin-bottom:15px;
}

.welcome-card p{
  color:#444;
  line-height:1.7;
}

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

.btn-dark{
  display:block;
  padding:14px;
  background:#0d47a1;
  color:white;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
}

.btn-dark:hover{
  background:#08306b;
}

.btn-quiz{
  background:#2e7d32;
}

.btn-quiz:hover{
  background:#1b5e20;
}

.btn-learn{
  background:#f9a825;
  color:#111;
}

.btn-learn:hover{
  background:#f57f17;
}
/* DASHBOARD */
.dashboard-header{
background:linear-gradient(135deg,#0d47a1,#1976d2);
color:#fff;
padding:18px;
text-align:center;
font-size:22px;
font-weight:700;
}

.dashboard-container{
max-width:1100px;
margin:30px auto;
padding:20px;
}

.dashboard-welcome{
background:white;
padding:20px;
border-radius:14px;
margin-bottom:25px;
box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.dashboard-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
}

.dashboard-card{
background:white;
padding:22px;
border-radius:16px;
text-align:center;
box-shadow:0 8px 20px rgba(0,0,0,.08);
transition:.3s;
}

.dashboard-card:hover{
transform:translateY(-6px);
}

.dashboard-card h3{
margin:10px 0 5px;
}

.dashboard-card p{
color:#555;
font-size:14px;
}

.dashboard-card a{
display:inline-block;
margin-top:12px;
padding:10px 18px;
background:#1976d2;
color:white;
text-decoration:none;
border-radius:20px;
font-size:14px;
}

.logout-btn{
margin-top:15px;
padding:8px 16px;
background:#e53935;
color:white;
border:none;
border-radius:20px;
cursor:pointer;
}
/* PROFILE PAGE */
.profile-header{
background:linear-gradient(135deg,#0d47a1,#1976d2);
color:white;
padding:18px;
text-align:center;
font-size:22px;
font-weight:700;
}

.profile-container{
max-width:850px;
margin:40px auto;
padding:20px;
}

.profile-card{
background:white;
padding:25px;
border-radius:16px;
box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.profile-box{
display:grid;
grid-template-columns:120px 1fr;
gap:20px;
align-items:center;
}

.avatar{
width:120px;
height:120px;
border-radius:50%;
background:#e3f2fd;
display:flex;
align-items:center;
justify-content:center;
font-size:50px;
}

.profile-info p{
margin:8px 0;
font-size:15px;
}

.label{
font-weight:700;
color:#333;
}

.profile-section{
margin-top:25px;
padding-top:15px;
border-top:1px solid #ddd;
}

.profile-back{
display:inline-block;
margin-top:15px;
text-decoration:none;
color:#0d47a1;
font-weight:600;
}

.profile-footer{
text-align:center;
margin-top:30px;
color:#666;
font-size:14px;
}
/* QUIZ HISTORY */
.quiz-header{
background:#0d47a1;
color:white;
padding:18px;
text-align:center;
font-size:22px;
font-weight:700;
}

.quiz-container{
max-width:950px;
margin:40px auto;
padding:20px;
}

.quiz-card{
background:white;
padding:25px;
border-radius:16px;
box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.quiz-card h2{
color:#0d47a1;
margin-bottom:10px;
}

.quiz-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.quiz-table th,
.quiz-table td{
border:1px solid #ddd;
padding:10px;
text-align:center;
}

.quiz-table th{
background:#e3f2fd;
}

.quiz-back{
display:inline-block;
margin-top:15px;
text-decoration:none;
color:#0d47a1;
font-weight:600;
}

.quiz-footer{
text-align:center;
margin-top:30px;
color:#666;
font-size:14px;
}
/* LEADERBOARD */
.leaderboard-header{
background:linear-gradient(135deg,#6a1b9a,#4a148c);
color:white;
padding:18px;
text-align:center;
font-size:24px;
font-weight:700;
}

.leaderboard-container{
max-width:1000px;
margin:40px auto;
padding:20px;
}

.leaderboard-card{
background:white;
padding:25px;
border-radius:16px;
box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.leaderboard-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.leaderboard-table th,
.leaderboard-table td{
border:1px solid #ddd;
padding:10px;
text-align:center;
}

.leaderboard-table th{
background:#f3e8ff;
}

.rank1{background:#fff7ed}
.rank2{background:#ecfeff}
.rank3{background:#f0fdf4}

.badge{
padding:4px 8px;
border-radius:12px;
font-size:12px;
font-weight:700;
color:white;
}

.gold{background:#f59e0b}
.silver{background:#9ca3af}
.bronze{background:#b45309}
/* ================= SPOKEN ENGLISH ================= */

.spoken-header{
background:#1e3a8a;
color:white;
padding:18px;
text-align:center;
font-size:22px;
font-weight:bold;
}

.spoken-container{
display:flex;
max-width:1200px;
margin:30px auto;
gap:15px;
padding:10px;
}

.spoken-days{
width:25%;
background:white;
padding:15px;
border-radius:12px;
box-shadow:0 6px 18px rgba(0,0,0,.08);
max-height:80vh;
overflow-y:auto;
}

.spoken-days button{
width:100%;
margin:6px 0;
padding:10px;
border:none;
border-radius:6px;
background:#e0e7ff;
cursor:pointer;
font-weight:bold;
transition:.3s;
}

.spoken-days button:hover{
background:#2563eb;
color:white;
}

.spoken-content{
width:75%;
background:white;
padding:20px;
border-radius:12px;
box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.sentence{
background:#f8fafc;
margin:8px 0;
padding:10px;
border-left:4px solid #2563eb;
}

.btn{
padding:12px 18px;
border:none;
border-radius:8px;
font-weight:600;
cursor:pointer;
}

.btn-secondary{
background:#f59e0b;
color:#111;
margin-top:20px;
}

/* Completed Day Green */
.completed-day{
background:#16a34a !important;
color:white !important;
}

/* Mobile Responsive */
@media(max-width:768px){
.spoken-container{
flex-direction:column;
}
.spoken-days{
width:100%;
max-height:none;
}
.spoken-content{
width:100%;
}
}