body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #e0f7fa, #90e0ef, #0077b6);
background-size: 200% 200%;
display: grid;
grid-template-areas:
"header header"
"sidebar main"
"footer footer";
grid-template-columns: 250px 1fr;
grid-template-rows: auto 1fr auto;
min-height: 100vh;
margin: 0;
animation: gradientMove 10s ease infinite;
overflow-x: hidden;
}

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

/* sidebar */
aside {
grid-area: sidebar;
background: #f4f6ff;
padding: 22px;
box-shadow: 2px 0 8px rgba(0,0,0,0.1);
position: fixed;
top: 20;  
height: calc(100% - 60px); 
}

aside nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 15px;
}

aside nav ul li a {
display: block;
padding: 10px 15px;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
color: #078fd8;
transition: all 0.2s ease;
}

aside nav ul li a:hover {
background: #078fd8;
color: #fff;
}
aside nav ul li a.active {
  background: #078fd8;
  color: #fff;
}

/* main */
main {
grid-area: main;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
box-sizing: border-box;
}

.profile-card { 
background: #fff; 
border-radius: 20px; 
box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
padding: 25px; text-align: center; } 

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #078fd8;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: none;
}


.name { font-size: 22px; 
font-weight: bold; 
margin: 10px 0 5px; } 

.status { color: #666; 
margin-bottom: 20px; } 

.profile-info { text-align: left; 
font-size: 14px; 
color: #444; } 

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

.progress-card { 

background: #fff; 
border-radius: 20px; 
box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
padding: 25px; 
text-align: center;
margin-top: 50px;
} 

.progress-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #078fd8;
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.stat-box {
  background: #f5f6ff;
  padding: 20px;
  border-radius: 15px;
  width: 30%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.stat-box:hover {
  transform: scale(1.05);
}

.stat-box h4 {
  margin: 0;
  font-size: 26px;
  color: #078fd8;
}

.stat-box p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #444;
}

.achievements-card {
  grid-column: span 2;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  margin-top: 20px;
}

.achievements-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #078fd8;
}

.achievements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.achievement {
  background: #f5f6ff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.achievement:hover {
  transform: scale(1.05);
}

.actions {
  grid-column: span 2;
  text-align: center;
  margin-top: 20px;
}

.logout {
  background: #e74c3c;         
  color: #fff;                
  border: none;               
  padding: 10px 25px;         
  border-radius: 8px;         
  font-size: 16px;           
  font-weight: 600;            
  cursor: pointer;            
  transition: background 0.3s, transform 0.2s; 
}

.logout:hover {
  background: #c0392b;         
  transform: scale(1.05);    
}

.logout:active {
  transform: scale(0.97);     
}


footer {
  grid-area: footer;
  text-align: center;
  padding: 15px 0;
  background: #f8f9fa;
  font-size: 14px;
  color: #444;
}



/* ___________________________ */
/* ===== DARK THEME ===== */
/* Sidebar */
body.dark-theme aside {
  background: #161a23;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.6);
}

body.dark-theme aside nav ul li a {
  color: #93c5fd;
}

body.dark-theme aside nav ul li a:hover,
body.dark-theme aside nav ul li a.active {
  background: #2563eb;
  color: #fff;
}

/* Main */
body.dark-theme main {
  color: #e5e7eb;
}

/* Profile Card */
body.dark-theme .profile-card {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

body.dark-theme .avatar {
  border-color: #3b82f6;
}

body.dark-theme .name {
  color: #93c5fd;
}

body.dark-theme .status {
  color: #9ca3af;
}

body.dark-theme .profile-info {
  color: #d1d5db;
}

/* Progress Card */
body.dark-theme .progress-card {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

body.dark-theme .progress-card h3 {
  color: #60a5fa;
}

body.dark-theme .stat-box {
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

body.dark-theme .stat-box h4 {
  color: #3b82f6;
}

body.dark-theme .stat-box p {
  color: #cbd5e1;
}

/* Achievements */
body.dark-theme .achievements-card {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

body.dark-theme .achievements-card h3 {
  color: #60a5fa;
}

body.dark-theme .achievement {
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Buttons */
body.dark-theme .btn {
  background: #2563eb;
  color: #fff;
}

body.dark-theme .btn:hover {
  background: #1d4ed8;
}

body.dark-theme .btn.logout {
  background: #dc2626;
}

body.dark-theme .btn.logout:hover {
  background: #b91c1c;
}
/* === Scroll Progress Bar (under header) === */
#scrollProgress {
  position: fixed;
  top: 73px;
  left: 0;
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #003366, #004c99, #0066cc);
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.6);
  transition: width 0.25s ease-out;
  z-index: 9999;
}


.dark-theme #scrollProgress {
  background: linear-gradient(90deg, #66a6ff, #007cf0, #00dfd8);
  box-shadow: 0 0 10px rgba(0, 124, 240, 0.6);
}
