/* style.css - dark theme for Study Tracker */ 
:root{
  --bg:#07101a;
  --card:#0f1b24;
  --muted:#98a7b3;
  --glass: rgba(255,255,255,0.03);
  --math: #29a9ff;
  --english: #ff5c7c;
  --computers:#00e676;
  --chemistry:#ffb74d;
  --physics: #b388ff;
  --success: #28e08d;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100vh;
  background: linear-gradient(180deg,var(--bg), #03121a 140%);
  color:#eaf6fb;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* header */
.header{
  width:100%;
  max-width:1100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  margin-top:18px;
}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:46px;height:46px;border-radius:10px;
  background: linear-gradient(135deg,var(--math), var(--computers));
  display:flex;align-items:center;justify-content:center;color:#021016;font-weight:700;
  box-shadow:0 6px 24px rgba(0,0,0,0.4)
}
.header .nav a{
  color:var(--muted); text-decoration:none; padding:8px 12px; border-radius:8px; font-weight:600;
}
.header .nav a:hover{ color:#fff; background:var(--glass)}

/* container */
.container{ width:100%; max-width:1100px; padding:18px; }

/* grid of subject bubbles */
.subject-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin-top:10px;
}

/* subject card */
.subject-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:14px;
  padding:16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.02);
  display:flex; flex-direction:column; align-items:center; min-height:220px;
}

.subject-card h3{ margin:0 0 8px 0; font-size:16px; color:#fff; }
.circle-wrap{ position:relative; width:130px; height:130px; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.circle-wrap .label{ position:absolute; font-weight:700; font-size:14px; color:#e6f6ff; text-align:center; }
.time-text{ font-size:13px; color:var(--muted); margin-bottom:8px; }

/* controls */
.controls{ display:flex; gap:8px; margin-top:auto; }
.btn{
  padding:8px 12px; border-radius:10px; border:none; cursor:pointer; font-weight:700;
  background:transparent; color:#eaf7ff; letter-spacing:0.2px;
}
.btn.start{ background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); }
.btn.pause{ background: rgba(255,255,255,0.02); color:#ffd6d6; }
.btn.reset{ background: rgba(255,255,255,0.01); color:var(--muted); }

/* bottom area */
.bottom-area{ margin-top:26px; display:flex; justify-content:center; gap:12px; }

/* analysis page */
.analysis-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:18px; margin-top:18px; align-items:start; }
.analysis-card{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-radius:14px; padding:14px; box-shadow: 0 6px 18px rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.02); text-align:center;}
.analysis-card h4{ margin:8px 0; color:#fff; }
.goal-row{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:10px; }
.goal-row input{ width:64px; padding:6px; border-radius:8px; border:1px solid rgba(255,255,255,0.06); background:transparent; color:#fff; text-align:center; }

/* svg styles */
svg .bg{ stroke: rgba(255,255,255,0.06); stroke-width:10; fill:none; }
svg .prog{ stroke-width:10; stroke-linecap:round; fill:none; transition: stroke-dashoffset 0.9s cubic-bezier(.2,.9,.2,1), stroke 0.25s ease; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
svg .goal-mark{ stroke: rgba(255,255,255,0.06); stroke-width:3; stroke-dasharray:4 6; fill:none; }

/* small */
.small{ font-size:13px; color:var(--muted); margin-top:6px; }

/* responsive tweaks */
@media (max-width:600px){
  .circle-wrap{ width:110px; height:110px; }
  .subject-card{ padding:14px; }
}
