* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 50%, #1a472a 100%);
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Snowflakes Animation */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: 1.5em;
  opacity: 0.8;
  animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 8s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 1s; }

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Header */
header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #c41e3a 0%, #d4374d 100%);
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 3px solid #ffd700;
}

header h1 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  color: #ffd700;
  font-size: 1.3em;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.event-details {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #ffd700;
}

.event-location,
.event-hosts {
  color: #fff;
  font-size: 1.1em;
  margin: 8px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.event-hosts {
  font-weight: 600;
  color: #ffd700;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 3px solid #c41e3a;
}

.card h2 {
  color: #c41e3a;
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1em;
}

/* Form Styles */
.dish-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid #ffd700;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #c41e3a;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #c41e3a 0%, #d4374d 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #ffd700;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Message */
.message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* Dishes List */
.dishes-list {
  margin-top: 30px;
}

.dishes-list h3 {
  color: #2d5a3d;
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: center;
}

.empty-state {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 30px;
}

.dish-items {
  list-style: none;
}

.dish-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 15px 20px;
  margin-bottom: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 5px solid #c41e3a;
  transition: all 0.3s ease;
}

.dish-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
}

.dish-name {
  font-weight: 700;
  color: #2d5a3d;
  min-width: 120px;
}

.dish-arrow {
  color: #c41e3a;
  font-weight: bold;
}

.dish-food {
  color: #555;
  flex-grow: 1;
}

.btn-delete {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  min-width: 40px;
}

.btn-delete:hover {
  background: #c82333;
  transform: scale(1.1);
}

.btn-delete:active {
  transform: scale(0.95);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid #c41e3a;
  animation: slideDown 0.3s ease;
}

.modal-content h3 {
  color: #c41e3a;
  margin-bottom: 15px;
  font-size: 1.5em;
  text-align: center;
}

.modal-content p {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.password-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #c41e3a;
  border-radius: 8px;
  font-size: 1em;
  margin-bottom: 20px;
}

.password-input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.btn-confirm,
.btn-cancel {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-confirm {
  background: #dc3545;
  color: white;
}

.btn-confirm:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.btn-cancel {
  background: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Gift Section */
.gift-section {
  background: linear-gradient(135deg, #fff 0%, #fffef7 100%);
}

.gift-info h3 {
  color: #c41e3a;
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 15px;
}

.gift-rules {
  background: #f8f9fa;
  padding: 20px 20px 20px 40px;
  border-radius: 8px;
  border-left: 5px solid #ffd700;
  margin-bottom: 20px;
}

.gift-rules li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #333;
}

.gift-rules ul {
  margin-top: 8px;
  list-style-type: circle;
}

.gift-rules strong {
  color: #c41e3a;
}

.gift-tips {
  background: #e8f5e9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid #2d5a3d;
}

.gift-tips ul {
  list-style-type: none;
  padding-left: 0;
}

.gift-tips li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #2d5a3d;
}

.gift-tips li:before {
  content: "🎁";
  position: absolute;
  left: 0;
}

.gift-budget {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
}

.gift-budget p {
  margin: 8px 0;
}

.gift-budget strong {
  color: #c41e3a;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  border: 3px solid #c41e3a;
}

footer p {
  color: #c41e3a;
  font-size: 1.3em;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }
  
  .subtitle {
    font-size: 1.1em;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h2 {
    font-size: 1.6em;
  }
  
  .dish-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .dish-arrow {
    display: none;
  }
}
