/* style.css */
body {
  font-family: 'K2D', sans-serif;
  background-color: #FFE7E3;
  margin: 0;
  padding: 20px;
  color: #333;
}

/* Login and Register specific background */
body.login-page,
body.register-page {
  background-image: url('background_login.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color:#FF82AC;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1, h2, h3 {
  font-family: 'Modak', cursive;
  color: #353B84;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color:  #FFE7E3;
  font-weight: 400;
  font-style: normal;
  line-height: 24px;
  letter-spacing: -0.196px;
  /* Responsive font size: 40px to 80px */
  font-size: clamp(2.5rem, 6vw, 80px);
  margin: 0;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 1.5em;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

/* Buttons */
.btn {
  font-family: 'K2D', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background-color:#353B84;
  color:  #FFE7E3;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-logout {
  background-color: #FF82AC;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background-color: #c0392b;
  color: white;
}

/* Pet Grid */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.pet-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pet-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.pet-card p {
  font-family: 'Modak', cursive;
  font-size: 1.4em;
  padding: 15px;
  margin: 0;
  text-align: center;
  color: #2c3e50;
  background-color: #f8f9fa;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* Tasks */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.task-button {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.task-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.task-pet-name {
  font-family: 'Modak', cursive;
  font-size: 1.6em;
  color:#353B84;
  margin-bottom: 10px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-type {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.1em;
}

.task-frequency {
  color: #7f8c8d;
  font-size: 1em;
}

/* Pet Details */
.pet-detail-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 20px 0;
}

.pet-detail-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pet-detail-section {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.pet-detail-section h3 {
  color:#353B84;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.8em;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.pet-detail-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-family: 'K2D', sans-serif;
  font-size: 1em;
  background-color: #f8f9fa;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.button-group .btn {
  min-width: 150px;
}

/* Task Completion */
.task-button.task-completed {
  background: #e8f5e9;
}

.task-button.task-completed .task-pet-name {
  color: #2e7d32;
}

.task-button.task-completed .task-type {
  color: #1b5e20;
}

.task-button.task-completed .task-frequency {
  color: #388e3c;
}

/* Error Message */
.error-message {
  color: #e74c3c;
  padding: 20px;
  background: #fde8e8;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 600;
}

/* Task Header/Button ("Tasks") */
.tasks-header {
  background: #39397A;
  color: #FFC04D;
  font-family: 'Modak', cursive;
  font-size: 2.5em;
  font-weight: normal;
  letter-spacing: 0.5px;
  text-align: center;
  border-radius: 32px;
  padding: 24px 0 18px 0;
  margin: 0 auto 32px auto;
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
}

/* Add Pet Button */
.add-pet-wrapper {
  position: relative;
  width: 350px;
  margin: 0 auto 32px auto;
}

.add-pet-btn {
  background: #fff;
  color: #39397A;
  font-family: 'K2D', sans-serif;
  font-size: 1.7em;
  font-weight: 600;
  border-radius: 16px;
  box-shadow: 0 3px 0 #BFD7ED;
  padding: 18px 32px 18px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  border: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: box-shadow 0.2s;
}

.add-pet-btn:active {
  box-shadow: 0 1px 0 #BFD7ED;
}

.add-pet-plus {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  background: #FF8CB7;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.add-pet-plus-icon {
  color: #39397A;
  font-size: 3em;
  font-family: inherit;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 500px) {
  .add-pet-wrapper {
    width: 95vw;
    min-width: 0;
  }
  .add-pet-btn {
    font-size: 1.1em;
    padding: 14px 16px 14px 16px;
  }
  .add-pet-plus {
    width: 60px;
    height: 60px;
    right: -22px;
  }
  .tasks-header {
    font-size: 1.5em;
    padding: 16px 0 12px 0;
  }
}
