body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

header {
  background: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}

header nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.card-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

button, input, textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  font-size: 16px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th, .history-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
}

/* Main container centered */
.main-container,
.index-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-container,
.card-box {
  background: white;
  padding: 20px 25px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

/* Buttons */
button,
.go-back {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 14px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

button:hover,
.go-back:hover {
  background: #217dbb;
}

.go-back {
  display: inline-block;
  text-decoration: none;
}

/* Inputs and textarea */
input,
textarea {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Countdown style */
#countdown {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
}

/* Quote style */
#quote {
  font-weight: bold;
  font-style: italic;
  margin-top: 20px;
  color: #444;
}

/* Table styles for history page */
.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.history-table th,
.history-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.history-table th {
  background-color: #3498db;
  color: white;
}

.history-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.history-table tr:hover {
  background-color: #f1f1f1;
}

.timer-container {
  max-width: 400px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.timer-container h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

#timeDisplay {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.motivation {
  font-size: 1.1em;
  margin: 10px 0;
}

.streak {
  font-weight: bold;
  margin-bottom: 15px;
  color: #ff6600;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: #4caf50;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button-group button {
  padding: 10px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.button-group button:hover {
  background: #2980b9;
}
