/**
 * Intissar Beauty - Rosa Gold Design System v2.0
 * Elegant feminine design with Rose Gold accents
 * Matching the physical salon decoration
 */

/* ============================================
   ROSA GOLD COLOR PALETTE
   ============================================ */
:root {
  /* Primary Rosa Gold Colors */
  --rosa-gold: #B76E79;
  --rosa-gold-light: #D4A5A5;
  --rosa-gold-dark: #8B4D57;
  --rosa-gold-pale: #F5E6E8;
  --rosa-gold-muted: #C9A0A0;
  
  /* Secondary Elegant Colors */
  --champagne: #F7E7CE;
  --pearl: #FAF6F2;
  --ivory: #FFFFF0;
  --blush: #FFE4E1;
  --mauve: #E0B0B0;
  
  /* Neutral Tones */
  --charcoal: #2D2D2D;
  --graphite: #4A4A4A;
  --silver: #C0C0C0;
  --platinum: #E5E4E2;
  --snow: #FFFAFA;
  
  /* Accent Colors */
  --gold-accent: #D4AF37;
  --copper: #B87333;
  --bronze: #CD7F32;
  
  /* Functional Colors */
  --success: #7CB69D;
  --warning: #E8C872;
  --error: #D47B7B;
  --info: #7BA3C4;
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-accent: 'Great Vibes', cursive;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(183, 110, 121, 0.1);
  --shadow-md: 0 4px 6px rgba(183, 110, 121, 0.15);
  --shadow-lg: 0 10px 25px rgba(183, 110, 121, 0.2);
  --shadow-xl: 0 20px 40px rgba(183, 110, 121, 0.25);
  --shadow-glow: 0 0 20px rgba(183, 110, 121, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--pearl) 0%, var(--rosa-gold-pale) 50%, var(--blush) 100%);
  background-attachment: fixed;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--rosa-gold-dark);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.display-title {
  font-family: var(--font-display);
  font-size: 3rem;
  background: linear-gradient(135deg, var(--rosa-gold) 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.script-title {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  color: var(--rosa-gold);
}

/* ============================================
   UNIFIED HEADER
   ============================================ */
.ib-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,230,232,0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rosa-gold-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.ib-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ib-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.ib-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--rosa-gold) 0%, var(--rosa-gold-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.ib-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--rosa-gold-dark);
  font-weight: 600;
}

.ib-logo-tagline {
  font-size: 0.75rem;
  color: var(--rosa-gold-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ib-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.ib-nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}

.ib-nav-link:hover {
  color: var(--rosa-gold);
  background: var(--rosa-gold-pale);
}

.ib-nav-link.active {
  color: var(--rosa-gold-dark);
  background: var(--rosa-gold-pale);
}

.ib-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rosa-gold);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.ib-nav-link:hover::after,
.ib-nav-link.active::after {
  width: 80%;
}

/* Mobile Menu */
.ib-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--rosa-gold);
  cursor: pointer;
}

@media (max-width: 768px) {
  .ib-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
  }
  
  .ib-nav.open {
    display: flex;
  }
  
  .ib-mobile-toggle {
    display: block;
  }
}

/* ============================================
   UNIFIED FOOTER
   ============================================ */
.ib-footer {
  background: linear-gradient(135deg, var(--rosa-gold-dark) 0%, var(--charcoal) 100%);
  color: var(--pearl);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.ib-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.ib-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.ib-footer-section h4 {
  font-family: var(--font-display);
  color: var(--rosa-gold-light);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--rosa-gold);
  display: inline-block;
}

.ib-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ib-footer-links li {
  margin-bottom: var(--space-sm);
}

.ib-footer-links a {
  color: var(--platinum);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ib-footer-links a:hover {
  color: var(--rosa-gold-light);
  padding-left: var(--space-sm);
}

.ib-footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.ib-footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pearl);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.ib-footer-social a:hover {
  background: var(--rosa-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.ib-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.ib-footer-copyright {
  font-size: 0.85rem;
  color: var(--silver);
}

.ib-footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.ib-footer-legal a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.ib-footer-legal a:hover {
  color: var(--rosa-gold-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.ib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ib-btn-primary {
  background: linear-gradient(135deg, var(--rosa-gold) 0%, var(--rosa-gold-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.ib-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--rosa-gold-dark) 0%, var(--rosa-gold) 100%);
}

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

.ib-btn-secondary:hover {
  background: var(--rosa-gold);
  color: white;
}

.ib-btn-gold {
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--copper) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.ib-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.ib-btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
}

.ib-btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
}

/* ============================================
   CARDS
   ============================================ */
.ib-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid var(--rosa-gold-pale);
}

.ib-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--rosa-gold-light);
}

.ib-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ib-card-body {
  padding: var(--space-lg);
}

.ib-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--rosa-gold-dark);
  margin-bottom: var(--space-sm);
}

.ib-card-text {
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ib-card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--rosa-gold);
  font-weight: 700;
  margin-top: var(--space-md);
}

/* ============================================
   FORMS
   ============================================ */
.ib-form-group {
  margin-bottom: var(--space-lg);
}

.ib-label {
  display: block;
  font-weight: 500;
  color: var(--graphite);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.ib-input,
.ib-select,
.ib-textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--rosa-gold-pale);
  border-radius: var(--radius-md);
  background: white;
  transition: var(--transition-fast);
}

.ib-input:focus,
.ib-select:focus,
.ib-textarea:focus {
  outline: none;
  border-color: var(--rosa-gold);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

.ib-input::placeholder {
  color: var(--silver);
}

/* ============================================
   SIDEBAR (Dashboard)
   ============================================ */
.ib-sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--rosa-gold-dark) 0%, var(--charcoal) 100%);
  color: white;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: var(--space-lg);
  z-index: 1000;
  overflow-y: auto;
}

.ib-sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ib-sidebar-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--rosa-gold-light) 0%, var(--rosa-gold) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ib-sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.ib-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ib-sidebar-item {
  margin-bottom: var(--space-xs);
}

.ib-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  color: var(--platinum);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.ib-sidebar-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.ib-sidebar-link.active {
  background: var(--rosa-gold);
  color: white;
  box-shadow: var(--shadow-md);
}

.ib-sidebar-link i {
  width: 24px;
  text-align: center;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.ib-main {
  margin-left: 280px;
  padding: var(--space-xl);
  min-height: 100vh;
}

.ib-main-full {
  margin-left: 0;
}

.ib-page-header {
  margin-bottom: var(--space-2xl);
}

.ib-page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--rosa-gold-dark);
  margin-bottom: var(--space-sm);
}

.ib-page-subtitle {
  color: var(--graphite);
  font-size: 1rem;
}

/* ============================================
   STATS CARDS
   ============================================ */
.ib-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.ib-stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--rosa-gold);
  transition: var(--transition-normal);
}

.ib-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ib-stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--rosa-gold-pale) 0%, var(--blush) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rosa-gold);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.ib-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
}

.ib-stat-label {
  color: var(--graphite);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.ib-stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.ib-stat-change.positive {
  background: rgba(124, 182, 157, 0.1);
  color: var(--success);
}

.ib-stat-change.negative {
  background: rgba(212, 123, 123, 0.1);
  color: var(--error);
}

/* ============================================
   TABLES
   ============================================ */
.ib-table-wrapper {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ib-table {
  width: 100%;
  border-collapse: collapse;
}

.ib-table th {
  background: linear-gradient(135deg, var(--rosa-gold-pale) 0%, var(--blush) 100%);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  color: var(--rosa-gold-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ib-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--rosa-gold-pale);
  font-size: 0.9rem;
}

.ib-table tr:hover td {
  background: var(--rosa-gold-pale);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.ib-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}

.ib-badge-primary {
  background: var(--rosa-gold-pale);
  color: var(--rosa-gold-dark);
}

.ib-badge-success {
  background: rgba(124, 182, 157, 0.15);
  color: var(--success);
}

.ib-badge-warning {
  background: rgba(232, 200, 114, 0.15);
  color: #B8860B;
}

.ib-badge-error {
  background: rgba(212, 123, 123, 0.15);
  color: var(--error);
}

.ib-badge-gold {
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--copper) 100%);
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.ib-hero {
  background: linear-gradient(135deg, var(--rosa-gold-dark) 0%, var(--rosa-gold) 50%, var(--rosa-gold-light) 100%);
  color: white;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ib-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.ib-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.ib-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.ib-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--space-2xl);
  font-weight: 300;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .ib-sidebar {
    transform: translateX(-100%);
    transition: var(--transition-normal);
  }
  
  .ib-sidebar.open {
    transform: translateX(0);
  }
  
  .ib-main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .ib-hero-title {
    font-size: 2rem;
  }
  
  .ib-hero-subtitle {
    font-size: 1rem;
  }
  
  .ib-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .ib-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-rosa { color: var(--rosa-gold); }
.text-rosa-dark { color: var(--rosa-gold-dark); }
.text-rosa-light { color: var(--rosa-gold-light); }
.text-gold { color: var(--gold-accent); }

.bg-rosa { background-color: var(--rosa-gold); }
.bg-rosa-pale { background-color: var(--rosa-gold-pale); }
.bg-rosa-gradient { background: linear-gradient(135deg, var(--rosa-gold) 0%, var(--rosa-gold-dark) 100%); }

.border-rosa { border-color: var(--rosa-gold); }
.border-rosa-light { border-color: var(--rosa-gold-light); }

.shadow-rosa { box-shadow: var(--shadow-glow); }

/* Glass effect */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Divider with rose */
.ib-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.ib-divider::before,
.ib-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rosa-gold-light), transparent);
}

.ib-divider-icon {
  color: var(--rosa-gold);
  font-size: 1.5rem;
}
