/* Feminine Modern Luxury & Scientific Beauty Lab Aesthetic (Mobile-First Responsive) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #fff5f7;
  --bg-surface: #ffffff;
  --bg-subtle: #fff0f3;
  --bg-dark: #2b091e;

  --accent-pink: #f43f5e;
  --accent-pink-hover: #e11d48;
  --accent-pink-light: #ffe4e6;
  --accent-pink-border: #fecdd3;
  
  --accent-rose-gold: #c5a059;
  --accent-rose-gold-light: #fdfbf7;

  --text-primary: #2d1424;
  --text-muted: #785a6c;
  --text-light: #a48296;
  --text-white: #ffffff;

  --border-color: #fce7f3;
  --border-subtle: #fff1f2;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 6px rgba(244, 63, 94, 0.04);
  --shadow-md: 0 6px 20px rgba(244, 63, 94, 0.08);
  --shadow-pink: 0 8px 25px rgba(244, 63, 94, 0.22);

  --font-heading: 'Playfair Display', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --pink-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 50%, #fda4af 100%);
  --hero-gradient: linear-gradient(135deg, #250619 0%, #4a1030 50%, #881337 100%);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--pink-gradient);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-dark);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--accent-pink);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-pink);
}

.nav-user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--bg-dark);
  cursor: pointer;
  padding: 4px;
}

/* Buttons */
.btn-primary {
  background: var(--pink-gradient);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-pink);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--accent-pink-border);
  color: var(--accent-pink);
  background: var(--bg-surface);
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--accent-pink-light);
  border-color: var(--accent-pink);
}

.btn-hero-outline {
  border: 1.5px solid #fda4af;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 11px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-hero-outline:hover {
  background: #ffffff;
  color: var(--accent-pink);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}

/* Layout Main Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Flash Messages */
.alert-messages {
  margin-bottom: 24px;
}

.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #f0fdf4; color: #15803d; border-left: 4px solid #22c55e; }
.alert-error { background: #fff1f2; color: #9f1239; border-left: 4px solid #f43f5e; }
.alert-info { background: #fff0f3; color: #be123c; border-left: 4px solid #fb7185; }

/* Hero Section */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-tag {
  color: #fda4af;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.05rem;
  color: #fecdd3;
  max-width: 620px;
  margin-bottom: 28px;
}

/* Responsive Grid System */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img-wrapper {
  height: 200px;
  background: #fff0f3;
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Badges */
.badge {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-planning { background: #ffe4e6; color: #9f1239; }
.badge-oem { background: #fef3c7; color: #92400e; }
.badge-production { background: #fce7f3; color: #831843; }
.badge-commercialized { background: #f0fdf4; color: #166534; }
.badge-private { background: #fee2e2; color: #991b1b; }

/* Equity Bar */
.equity-bar-container {
  background: #ffe4e6;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.equity-bar-fill {
  height: 100%;
  background: var(--pink-gradient);
}

/* Tables */
.audit-table-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 600px;
}

.audit-table th {
  background: var(--bg-subtle);
  padding: 12px 16px;
  color: var(--accent-pink);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.audit-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Section Header */
.section-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Form Styling & Image Live Preview Container */
.form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

/* Image Preview Container */
.img-preview-box {
  margin-top: 10px;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--accent-pink-border);
  display: none;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #fecdd3;
  padding: 44px 20px 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

/* Mobile Media Queries (Responsiveness) */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 18px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-user-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .hero {
    padding: 36px 20px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px;
  }
}
