/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #d7fbe8, #b5ead7);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* Title Page Styles */
.title-page {
  background: linear-gradient(135deg, #d7fbe8 0%, #b5ead7 50%, #c8f7c5 100%);
  overflow-x: hidden;
}

.title-page-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.title-header {
  text-align: center;
  margin-bottom: 3rem;
  width: 100%;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
}

.main-title {
  font-size: 4rem;
  color: #2e4f4f;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.main-welcome {
  font-size: 1.4rem;
  padding: 15px 30px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  color: #2e4f4f;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.subtitle {
  font-size: 1.1rem;
  color: #2e4f4f;
  font-style: italic;
  opacity: 0.8;
}

.title-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 3rem;
}

.features-preview {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 182, 193, 0.2);
  max-width: 280px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  border-color: #ffb6c1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-item h3 {
  color: #2e4f4f;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-item p {
  color: #666;
  line-height: 1.5;
}

.login-section {
  text-align: center;
}

/* Pink Login Button Styles */
.login-btn {
  background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
  color: white !important;
  border: 2px solid #ff69b4 !important;
  padding: 18px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Poppins', sans-serif;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  background: linear-gradient(135deg, #ff1493, #dc143c) !important;
  border-color: #ff1493 !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 105, 180, 0.6);
}

.login-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
}

.demo-text {
  margin-top: 1rem;
  color: #666;
  font-style: italic;
}

.title-footer {
  margin-top: 3rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Force pin-flower SVG petals to pink color */
.pin-flower ellipse {
  fill: #ff69b4 !important;
  opacity: 0.9 !important;
}

/* Pin Flower Animation */
.pin-flower {
  animation: gentleFloat 3s ease-in-out infinite;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* Title Container */
.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 0.5rem;
}

/* Login Page Styles (if needed for login.html) */
.login-page {
  background: linear-gradient(135deg, #d7fbe8 0%, #b5ead7 50%, #c8f7c5 100%);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

/* Original App Styles */
header {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
}

h1 {
  font-size: 2.5rem;
  color: #2e4f4f;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  letter-spacing: 2px;
}

p {
  font-size: 1rem;
  color: #444;
}

/* Logout Button */
.logout-btn {
  position: absolute;
  top: 0;
  right: 20px;
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
  background: #ff5252;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Welcome Message */
.welcome-msg {
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 1rem;
  color: #2e4f4f;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 182, 193, 0.2);
}

/* Input Container */
.input-container {
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

#upload {
  display: none;
}

.upload-label {
  background: #ffb6c1;
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  border: 2px solid #ffb6c1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 182, 193, 0.4);
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
}

.upload-label:hover {
  background: #ff9aad;
  border-color: #ff9aad;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 182, 193, 0.5);
}

/* Pink Download Button Styling */
#downloadBtn, .download-btn {
  background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
  color: white !important;
  border: 2px solid #ff69b4 !important;
  padding: 12px 28px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
  position: relative;
  overflow: hidden;
}

#downloadBtn::before, .download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

#downloadBtn:hover::before, .download-btn:hover::before {
  left: 100%;
}

#downloadBtn:hover, .download-btn:hover {
  background: linear-gradient(135deg, #ff1493, #dc143c) !important;
  border-color: #ff1493 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.5);
}

#downloadBtn:active, .download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.4);
}

/* Status Message */
.status-msg {
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #2e4f4f;
  font-weight: 500;
  text-align: center;
  border: 2px solid rgba(119, 221, 119, 0.2);
  animation: slideIn 0.3s ease;
}

.status-msg.error {
  background: rgba(255, 107, 107, 0.2);
  color: #d32f2f;
  border-color: rgba(255, 107, 107, 0.4);
}

.status-msg.success {
  background: rgba(76, 175, 80, 0.2);
  color: #2e7d32;
  border-color: rgba(76, 175, 80, 0.4);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.mode-btn {
  background: #4a90e2;
  border: 2px solid #4a90e2;
  padding: 10px 24px;
  border-radius: 25px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  position: relative;
  overflow: hidden;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.mode-btn:hover::before {
  left: 100%;
}

.mode-btn:hover {
  background: #357abd;
  border-color: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 144, 226, 0.5);
}

.mode-btn.active {
  background: #2c5f99;
  border-color: #2c5f99;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 95, 153, 0.6);
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: #ffb6c1;
  border: 2px solid #ffb6c1;
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}