﻿/**
 * Ladynia - Where Women Rise Together
 * Luxury Women's Empowerment Design System
 * Where Women Rise Together. All rights reserved.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  /* Women Empowerment Pink & Magenta Palette */
  --primary: #e11d48;
  --primary-hover: #be185d;
  --primary-light: #fff1f2;
  --primary-subtle: #fdf2f8;
  --primary-gradient: linear-gradient(135deg, #e11d48 0%, #db2777 50%, #f43f5e 100%);
  --primary-glow: rgba(225, 29, 72, 0.32);
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --rose-gold: #f43f5e;
  
  --secondary: #9333ea;
  --secondary-hover: #7e22ce;
  --secondary-light: #faf5ff;
  --secondary-gradient: linear-gradient(135deg, #9333ea 0%, #db2777 100%);

  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  --success: #10b981;
  --success-light: #d1fae5;
  --success-text: #065f46;
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --danger-text: #991b1b;
  
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-text: #92400e;

  /* Luxurious Plum Obsidian for Dark Surfaces */
  --dark-950: #120412;
  --dark-900: #1a081b;
  --dark-800: #290f2b;
  --dark-700: #3d1740;
  
  --gray-50: #fff5f7;
  --gray-100: #fce7f3;
  --gray-200: #fbcfe8;
  --gray-300: #f472b6;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --white: #ffffff;
  --body-bg: #fffbfd;
  --card-bg: #ffffff;
  --text-main: #1f1224;
  --text-muted: #6b5570;
  --border-color: #fce7f3;
  --border-subtle: rgba(251, 207, 232, 0.6);
  
  /* Modern Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(219, 39, 119, 0.04);
  --shadow-sm: 0 2px 6px rgba(219, 39, 119, 0.06);
  --shadow-md: 0 10px 20px -4px rgba(219, 39, 119, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 18px 36px -8px rgba(219, 39, 119, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 26px 52px -12px rgba(219, 39, 119, 0.18), 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 12px 30px rgba(225, 29, 72, 0.28);
  --shadow-glow-pink: 0 12px 30px rgba(219, 39, 119, 0.32);

  /* Radius Tokens */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Dimensions */
  --sidebar-width: 280px;
  --topbar-height: 76px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.font-serif {
  font-family: 'Playfair Display', serif !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Grid & Containers */
.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -14px;
  margin-right: -14px;
}

[class*="col-"] {
  padding-left: 14px;
  padding-right: 14px;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1024px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 1 0% !important; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 18px; }
.gap-4 { gap: 26px; }
.gap-5 { gap: 36px; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 6px !important; }
.mt-2 { margin-top: 12px !important; }
.mt-3 { margin-top: 18px !important; }
.mt-4 { margin-top: 26px !important; }
.mt-5 { margin-top: 36px !important; }
.mb-1 { margin-bottom: 6px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mb-4 { margin-bottom: 26px !important; }
.mb-5 { margin-bottom: 36px !important; }
.mr-1 { margin-right: 6px !important; }
.mr-2 { margin-right: 10px !important; }
.mr-3 { margin-right: 16px !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 18px !important; }
.p-4 { padding: 26px !important; }
.p-5 { padding: 36px !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 18px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.48);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--gray-800);
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.32);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.42);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: #dc2626;
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--gray-700);
}

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

.btn-outline-primary {
  background-color: rgba(225, 29, 72, 0.04);
  border-color: rgba(225, 29, 72, 0.4);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); border: 1px solid rgba(225, 29, 72, 0.2); }
.badge-success { background-color: var(--success-light); color: var(--success-text); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-danger { background-color: var(--danger-light); color: var(--danger-text); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-warning { background-color: var(--warning-light); color: var(--warning-text); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-secondary { background-color: #fdf2f8; color: #9d174d; border: 1px solid var(--border-color); }
.badge-info { background-color: var(--secondary-light); color: #7e22ce; border: 1px solid rgba(147, 51, 234, 0.2); }

.badge-duration {
  background: var(--primary-gradient);
  color: #fff;
  padding: 6px 16px;
  font-size: 0.8125rem;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.25);
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 29, 72, 0.25);
}

.card-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
}

.card-body {
  padding: 26px;
}

.card-footer {
  padding: 18px 26px;
  border-top: 1px solid var(--border-color);
  background-color: var(--gray-50);
}

/* Modern Forms */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-control, .form-select {
  width: 100%;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--gray-900);
  background-color: var(--white);
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Alerts & Toasts */
.flash-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 440px;
  width: calc(100% - 48px);
}

.alert {
  padding: 16px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xl);
  border-left: 5px solid transparent;
  position: relative;
  backdrop-filter: blur(8px);
}

.alert-success {
  background-color: #f0fdf4;
  color: var(--success-text);
  border-color: var(--success);
}

.alert-danger {
  background-color: #fef2f2;
  color: var(--danger-text);
  border-color: var(--danger);
}

.alert-warning {
  background-color: #fffbeb;
  color: var(--warning-text);
  border-color: var(--warning);
}

.alert-info {
  background-color: #fff1f2;
  color: #be185d;
  border-color: #ec4899;
}

.alert .btn-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: inherit;
  margin-left: auto;
  padding-left: 14px;
  opacity: 0.7;
}

.alert .btn-close:hover { opacity: 1; }

/* Progress Bar Engine */
.progress-bar-container {
  width: 100%;
  background-color: #fce7f3;
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.9375rem;
}

.table th {
  background-color: #fff1f2;
  color: #9d174d;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.18s ease;
}

.table tbody tr:hover {
  background-color: #fdf2f8;
}

/* Empty State Illustration Component */
.empty-state-wrap {
  padding: 50px 24px;
  text-align: center;
}

.empty-state-img {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Brand Signature */
.web-era-signature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
}

.web-era-signature .heart {
  color: #e11d48;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

