/* style.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to top right, #e3fcef, #f9fff9);
  color: #1b4332;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background-color: #2d6a4f;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 70px;
  height: auto;
  display: block;
  margin: 0 auto 0.3rem;
}

.tagline {
  font-size: 1rem;
  color: #d8f3dc;
  margin-bottom: 0.5rem;
}

main {
  padding: 1rem;
  max-width: 900px;
  margin: auto;
}

.tool-selector {
  margin-bottom: 1.5rem;
  background-color: #f0faf3;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

select,
label {
  font-size: 1rem;
  padding: 0.5rem;
}

select {
  border: 1px solid #95d5b2;
  border-radius: 4px;
  background-color: white;
  color: #1b4332;
  width: 100%;
}

#tool-info {
  background-color: #e9f5ec;
  border-left: 5px solid #40916c;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  display: none;
}

#tool-info button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: #1b4332;
}

footer {
  background-color: #2d6a4f;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

#calculator {
  background-color: white;
  border: 1px solid #d8f3dc;
  border-radius: 6px;
  padding: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

input,
button {
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid #95d5b2;
  border-radius: 4px;
  box-sizing: border-box;
}

input {
  width: 100%;
}

button {
  background-color: #40916c;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  width: 100%;
}

button:hover {
  background-color: #1b4332;
  transform: scale(1.03);
}

.result {
  font-weight: bold;
  margin-top: 0.8rem;
  padding: 0.6rem;
  background-color: #d8f3dc;
  border-left: 4px solid #2d6a4f;
  border-radius: 4px;
}

#timetrack {
  background-color: #e9f5ec;
  padding: 2rem 1rem;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
  margin-top: 3rem;
}

.timer-card {
  background: white;
  border-left: 6px solid #2d6a4f;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease-in-out;
}

.timer-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #1b4332;
}

.timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.timer-controls button {
  flex: 1;
  min-width: 80px;
  font-size: 0.9rem;
}

.timer-countdown {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d6a4f;
  animation: pulse 1s infinite;
  margin-top: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  main {
    padding: 0.8rem;
  }

  .tool-selector,
  #calculator,
  #tool-info {
    padding: 1rem;
  }

  .timer-controls {
    flex-direction: column;
  }

  input,
  button,
  select {
    width: 100%;
  }

  .tagline {
    font-size: 0.9rem;
  }
}
