:root {
  --primary: #f8c0c8;
  --secondary: #e5989b;
  --accent: #ffb4a2;
  --bg-color: #fff9fb;
  --text-main: #6d597a;
  --text-muted: #b5838d;
  --border: rgba(181, 131, 141, 0.2);
  --card-shadow: 0 10px 30px rgba(181, 131, 141, 0.1);
  --glass: rgba(255, 255, 255, 0.7);
  --radius: 24px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, hsla(353,70%,95%,1) 0, transparent 50%), 
    radial-gradient(at 100% 100%, hsla(10,82%,97%,1) 0, transparent 50%);
  min-height: 100vh;
}

.app-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(to right, #b5838d, #ffb4a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* Editor Section */
.editor-main {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  width: 100%;
  align-items: start;
}

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

.canvas-container {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid white;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
  filter: saturate(1.1) contrast(1.05);
}

/* The "Natural Pink" Overlays (Simulated) */
.beauty-filter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.6;
  background: radial-gradient(circle at 48% 52%, rgba(255, 105, 180, 0.4) 0%, transparent 15%), /* Lips focus */
              radial-gradient(circle at 50% 12%, rgba(255, 105, 180, 0.2) 0%, transparent 10%); /* Nose focus */
}

.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid white;
  box-shadow: var(--card-shadow);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.slider-container {
  position: relative;
  height: 6px;
  background: rgba(181, 131, 141, 0.2);
  border-radius: 3px;
  width: 100%;
}

.slider-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  border-radius: 3px;
}

.slider-track.p-85 { width: 85%; }
.slider-track.p-72 { width: 72%; }
.slider-track.p-40 { width: 40%; }

.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: white;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-thumb.p-85 { left: 85%; }
.slider-thumb.p-72 { left: 72%; }
.slider-thumb.p-40 { left: 40%; }

/* Custom Buttons */
.btn-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 100px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(229, 152, 155, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 152, 155, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

/* Filters List */
.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.filter-tab {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  border-radius: 12px;
  background: rgba(181, 131, 141, 0.1);
  cursor: pointer;
  border: 1px solid transparent;
}

.filter-tab.active {
  background: white;
  border-color: var(--secondary);
  font-weight: 600;
}

/* Floating Elements */
.floating-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  z-index: 10;
}

.placeholder-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
