/* Global reset and font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background-color: #e4eef7ff;
  color: #2d2d2d;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 3rem;
}

/* Main container */
.container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 40px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Heading */
.leet-heading {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(90deg, #ffb700, #ffc400);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease-in-out;
}
/* User input section */
.user-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.user-container p {
  font-size: 1rem;
  font-weight: 500;
}

.user-input-container {
  display: flex;
  gap: 10px;
}

#user-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

#user-input:focus {
  border-color: #2ba7a2;
  box-shadow: 0 0 0 2px rgba(43, 167, 162, 0.2);
}

#search-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #2ba7a2;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#search-btn:hover {
  background-color: #24928d;
}

/* Progress Section */
.progress {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}

/* Progress Circle */
.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid currentColor;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  font-weight: 700;
  background: conic-gradient(
    var(--progress-color) var(--progress-degree, 0%),
    #e9e7e7ff 0%
  );
  flex-direction: column;
  transition: background 0.4s ease;
}

.circle span {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2a2626ff;
}

.circle p {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #666;
}

/* Specific color classes */
.easy-progress {
  --progress-color: #2ba7a2;
  color: #2ba7a2;
}

.medium-progress {
  --progress-color: #ffb700;
  color: #ffb700;
}

.hard-progress {
  --progress-color: #e34242;
  color: #e34242;
}

/* Stats cards section */
.stats-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* Individual card */
.card {
  background-color: #e8f0f8ff;
  color: #1e293b;
  width: 48%;
  max-width: 290px;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  cursor: pointer;
}

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

.card h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.card p {
  font-size: 1rem;
  color: #555;
}
/* Theme button styling */
#theme-toggle {
  align-self: flex-end;
  padding: 0.5rem 1rem;
  background-color: #2ba7a2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: #24928d;
}

/* Dark mode styles */
/* Default header styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Theme toggle button */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  color: #2d2d2d;
  transition: background-color 0.3s ease;
}

#theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode */
body.dark .leet-heading {
  background: none;
  -webkit-text-fill-color: #ffffff;
} 

body.dark #theme-toggle {
  color: #ffffff;
}

body.dark #theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#theme-toggle i {
  color: #1e293b;
}

/* When in dark mode (moon icon becomes white) */
body.dark #theme-toggle i {
  color: #facc15;
}

/* Specifically color the sun icon yellow in light mode */
#theme-toggle .fa-sun {
  color: #facc15;
}

body.dark {
  background-color: #1a1a1a;
  color: #f1f1f1;
}
body.dark .header title {
  color: #ffffff;
}
body.dark .container {
  background-color: #2c2c2c;
}

body.dark .card {
  background-color: #333;
  color: #f1f1f1;
}

body.dark .circle span,
body.dark .circle p {
  color: #f1f1f1;
}

body.dark input,
body.dark #user-input {
  background-color: #444;
  color: #fff;
  border: 1px solid #555;
}

body.dark #search-btn,
body.dark #theme-toggle {
  background-color: #444;
  color: #fff;
}

body.dark .circle {
  background: conic-gradient(
    var(--progress-color) var(--progress-degree, 0%),
    #555 0%
  );
}
