@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --vinho: #6B1E2E;
  --vinho-dark: #4A1220;
  --vinho-light: #8B2E42;
  --navy: #1A2744;
  --navy-light: #243360;
  --gold: #C9A84C;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --gray-100: #F5F3EF;
  --gray-200: #E8E4DC;
  --gray-400: #9E9890;
  --gray-600: #5C574F;
  --gray-800: #2E2A24;
  --success: #2D6A4F;
  --warning: #C9A84C;
  --danger: #C0392B;
  --shadow-sm: 0 2px 8px rgba(26,39,68,0.08);
  --shadow-md: 0 8px 32px rgba(26,39,68,0.12);
  --shadow-lg: 0 24px 64px rgba(26,39,68,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--vinho); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(12px);
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--vinho);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 16px; color: white;
  flex-shrink: 0;
}

.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: white; letter-spacing: 6px;
  line-height: 1;
}
.nav-logo-tagline {
  font-size: 9px; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase; line-height: 1;
  margin-top: 2px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--vinho) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--vinho-light) !important; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 70px;
}

.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    var(--vinho) 0px, var(--vinho) 2px,
    transparent 2px, transparent 20px
  ),
  repeating-linear-gradient(
    -45deg,
    var(--gold) 0px, var(--gold) 1px,
    transparent 1px, transparent 20px
  );
}

.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(107,30,46,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-size: 12px;
  letter-spacing: 2px; padding: 6px 16px;
  border-radius: 100px; text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white; margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero h1 em {
  color: var(--gold); font-style: normal;
  position: relative;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem; margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--vinho);
  color: white; border: none;
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--vinho-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,30,46,0.4); }

.btn-outline {
  background: transparent;
  color: white; border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}

.stat-item { text-align: center; }
.stat-number {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-top: 4px; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}

.hero-card-stack { position: relative; width: 340px; height: 420px; }

.hero-card {
  position: absolute; border-radius: var(--radius-lg);
  padding: 2rem; background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-card-main {
  width: 300px; top: 60px; left: 20px;
  background: linear-gradient(135deg, var(--vinho), var(--vinho-dark));
  border: none;
}

.hero-card-float {
  width: 200px; top: 0; right: 0;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(26,39,68,0.8);
}

.hero-card-float2 {
  width: 180px; bottom: 20px; left: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(26,39,68,0.6);
}

.card-course-tag {
  font-size: 10px; letter-spacing: 2px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1rem;
}
.card-course-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px; color: white; font-weight: 600;
  line-height: 1.4; margin-bottom: 1rem;
}
.card-course-info { font-size: 12px; color: rgba(255,255,255,0.6); }
.card-progress-bar {
  height: 3px; background: rgba(255,255,255,0.2);
  border-radius: 2px; margin-top: 1rem; overflow: hidden;
}
.card-progress-fill {
  height: 100%; background: var(--gold);
  border-radius: 2px; width: 65%;
}

/* ===== SECTIONS ===== */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px; letter-spacing: 3px;
  color: var(--vinho); text-transform: uppercase;
  font-weight: 600; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 32px; height: 2px;
  background: var(--vinho); display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy); margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem; color: var(--gray-600);
  max-width: 540px; line-height: 1.7;
}

/* ===== COURSES SECTION ===== */
.courses-section { background: var(--white); }

.courses-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3rem;
  gap: 2rem; flex-wrap: wrap;
}

.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.course-card:hover {
  border-color: var(--vinho);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-card-header {
  height: 10px;
  background: linear-gradient(90deg, var(--vinho), var(--navy));
}

.course-card-body { padding: 1.8rem; }

.course-category {
  font-size: 10px; letter-spacing: 2px;
  color: var(--vinho); text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.8rem;
}

.course-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--navy);
  font-weight: 600; line-height: 1.4;
  margin-bottom: 0.8rem;
}

.course-desc {
  font-size: 0.875rem; color: var(--gray-600);
  line-height: 1.6; margin-bottom: 1.5rem;
}

.course-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.course-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-600);
}

.course-meta-item svg { color: var(--vinho); flex-shrink: 0; }

.course-card-footer {
  padding: 1.2rem 1.8rem;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--gray-200);
}

.course-instructor { font-size: 13px; color: var(--gray-600); }
.course-instructor strong { color: var(--navy); display: block; font-size: 14px; }

.course-date-badge {
  background: var(--vinho);
  color: white; padding: 6px 14px;
  border-radius: 6px; font-size: 13px;
  font-weight: 600; font-family: 'DM Mono', monospace;
  white-space: nowrap;
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--navy); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.about-section .section-title { color: white; }
.about-section .section-subtitle { color: rgba(255,255,255,0.6); }

.values-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.value-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
}

.value-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(107,30,46,0.3);
  border: 1px solid rgba(107,30,46,0.5);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.value-title { font-weight: 600; color: var(--gold); margin-bottom: 4px; font-size: 15px; }
.value-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

.mvv-cards { display: flex; flex-direction: column; gap: 1.2rem; }

.mvv-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.5rem;
  transition: var(--transition);
}

.mvv-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(201,168,76,0.2); }

.mvv-label {
  font-size: 10px; letter-spacing: 2px;
  color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.6rem;
}

.mvv-text { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section { background: var(--gray-100); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}

.portfolio-item {
  background: white; border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}

.portfolio-item:hover { border-color: var(--vinho); box-shadow: var(--shadow-sm); }

.portfolio-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--vinho), var(--vinho-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.portfolio-name { font-size: 14px; font-weight: 500; color: var(--navy); line-height: 1.4; }

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 5rem; align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
}

.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(107,30,46,0.08);
  border: 1px solid rgba(107,30,46,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.contact-item-label { font-size: 12px; color: var(--gray-400); margin-bottom: 2px; }
.contact-item-value { font-size: 15px; color: var(--navy); font-weight: 500; }

/* ===== FORM ===== */
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--gray-600); margin-bottom: 6px;
  letter-spacing: 0.3px;
}

input, select, textarea {
  width: 100%; padding: 12px 16px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 8px; font-size: 14px; color: var(--gray-800);
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition); outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--vinho);
  background: white;
  box-shadow: 0 0 0 3px rgba(107,30,46,0.08);
}

textarea { resize: vertical; min-height: 100px; }

/* ===== FOOTER ===== */
footer {
  background: var(--gray-800); padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}

.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 1rem; line-height: 1.7; }

.footer-title {
  font-size: 12px; letter-spacing: 2px; color: var(--gold);
  text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 14px; transition: var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}

.login-left {
  background: var(--navy);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 3rem; position: relative; overflow: hidden;
}

.login-left-pattern {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, var(--vinho) 0px, var(--vinho) 2px, transparent 2px, transparent 20px);
}

.login-left-content { position: relative; z-index: 1; text-align: center; max-width: 400px; }

.login-logo-mark {
  width: 72px; height: 72px; margin: 0 auto 2rem;
  background: var(--vinho);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 28px; color: white;
}

.login-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700; color: white;
  letter-spacing: 8px; margin-bottom: 0.5rem;
}

.login-logo-tag {
  font-size: 11px; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 3rem;
}

.login-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: white; font-weight: 400;
  line-height: 1.4; margin-bottom: 1.5rem;
}

.login-tagline em { color: var(--gold); font-style: italic; }

.login-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; }

.login-right {
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem;
}

.login-form-container { width: 100%; max-width: 400px; }

.login-title {
  font-size: 1.8rem; color: var(--navy); margin-bottom: 0.5rem;
}

.login-subtitle { font-size: 14px; color: var(--gray-600); margin-bottom: 2.5rem; }

.login-tabs {
  display: flex; gap: 0; margin-bottom: 2rem;
  background: var(--gray-200); border-radius: 8px; padding: 3px;
}

.login-tab {
  flex: 1; padding: 8px 16px; border: none;
  background: none; cursor: pointer;
  font-size: 14px; font-weight: 500;
  color: var(--gray-600); border-radius: 6px;
  transition: var(--transition); font-family: 'DM Sans', sans-serif;
}

.login-tab.active {
  background: white; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.forgot-link {
  font-size: 13px; color: var(--vinho);
  text-decoration: none; float: right;
}
.forgot-link:hover { text-decoration: underline; }

.login-divider {
  text-align: center; color: var(--gray-400);
  font-size: 12px; margin: 1.5rem 0;
  position: relative;
}
.login-divider::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--gray-200);
}
.login-divider::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--gray-200);
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-600); text-decoration: none;
  font-size: 14px; margin-bottom: 2rem;
  transition: var(--transition);
}
.back-link:hover { color: var(--navy); }

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: flex; min-height: 100vh;
}

.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--navy);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100; overflow-y: auto;
  transition: var(--transition);
}

.sidebar-header {
  padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-nav { padding: 1.5rem 0; flex: 1; }

.sidebar-section {
  font-size: 10px; letter-spacing: 2px;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
  padding: 0 1.5rem; margin-bottom: 0.5rem; margin-top: 1.5rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 1.5rem; color: rgba(255,255,255,0.6);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: var(--transition); position: relative;
}

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

.sidebar-link.active {
  color: white; background: rgba(107,30,46,0.3);
  border-right: 3px solid var(--vinho);
}

.sidebar-link svg { flex-shrink: 0; }

.sidebar-badge {
  margin-left: auto; background: var(--vinho);
  color: white; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}

.sidebar-footer {
  padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08);
}

.user-info {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

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

.user-name { font-size: 13px; font-weight: 600; color: white; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.4); }

.dashboard-main {
  margin-left: 260px; flex: 1;
  background: var(--gray-100); min-height: 100vh;
}

.dashboard-topbar {
  background: white; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 50;
}

.topbar-title { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.topbar-title span { font-size: 13px; color: var(--gray-400); font-weight: 400; display: block; }

.topbar-actions { display: flex; align-items: center; gap: 1rem; }

.topbar-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); transition: var(--transition);
  position: relative;
}
.topbar-btn:hover { background: var(--gray-100); color: var(--navy); }

.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; background: var(--vinho);
  border-radius: 50%; border: 2px solid white;
}

.dashboard-content { padding: 2rem; }

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem; margin-bottom: 2rem;
}

.stat-card {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.stat-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.stat-card-icon.vinho { background: rgba(107,30,46,0.1); }
.stat-card-icon.navy { background: rgba(26,39,68,0.08); }
.stat-card-icon.gold { background: rgba(201,168,76,0.12); }
.stat-card-icon.green { background: rgba(45,106,79,0.1); }

.stat-trend {
  font-size: 12px; font-weight: 600; padding: 3px 8px;
  border-radius: 4px;
}
.stat-trend.up { color: var(--success); background: rgba(45,106,79,0.1); }
.stat-trend.neutral { color: var(--gray-600); background: var(--gray-100); }

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--navy);
  line-height: 1;
}

.stat-label { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ===== DATA TABLE ===== */
.data-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
  margin-bottom: 1.5rem;
}

.data-card-header {
  padding: 1.3rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200); gap: 1rem; flex-wrap: wrap;
}

.data-card-title { font-size: 1rem; font-weight: 600; color: var(--navy); }

.search-input-wrap { position: relative; }
.search-input-wrap input {
  padding-left: 36px; width: 220px;
  background: var(--gray-100);
}
.search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); pointer-events: none;
}

table { width: 100%; border-collapse: collapse; }
th {
  background: var(--gray-100); padding: 10px 16px;
  font-size: 12px; font-weight: 600; color: var(--gray-600);
  text-align: left; letter-spacing: 0.5px; text-transform: uppercase;
}
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(107,30,46,0.02); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.badge-active { background: rgba(45,106,79,0.1); color: var(--success); }
.badge-pending { background: rgba(201,168,76,0.1); color: #8B6914; }
.badge-inactive { background: var(--gray-100); color: var(--gray-600); }
.badge-vinho { background: rgba(107,30,46,0.1); color: var(--vinho); }

.action-btn {
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--gray-200);
  background: none; cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--navy); transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.action-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.action-btn.danger:hover { background: var(--danger); border-color: var(--danger); }

/* ===== COURSE DETAIL / STUDENT AREA ===== */
.course-detail-header {
  background: var(--navy); padding: 2.5rem 2rem;
  margin: -2rem -2rem 2rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.course-detail-title {
  font-size: 1.6rem; color: white; margin-bottom: 0.5rem;
}
.course-detail-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.course-detail-meta span { font-size: 13px; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 6px; }

.modules-list { display: flex; flex-direction: column; gap: 0.8rem; }

.module-item {
  background: white; border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}

.module-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; cursor: pointer;
}

.module-header:hover { background: var(--gray-100); }

.module-number {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--navy); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}

.module-number.done { background: var(--success); }

.module-title { font-size: 14px; font-weight: 600; color: var(--navy); flex: 1; }
.module-duration { font-size: 12px; color: var(--gray-400); }

.module-materials {
  padding: 0 1.2rem 1.2rem;
  display: none; flex-direction: column; gap: 0.6rem;
}

.module-materials.open { display: flex; }

.material-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  background: var(--gray-100); border: 1px solid var(--gray-200);
  text-decoration: none; color: var(--gray-800);
  transition: var(--transition); font-size: 13px;
}

.material-item:hover { background: rgba(107,30,46,0.05); border-color: var(--vinho); color: var(--vinho); }

.material-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 14px;
}

.material-icon.pdf { background: rgba(192,57,43,0.1); color: #C0392B; }
.material-icon.video { background: rgba(26,39,68,0.08); color: var(--navy); }

.progress-section {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
}

.progress-bar {
  height: 8px; background: var(--gray-200);
  border-radius: 4px; overflow: hidden;
}

.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--vinho), var(--gold));
  border-radius: 4px; transition: width 0.8s ease;
}

/* ===== CERTIFICATE ===== */
.certificate-preview {
  background: white; border: 3px solid var(--navy);
  border-radius: var(--radius-lg); padding: 3rem; text-align: center;
  position: relative; overflow: hidden; margin: 1rem 0;
}

.certificate-preview::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(201,168,76,0.4); border-radius: 12px;
  pointer-events: none;
}

.cert-top-bar {
  height: 6px; background: linear-gradient(90deg, var(--vinho), var(--navy));
  position: absolute; top: 0; left: 0; right: 0;
}

.cert-logo { margin-bottom: 1.5rem; }
.cert-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--navy);
  letter-spacing: 8px;
}
.cert-logo-tag { font-size: 10px; letter-spacing: 3px; color: var(--vinho); text-transform: uppercase; }

.cert-title {
  font-size: 13px; letter-spacing: 2px; color: var(--gray-600);
  text-transform: uppercase; margin-bottom: 0.5rem;
}

.cert-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--vinho);
  margin-bottom: 0.5rem;
}

.cert-text { font-size: 14px; color: var(--gray-600); margin-bottom: 0.5rem; }

.cert-course-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600; color: var(--navy);
  margin-bottom: 0.5rem;
}

.cert-hours { font-size: 13px; color: var(--gray-600); margin-bottom: 1.5rem; }

.cert-divider {
  width: 80px; height: 2px; background: var(--gold);
  margin: 1.5rem auto;
}

.cert-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 2rem; flex-wrap: wrap; gap: 1rem;
}

.cert-signature { text-align: center; }
.cert-signature-line { width: 140px; height: 1px; background: var(--navy); margin: 0 auto 6px; }
.cert-signature-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.cert-signature-title { font-size: 11px; color: var(--gray-600); }

.cert-date-stamp {
  background: var(--navy); color: white;
  padding: 8px 16px; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 12px;
}

/* ===== MOBILE NAV ===== */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy); padding: 1.5rem;
  flex-direction: column; gap: 1rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}

.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }

.mobile-nav-links a {
  display: block; padding: 12px 16px; color: rgba(255,255,255,0.8);
  text-decoration: none; font-size: 16px; border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav-links a:hover { background: rgba(255,255,255,0.05); color: white; }

.close-btn {
  background: none; border: none; color: white;
  font-size: 24px; cursor: pointer; padding: 4px;
}

/* ===== SIDEBAR MOBILE TOGGLE ===== */
.sidebar-toggle {
  display: none; position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--vinho); color: white; border: none;
  font-size: 22px; cursor: pointer; z-index: 200;
  box-shadow: var(--shadow-lg); align-items: center; justify-content: center;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
}

.modal-header {
  padding: 1.5rem; border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
}

.modal-title { font-size: 1.1rem; font-weight: 600; color: var(--navy); }

.modal-close {
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--gray-400); transition: var(--transition);
}
.modal-close:hover { color: var(--navy); }

.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200);
  display: flex; gap: 0.8rem; justify-content: flex-end;
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(45,106,79,0.1); color: var(--success); border: 1px solid rgba(45,106,79,0.2); }
.alert-warning { background: rgba(201,168,76,0.1); color: #8B6914; border: 1px solid rgba(201,168,76,0.2); }
.alert-danger { background: rgba(192,57,43,0.1); color: var(--danger); border: 1px solid rgba(192,57,43,0.2); }

/* ===== TABS ===== */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; gap: 0; }

.tab {
  padding: 10px 20px; background: none; border: none;
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.tab.active { color: var(--vinho); border-bottom-color: var(--vinho); }
.tab:hover:not(.active) { color: var(--navy); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 4rem 1.2rem; }

  .hero-content { padding: 3rem 1.2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Login mobile */
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }

  /* Dashboard mobile */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .dashboard-topbar { padding: 1rem; }
  .dashboard-content { padding: 1.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .search-input-wrap input { width: 160px; }

  table { font-size: 13px; }
  th, td { padding: 10px 12px; }

  .courses-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }

  .cert-footer { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; justify-content: center; }
}

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

.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in-1 { animation-delay: 0.1s; }
.animate-in-2 { animation-delay: 0.2s; }
.animate-in-3 { animation-delay: 0.3s; }
.animate-in-4 { animation-delay: 0.4s; }

/* ===== HIDDEN ===== */
.hidden { display: none !important; }
.page { display: none; }
.page.active { display: block; }
