* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background: #abd5e9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.container {
  background: #dddddd;
  padding: 20px 25px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.header h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

.quote-box {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

#quote-author {
  margin-top: 8px;
  font-weight: 600;
  color: #333;
}

.button {
  margin-bottom: 20px;
}

.button button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #0349c3;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button button:hover {
  background: #02358f;
  transform: scale(1.03);
}

/* Add new quote section */
.new-quote-box {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-quote-box input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #999;
  border-radius: 8px;
  background: #ffffff;
  color: #222;
  font-size: 0.95rem;
  outline: none;
}

.new-quote-box input::placeholder {
  color: #666;
}

.new-quote-box input:focus {
  border-color: #0349c3;
  box-shadow: 0 0 0 2px rgba(3, 73, 195, 0.15);
}

#add-quote-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: #0349c3;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#add-quote-btn:hover {
  background: #02358f;
  transform: scale(1.02);
}

#success-message {
  margin-top: 8px;
  color: #176b2c;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

#error-message {
  display: none;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #b42318;
  border-radius: 6px;
  color: #b42318;
  background: #fff1f0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}

@media (min-width: 600px) {
  .container {
    padding: 40px 35px;
  }

  .header h1 {
    font-size: 2rem;
  }

  #quote-text {
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 500px;
  }

  .header h1 {
    font-size: 2.2rem;
  }

  #quote-text {
    font-size: 1.2rem;
  }

  .button button {
    width: auto;
    padding: 12px 25px;
  }
}
