*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI;
}

body{
background:linear-gradient(135deg,#f1f5f9,#e2e8f0);
color:#0f172a;
transition:0.3s;
}

.topbar{
text-align:center;
padding:20px;
background:linear-gradient(135deg,#38bdf8,#6366f1);
color:white;
border-bottom:none;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.container{
display:flex;
min-height:90vh;
}

/* SIDEBAR */

.sidebar{
width:230px;
background:white;
padding:20px;
display:flex;
flex-direction:column;
gap:15px;
border-right:1px solid #e2e8f0;
box-shadow:2px 0 8px rgba(0,0,0,0.05);
}

.logo{
color:#6366f1;
margin-bottom:20px;
}

.menu-title{
font-size:12px;
color:#94a3b8;
}

.sidebar button{
display:flex;
align-items:center;
gap:10px;
padding:12px;
background:none;
border:none;
color:#334155;
cursor:pointer;
border-radius:8px;
transition:.3s;
font-weight:500;
}

.sidebar button:hover{
background:linear-gradient(135deg,#38bdf8,#6366f1);
color:white;
transform:translateX(5px);
}

/* CONTENT */

.content{
flex:1;
padding:30px;
}

/* PROFILE */

.profile-grid{
display:grid;
grid-template-columns:300px 1fr;
gap:30px;
}

.profile-card{
background:rgba(255,255,255,0.05);
padding:25px;
border-radius:15px;
text-align:center;
}

.avatar{
width:120px;
border-radius:50%;
margin-bottom:15px;
border:3px solid #38bdf8;
}

.skills{
margin-top:20px;
display:flex;
flex-direction:column;
gap:10px;
}

.bar{
height:8px;
background:#1e293b;
border-radius:10px;
overflow:hidden;
}

.bar div{
height:100%;
background:linear-gradient(90deg,#38bdf8,#6366f1);
}

.info-card{
background:rgba(255,255,255,0.05);
padding:30px;
border-radius:15px;
line-height:1.6;
}

/* ACTIVITIES */

.activity-grid{
margin-top:20px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
gap:15px;
}

.activity-grid button{
padding:15px;
border:none;
border-radius:10px;
cursor:pointer;
background:#1e293b;
color:white;
transition:.3s;
}

.activity-grid button:hover{
background:#38bdf8;
}

/* OUTPUT */

.output{
margin-top:25px;
padding:20px;
background:#020617;
border-radius:10px;
}

/* CALCULATOR */

.calculator-card{
max-width:400px;
background:rgb(65, 47, 224);
padding:25px;
border-radius:10px;
display:flex;
flex-direction:column;
gap:10px;
}

.calculator-card input{
padding:10px;
border:none;
border-radius:5px;
}

.button-group{
display:flex;
gap:10px;
margin-top:10px;
}

.button-group button{
flex:1;
padding:10px;
border:none;
border-radius:5px;
background:#38bdf8;
cursor:pointer;
}

.result-box{
margin-top:15px;
}

/* HIDDEN */

.hidden{
display:none;
}

footer{
text-align:center;
padding:10px;
background:linear-gradient(135deg,#38bdf8,#6366f1);
}

/* DARK MODE */

.darkmode{
background:linear-gradient(135deg,#0f172a,#1e293b);
color:white;
}

.darkmode .sidebar{
background:#020617;
border-right:1px solid #1e293b;
}

.darkmode .topbar{
background:#020617;
}

.darkmode .profile-card,
.darkmode .info-card,
.darkmode .calculator-card,
.darkmode .output{
background:rgba(255,255,255,0.05);
}

.darkmode .activity-grid button{
background:#1e293b;
color:white;
}

.darkmode .activity-grid button:hover{
background:#38bdf8;
}