* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f172a;
  color: white;
  overflow-x: hidden;
}

/* =========================
   DASHBOARD LAYOUT
========================= */

.dashboard {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  width: 270px;
  background: #020617;

  border-right: 1px solid #1e293b;

  padding: 30px 20px;

  position: sticky;
  top: 0;

  height: 100vh;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 40px;
}

.logo i {
  color: #38bdf8;
  font-size: 1.5rem;
}

.logo h2 {
  color: #38bdf8;
}

.sidebar ul {
  list-style: none;
}

.sidebar a {
  text-decoration: none;
}

.sidebar li {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 15px 16px;
  margin-bottom: 14px;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.25s ease;

  color: #cbd5e1;
}

.sidebar li:hover {
  background: #1e293b;
  transform: translateX(6px);

  color: white;
}

.sidebar .active {
  background: #1e293b;

  border: 1px solid #38bdf8;

  color: white;

  box-shadow:
  0 0 15px rgba(56, 189, 248, 0.15);
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
  flex: 1;
  padding: 35px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;

  margin-bottom: 35px;
}

.welcome h1 {
  font-size: 2.5rem;
  margin-bottom: 6px;
}

.welcome p {
  color: #94a3b8;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-box {
  background: #1e293b;

  padding: 12px 16px;

  border-radius: 12px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box input {
  background: transparent;

  border: none;
  outline: none;

  color: white;
}

.profile {
  width: 45px;
  height: 45px;

  border-radius: 50%;

  background: #38bdf8;

  color: black;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
}

/* =========================
   STATS GRID
========================= */

.stats-grid {
  display: grid;

  grid-template-columns:
  repeat(auto-fit, minmax(230px, 1fr));

  gap: 22px;

  margin-bottom: 35px;
}

.stat-card {
  background: #1e293b;

  padding: 28px;

  border-radius: 20px;

  position: relative;
  overflow: hidden;

  transition: 0.3s ease;

  border: 1px solid transparent;
}

.stat-card:hover {
  transform: translateY(-8px);

  border-color: #38bdf8;

  box-shadow:
  0 0 25px rgba(56, 189, 248, 0.15);
}

.stat-card::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  background:
  rgba(56, 189, 248, 0.08);

  border-radius: 50%;

  top: -70px;
  right: -70px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;
}

.stat-top i {
  color: #38bdf8;
  font-size: 1.4rem;
}

.stat-card h3 {
  color: #cbd5e1;

  margin-bottom: 10px;

  font-weight: 500;
}

.stat-card p {
  font-size: 2rem;
  font-weight: bold;

  color: #38bdf8;
}

/* =========================
   PANELS
========================= */

.panel {
  background: #1e293b;

  border-radius: 20px;

  padding: 25px;
}

/* =========================
   HOME PAGE
========================= */

.home-grid {
  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 25px;
}

.mini-task {
  background: #0f172a;

  padding: 14px;

  border-radius: 12px;

  margin-bottom: 14px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-task i {
  color: #38bdf8;
}

.quote-box {
  background: #0f172a;

  padding: 25px;

  border-radius: 16px;

  line-height: 1.7;

  color: #cbd5e1;
}

/* =========================
   TASK PAGE
========================= */

.task-header {
  margin-bottom: 20px;
}

.task-input {
  display: flex;
  gap: 12px;

  margin-bottom: 25px;
}

.task-input input {
  flex: 1;

  padding: 14px;

  border: none;
  outline: none;

  border-radius: 12px;

  background: #0f172a;

  color: white;
}

.task-input button {
  padding: 14px 20px;

  border: none;

  border-radius: 12px;

  background: #38bdf8;

  cursor: pointer;

  font-weight: bold;
}

.filters {
  display: flex;
  gap: 10px;

  margin-bottom: 25px;
}

.filter-btn {
  padding: 10px 16px;

  border: none;

  border-radius: 10px;

  background: #0f172a;

  color: white;

  cursor: pointer;
}

.active-filter {
  background: #38bdf8;
  color: black;
}

#taskList {
  list-style: none;
}

#taskList li {
  background: #0f172a;

  padding: 14px;

  border-radius: 12px;

  margin-bottom: 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  animation: fadeIn 0.25s ease;
}

.task-buttons {
  display: flex;
  gap: 8px;
}

.task-buttons button {
  border: none;

  padding: 8px 10px;

  border-radius: 8px;

  cursor: pointer;

  color: white;
}

.complete-btn {
  background: #22c55e;
}

.delete-btn {
  background: #ef4444;
}

.completed span {
  text-decoration: line-through;
  opacity: 0.5;
}

/* =========================
   NOTES PAGE
========================= */

.notes-panel textarea {
  width: 100%;

  height: 250px;

  background: #0f172a;

  border: none;
  outline: none;

  border-radius: 14px;

  padding: 18px;

  color: white;

  resize: none;

  margin-bottom: 18px;
}

.save-note-btn {
  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 12px;

  background: #38bdf8;

  cursor: pointer;

  font-weight: bold;
}

.notes-grid {
  margin-top: 30px;

  display: grid;

  grid-template-columns:
  repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;
}

.sticky-note {
  background: #facc15;

  color: black;

  padding: 22px;

  border-radius: 18px;

  min-height: 180px;

  transform: rotate(-1deg);

  transition: 0.3s ease;
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.03);
}

.sticky-note h3 {
  margin-bottom: 14px;
}

/* =========================
   TIMER PAGE
========================= */

.timer-page {
  display: flex;
  flex-direction: column;

  gap: 30px;
}

.timer-card {
  background: #1e293b;

  padding: 40px;

  border-radius: 24px;

  text-align: center;
}

.timer-circle {
  width: 250px;
  height: 250px;

  margin: 30px auto;

  border-radius: 50%;

  border: 10px solid #38bdf8;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
  0 0 30px rgba(56,189,248,0.2);
}

.timer-circle h1 {
  font-size: 3rem;
  color: #38bdf8;
}

.timer-controls {
  display: flex;
  justify-content: center;

  gap: 12px;
}

.timer-controls button {
  padding: 12px 18px;

  border: none;

  border-radius: 10px;

  background: #0f172a;

  color: white;

  cursor: pointer;
}

.session-grid {
  display: grid;

  grid-template-columns:
  repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;
}

.session-card {
  background: #1e293b;

  padding: 25px;

  border-radius: 18px;

  text-align: center;
}

.session-card i {
  font-size: 1.6rem;

  color: #38bdf8;

  margin-bottom: 14px;
}

/* =========================
   ANALYTICS PAGE
========================= */

.analytics-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 25px;

  margin-bottom: 30px;
}

.analytics-card {
  min-height: 320px;
}

.progress-box {
  margin-bottom: 25px;
}

.progress-info {
  display: flex;
  justify-content: space-between;

  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 12px;

  background: #0f172a;

  border-radius: 20px;

  overflow: hidden;
}

.progress-fill {
  height: 100%;

  background: #38bdf8;

  border-radius: 20px;
}

.analytics-stats {
  display: flex;
  flex-direction: column;

  gap: 20px;
}

.analytics-stat {
  background: #0f172a;

  padding: 18px;

  border-radius: 14px;

  display: flex;
  align-items: center;

  gap: 18px;
}

.analytics-stat i {
  color: #38bdf8;
  font-size: 1.5rem;
}

.chart-panel {
  margin-top: 10px;
}

.fake-chart {
  height: 300px;

  display: flex;
  align-items: flex-end;

  gap: 18px;

  margin-top: 25px;
}

.bar {
  flex: 1;

  background: #38bdf8;

  border-radius: 16px 16px 0 0;

  transition: 0.3s ease;
}

.bar:hover {
  opacity: 0.7;
}

/* =========================
   SETTINGS PAGE
========================= */

.settings-grid {
  display: grid;

  grid-template-columns:
  repeat(auto-fit, minmax(300px, 1fr));

  gap: 25px;
}

.profile-settings {
  display: flex;
  flex-direction: column;
}

.big-profile {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  background: #38bdf8;

  color: black;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  font-weight: bold;

  margin-bottom: 20px;
}

.settings-card input {
  width: 100%;

  padding: 14px;

  border: none;
  outline: none;

  border-radius: 12px;

  background: #0f172a;

  color: white;

  margin-bottom: 14px;
}

.settings-btn,
.theme-btn {
  padding: 14px;

  border: none;

  border-radius: 12px;

  background: #38bdf8;

  cursor: pointer;

  font-weight: bold;

  margin-top: 10px;
}

.theme-options {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.settings-text {
  line-height: 1.7;

  color: #cbd5e1;
}

.danger-btn {
  margin-top: 18px;

  padding: 14px;

  border: none;

  border-radius: 12px;

  background: #ef4444;

  color: white;

  cursor: pointer;

  font-weight: bold;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

  .analytics-grid,
  .home-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;

    position: relative;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
  }

  .main-content {
    padding: 20px;
  }

  .welcome h1 {
    font-size: 2rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* =========================
   LOGIN PAGE
========================= */

.login-body {
  min-height: 100vh;

  background:
  linear-gradient(
    135deg,
    #020617,
    #0f172a
  );

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 1100px;

  min-height: 650px;

  background: #1e293b;

  border-radius: 28px;

  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr;

  box-shadow:
  0 0 40px rgba(0,0,0,0.4);
}

/* LEFT SIDE */

.login-left {
  background:
  linear-gradient(
    135deg,
    #38bdf8,
    #2563eb
  );

  padding: 60px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-bottom: 25px;
}

.login-brand i {
  font-size: 2.5rem;
}

.login-brand h1 {
  font-size: 3rem;
}

.login-left p {
  font-size: 1.1rem;

  line-height: 1.8;

  max-width: 400px;
}

/* RIGHT SIDE */

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card h2 {
  font-size: 2.2rem;

  margin-bottom: 10px;
}

.login-card p {
  color: #94a3b8;

  margin-bottom: 30px;
}

.login-card input {
  width: 100%;

  padding: 16px;

  border: none;
  outline: none;

  border-radius: 14px;

  background: #0f172a;

  color: white;

  margin-bottom: 20px;

  font-size: 1rem;
}

.login-card button {
  width: 100%;

  padding: 16px;

  border: none;

  border-radius: 14px;

  background: #38bdf8;

  color: black;

  font-size: 1rem;
  font-weight: bold;

  cursor: pointer;

  transition: 0.25s ease;
}

.login-card button:hover {
  transform: translateY(-3px);

  box-shadow:
  0 0 20px rgba(56,189,248,0.3);
}

/* RESPONSIVE */

@media (max-width: 900px) {

  .login-container {
    grid-template-columns: 1fr;
  }

  .login-left {
    padding: 40px;
  }

  .login-brand h1 {
    font-size: 2.3rem;
  }
}

/* =========================
   SETTINGS PAGE FIXES
========================= */

.settings-grid {
  display: grid;

  grid-template-columns:
  repeat(auto-fit, minmax(300px, 1fr));

  gap: 25px;
}

.settings-card {
  min-height: 260px;
}

.profile-settings {
  display: flex;
  flex-direction: column;
}

.big-profile {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  background: #38bdf8;

  color: black;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.8rem;
  font-weight: bold;

  margin-bottom: 20px;
}

.settings-card input {
  width: 100%;

  padding: 14px;

  border: none;
  outline: none;

  border-radius: 12px;

  background: #0f172a;

  color: white;

  margin-bottom: 14px;
}

.settings-btn,
.theme-btn {
  padding: 14px;

  border: none;

  border-radius: 12px;

  background: #38bdf8;

  color: black;

  font-weight: bold;

  cursor: pointer;

  transition: 0.25s ease;
}

.settings-btn:hover,
.theme-btn:hover {
  transform: translateY(-3px);

  box-shadow:
  0 0 20px rgba(56,189,248,0.3);
}

.theme-options {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.settings-text {
  color: #cbd5e1;

  line-height: 1.7;
}

.danger-btn {
  margin-top: 18px;

  padding: 14px;

  border: none;

  border-radius: 12px;

  background: #ef4444;

  color: white;

  cursor: pointer;

  font-weight: bold;
}

/* =========================
   THEMES
========================= */

/* DARK */

body.dark {
  background: #0f172a;
}

/* BLUE */

body.blue {
  background: #071426;
}

body.blue .sidebar {
  background: #03111f;
}

body.blue .panel,
body.blue .stat-card,
body.blue .timer-card,
body.blue .session-card {
  background: #102235;
}

body.blue .task-input input,
body.blue .search-box,
body.blue #taskList li,
body.blue .notes-panel textarea,
body.blue .analytics-stat,
body.blue .mini-task,
body.blue .quote-box {
  background: #0b1b2b;
}

/* PURPLE */

body.purple {
  background: #1a1029;
}

body.purple .sidebar {
  background: #12091d;
}

body.purple .panel,
body.purple .stat-card,
body.purple .timer-card,
body.purple .session-card {
  background: #241336;
}

body.purple .task-input input,
body.purple .search-box,
body.purple #taskList li,
body.purple .notes-panel textarea,
body.purple .analytics-stat,
body.purple .mini-task,
body.purple .quote-box {
  background: #1c102b;
}

/* =========================
   MOBILE SIDEBAR
========================= */

.menu-toggle {
  display: none;

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 10px;

  background: #1e293b;

  color: white;

  cursor: pointer;

  font-size: 1.1rem;
}

/* MOBILE */

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;

    align-items: center;
    justify-content: center;
  }

  .sidebar {

    position: fixed;

    left: -100%;

    top: 0;

    width: 260px;

    height: 100vh;

    z-index: 2000;

    transition: 0.3s ease;
  }

  .sidebar.show-sidebar {
    left: 0;
  }

}