/* ============================================================
   EventPlanner — Global Stylesheet
   ============================================================ */
:root {
  --rose: #c9748a;
  --rose-light: #f2d9df;
  --rose-dark: #a85a70;
  --gold: #c9a84c;
  --gold-light: #f5edd8;
  --dark: #1a1118;
  --mid: #3d2b38;
  --cream: #faf6f0;
  --white: #ffffff;
  --text: #3a2c35;
  --muted: #7a6570;
  --border: #e8d8de;
  --success: #2e7d32;
  --warning: #e65100;
  --danger: #c62828;
  --info: #1565c0;
  --sidebar-w: 260px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26,17,24,0.08);
  --shadow-lg: 0 12px 40px rgba(26,17,24,0.12);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--rose);
  color: white;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--rose);
  color: var(--rose);
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--rose); color: white; }

.btn-hero {
  background: var(--dark);
  color: white;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-hero:hover { background: var(--mid); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-danger {
  background: var(--danger);
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}
.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============================================================
   NAVBAR (landing page)
   ============================================================ */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(250,246,240,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1440px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--dark); }
.logo span { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--rose); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.hero-section {
  min-height: 100vh;
  padding: 120px 40px 80px;
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 60px;
}
.hero-badge {
  display: inline-block;
  background: var(--rose-light); color: var(--rose);
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15; color: var(--dark); margin-bottom: 20px;
}
.hero-content h1 em { color: var(--rose); font-style: italic; }
.hero-content p { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-sub { font-size: 13px; color: var(--muted); }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; color: var(--dark); font-family: 'Playfair Display', serif; }
.stat span { font-size: 12px; color: var(--muted); }

/* Dashboard Preview */
.dashboard-preview {
  background: white; border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.preview-header {
  background: var(--dark); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #28c840; }
.preview-body { padding: 20px; }
.preview-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.preview-card { background: var(--cream); padding: 12px; border-radius: 10px; }
.preview-card.accent { background: var(--rose-light); }
.preview-num { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.preview-label { font-size: 11px; color: var(--muted); }
.preview-list { display: flex; flex-direction: column; gap: 10px; }
.preview-item { display: flex; align-items: center; gap: 10px; }
.preview-avatar { width: 32px; height: 32px; background: var(--rose-light); color: var(--rose); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.preview-info { flex: 1; }
.preview-info strong { display: block; font-size: 13px; }
.preview-info span { font-size: 11px; color: var(--muted); }
.preview-progress { width: 80px; height: 4px; background: var(--rose-light); border-radius: 4px; overflow: hidden; }
.preview-progress div { height: 100%; background: var(--rose); border-radius: 4px; }

/* Sections */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-pre { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--rose); font-weight: 600; margin-bottom: 12px; }
.dores-section { padding: 80px 0; background: var(--dark); color: white; }
.dores-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 48px; color: white; }
.dores-section .section-pre { color: var(--gold); }
.dores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.dor-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px; }
.dor-icon { font-size: 2rem; margin-bottom: 12px; }
.dor-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

.features-section { padding: 80px 0; }
.features-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.feature-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform 0.2s, box-shadow 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

.planos-section { padding: 80px 0; background: white; }
.planos-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 48px; }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }
.plano-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 36px 28px; position: relative; }
.plano-card.destaque { border-color: var(--rose); box-shadow: var(--shadow); }
.plano-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--rose); color: white; padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.plano-nome { font-size: 1rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.plano-preco { font-size: 1rem; color: var(--muted); margin-bottom: 24px; }
.plano-preco strong { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--dark); }
.plano-features { list-style: none; margin-bottom: 28px; }
.plano-features li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.plano-features li:last-child { border-bottom: none; }
.btn-plano { display: block; text-align: center; padding: 12px; border-radius: 100px; border: 1.5px solid var(--dark); font-weight: 600; font-size: 14px; transition: all 0.2s; }
.btn-plano:hover { background: var(--dark); color: white; }
.btn-plano.destaque { background: var(--rose); border-color: var(--rose); color: white; }
.btn-plano.destaque:hover { background: var(--rose-dark); }
.planos-nota { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }

.cta-section { padding: 80px 0; text-align: center; background: var(--rose-light); }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 16px; }
.cta-section p { color: var(--muted); margin-bottom: 32px; font-size: 16px; }

.footer { padding: 48px 0; background: var(--dark); color: rgba(255,255,255,0.5); text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: white; margin-bottom: 8px; }
.footer-logo span { color: var(--rose); }
.footer p { font-size: 14px; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--rose); }
.footer-copy { font-size: 12px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel-left { background: var(--dark); display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.auth-panel-left .logo { font-family: 'Playfair Display', serif; font-size: 2rem; color: white; margin-bottom: 32px; display: block; }
.auth-panel-left .logo span { color: var(--rose); }
.auth-panel-left h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: white; margin-bottom: 12px; }
.auth-panel-left p { color: rgba(255,255,255,0.5); font-size: 15px; }
.auth-panel-right { display: flex; align-items: center; justify-content: center; padding: 60px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text);
  background: white; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--rose);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit { width: 100%; padding: 14px; background: var(--rose); color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 8px; }
.form-submit:hover { background: var(--rose-dark); }
.form-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.form-footer a { color: var(--rose); font-weight: 500; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.error { background: #fce8e8; color: var(--danger); border: 1px solid #f5c6c6; }
.alert.success { background: #e8f5e9; color: var(--success); border: 1px solid #c8e6c9; }
.alert.show { display: block; }

/* ============================================================
   APP LAYOUT (Dashboard)
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); background: var(--dark);
  display: flex; flex-direction: column;
  position: fixed; height: 100vh; top: 0; left: 0; z-index: 50;
  overflow-y: auto;
}
.sidebar-logo { padding: 28px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-logo a { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: white; }
.sidebar-logo a span { color: var(--rose); }
.sidebar-user { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: white; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-section { padding: 8px 24px 4px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); font-weight: 600; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px; color: rgba(255,255,255,0.6); font-size: 14px;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: white; background: rgba(255,255,255,0.05); }
.sidebar-nav a.active { color: white; background: rgba(201,116,138,0.15); border-left-color: var(--rose); }
.sidebar-nav a .nav-icon { width: 18px; text-align: center; }
.sidebar-footer { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-footer a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.sidebar-footer a:hover { color: white; }

.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; }
.topbar { background: white; border-bottom: 1px solid var(--border); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.topbar-title h1 { font-size: 1.1rem; font-weight: 700; }
.topbar-title p { font-size: 13px; color: var(--muted); }
.page-body { padding: 32px; flex: 1; }

/* ============================================================
   DASHBOARD COMPONENTS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.stat-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.stat-card-value { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--dark); font-weight: 700; }
.stat-card-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-card.accent { background: var(--rose); color: white; }
.stat-card.accent .stat-card-value { color: white; }
.stat-card.accent .stat-card-label { color: rgba(255,255,255,0.7); }

.card { background: white; border-radius: var(--radius); border: 1px solid var(--border); }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 24px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid rgba(232,216,222,0.5); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-green { background: #e8f5e9; color: var(--success); }
.badge-red { background: #fce8e8; color: var(--danger); }
.badge-gold { background: var(--gold-light); color: #8a6b1c; }
.badge-rose { background: var(--rose-light); color: var(--rose); }
.badge-gray { background: #f0f0f0; color: #666; }

.progress-bar { height: 6px; background: var(--rose-light); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--rose); border-radius: 4px; transition: width 0.3s; }

.avatar { width: 36px; height: 36px; background: var(--rose-light); color: var(--rose); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.search-bar { display: flex; gap: 12px; margin-bottom: 20px; }
.search-bar input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; }
.search-bar input:focus { outline: none; border-color: var(--rose); }
.search-bar select { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; background: white; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

.loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--muted); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(26,17,24,0.6); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab.active { color: var(--rose); border-bottom-color: var(--rose); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-visual { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
}
