/* ===== General Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #e8f5e9; /* soft mint */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  transition: background 0.5s;
}

/* ===== Containers / Cards ===== */
.container, .card, .dashboard-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(100, 181, 120, 0.15);
  padding: 25px;
  animation: fadeSlideIn 0.7s ease;
  transition: all 0.3s;
}

.container:hover, .card:hover, .dashboard-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(100, 181, 120, 0.25);
}

/* ===== Inputs & Textarea ===== */
input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
  outline: none;
  background: #f1f8f1;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  border-color: #66bb6a;
  box-shadow: 0 4px 15px rgba(102, 187, 106, 0.3);
  transform: translateY(-2px);
}

/* ===== Buttons ===== */
button, .btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  background: #81c784;
  color: #fff;
  margin-top: 10px;
  transition: all 0.3s;
}

button:hover, .btn:hover {
  background: #66bb6a;
  transform: scale(1.05);
}

/* ===== Links ===== */
a {
  color: #66bb6a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #4caf50;
}

/* ===== Dashboard Grid ===== */
.dashboard {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dashboard-card {
  background: #f1f8f1;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(100, 181, 120, 0.15);
  cursor: pointer;
  transition: all 0.3s;
}

.dashboard-card:hover {
  background: #dcedc8;
  transform: translateY(-5px) scale(1.05);
}

.dashboard-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #388e3c;
}

/* ===== Animations ===== */
@keyframes fadeSlideIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===== Toggle Switch ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  margin-top: 10px;
}
.switch input {opacity:0; width:0; height:0;}
.slider {
  position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0;
  background-color:#c8e6c9; transition:0.4s; border-radius:28px;
}
.slider:before {
  position:absolute; content:""; height:22px; width:22px; left:3px; bottom:3px;
  background-color:white; transition:0.4s; border-radius:50%;
}
input:checked + .slider {background-color:#81c784;}
input:checked + .slider:before {transform:translateX(22px);}