@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* CSS Custom Variables for Theme */
:root {
  --bg-dark: #030712;
  --bg-grid: rgba(139, 92, 246, 0.03);
  --bg-card: rgba(17, 24, 39, 0.7);
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.3);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.2);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-speed: 0.3s;
  --font-family-body: 'Inter', sans-serif;
  --font-family-heading: 'Outfit', sans-serif;
  --font-family-mono: 'Fira Code', monospace;
  --sidebar-width: 320px;
}

body.light-mode {
  --bg-dark: #f8fafc;
  --bg-grid: rgba(109, 40, 217, 0.02);
  --bg-card: rgba(255, 255, 255, 0.75);
  --primary: #6d28d9;
  --primary-glow: rgba(109, 40, 217, 0.15);
  --secondary: #0891b2;
  --secondary-glow: rgba(8, 145, 178, 0.15);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.15);
  --border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.12);
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Tech Grid Decorative Background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Glowing Orbs Background Effect */
.bg-orb-1, .bg-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  transition: transform 10s ease-in-out infinite alternate;
}

.bg-orb-1 {
  background: var(--primary-glow);
  top: 10%;
  right: -100px;
}

.bg-orb-2 {
  background: var(--secondary-glow);
  bottom: 15%;
  left: -100px;
  width: 500px;
  height: 500px;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header & Floating controls */
.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

body.light-mode .theme-toggle-btn .fa-moon {
  display: none;
}

body.light-mode .theme-toggle-btn .fa-sun {
  display: block;
}

/* Profile Card Banner (Hero Card) */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease-out;
}

.hero-card:hover .profile-avatar {
  transform: scale(1.04) rotate(2deg);
  border-color: var(--primary);
}

.avatar-glow {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
}

.hero-info {
  flex-grow: 1;
}

.badge-ai-cto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-info h1 {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .hero-info h1 {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-info h2 {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.hero-contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
}

.hero-contact-item:hover {
  color: var(--text-primary);
}

.hero-contact-item:hover i {
  color: var(--secondary);
}

/* Two Column Layout */
.layout-grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 2.5rem;
}

/* Sidebar Column */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Standard Section Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.05);
}

.card-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.card-title i {
  color: var(--primary);
}

/* Skills styling */
.skill-category {
  margin-bottom: 1.5rem;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag.highlight {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  color: var(--primary);
}

.skill-tag:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

/* Languages */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.lang-level {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Main Content Area */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-block-title {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-block-title i {
  color: var(--primary);
}

/* Career Summary styling */
.summary-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.summary-text p {
  margin-bottom: 1rem;
}

.summary-text p:last-child {
  margin-bottom: 0;
}

.summary-text strong {
  color: var(--text-primary);
}

.highlight-banner {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-banner i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}

.highlight-banner-content {
  color: var(--text-secondary);
}

.highlight-banner-content strong {
  color: var(--text-primary);
}

/* Timeline/Experiences Layout */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 6px;
  width: 2px;
  height: calc(100% - 1.5rem);
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: calc(-1.75rem - 6px + 2px);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item.active .timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--secondary);
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.timeline-content:hover {
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.role-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 600;
}

.job-time {
  font-family: var(--font-family-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.timeline-item.active .job-time {
  color: var(--primary);
  border-color: rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.03);
}

.timeline-body ul {
  list-style: none;
}

.timeline-body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.timeline-body li:last-child {
  margin-bottom: 0;
}

/* Sub-items (nested list items e.g., for INDRAMIND project details) */
.timeline-body li ul {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  border-left: 1px dashed var(--border);
  padding-left: 0.75rem;
}

.timeline-body li ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.timeline-body li ul li::before {
  content: "•";
  color: var(--secondary);
}

/* Education Layout */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.25s ease;
}

.education-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.education-card.special-ai {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, var(--bg-card) 100%);
}

.education-card.special-ai::after {
  content: "AI SPECIALIZATION";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-family-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  background: rgba(139, 92, 246, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.edu-degree {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  padding-right: 4rem; /* keep space for the AI badge */
}

.edu-institution {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.edu-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Collapsible Section for Older Experience */
.accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-header h3 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-header h3 i {
  color: var(--text-muted);
}

.accordion-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion.open .accordion-content {
  max-height: 2000px; /* high enough limit for content */
}

.accordion-content-inner {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.older-job-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.older-job-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.older-job-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.older-job-company {
  color: var(--secondary);
  font-size: 0.9rem;
}

.older-job-time {
  font-family: var(--font-family-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.older-job-details {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.older-job-details ul {
  list-style: none;
  margin-top: 0.4rem;
}

.older-job-details li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
}

.older-job-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Footer Section */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    order: 2; /* Put sidebar content below main details on mobile/tablet */
  }
  .main-content {
    order: 1;
  }
}

@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
  }
  .hero-card::after {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }
  .hero-info h1 {
    font-size: 2.2rem;
  }
  .hero-contact {
    justify-content: center;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* PDF Print styles */
@media print {
  :root {
    --bg-dark: #ffffff !important;
    --bg-card: #ffffff !important;
    --text-primary: #000000 !important;
    --text-secondary: #222222 !important;
    --text-muted: #555555 !important;
    --border: #dddddd !important;
    --primary: #4f46e5 !important;
    --secondary: #0891b2 !important;
    --card-shadow: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
    line-height: 1.35 !important;
  }

  body::before,
  .bg-orb-1,
  .bg-orb-2,
  .controls,
  .accordion-arrow,
  .avatar-glow,
  .chat-widget {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-card {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    gap: 2rem !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .hero-card::after {
    display: none !important;
  }

  .profile-avatar {
    width: 110px !important;
    height: 110px !important;
    border: 1px solid #cbd5e1 !important;
  }

  .hero-info h1 {
    font-size: 2.2rem !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #0f172a !important;
  }

  .hero-info h2 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-contact {
    gap: 1rem !important;
  }

  .hero-contact-item {
    font-size: 0.85rem !important;
    color: #334155 !important;
  }

  .hero-contact-item i {
    color: #4f46e5 !important;
  }

  .layout-grid {
    grid-template-columns: 260px 1fr !important;
    gap: 1.5rem !important;
  }

  .card {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 1.25rem !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .card-title {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .skill-tag {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
  }

  .skill-tag.highlight {
    background: #e0e7ff !important;
    border-color: #c7d2fe !important;
    color: #4338ca !important;
  }

  .main-content {
    gap: 1.5rem !important;
  }

  .section-block-title {
    font-size: 1.35rem !important;
    margin-bottom: 1rem !important;
  }

  /* Force accordion to open in print */
  .accordion-content {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .accordion-content-inner {
    padding: 1rem 0 0 0 !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  .accordion {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .accordion-header {
    background: #f8fafc !important;
    cursor: default !important;
    padding: 1rem 1.25rem !important;
  }

  .timeline::before {
    background: #cbd5e1 !important;
  }

  .timeline-dot {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
  }

  .timeline-item.active .timeline-dot {
    border-color: #4f46e5 !important;
    background: #4f46e5 !important;
  }

  .timeline-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.25rem !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .job-time {
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }

  .education-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .education-card {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    padding: 1rem !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .education-card.special-ai {
    border-color: #c7d2fe !important;
    background: #f8fafc !important;
  }

  .education-card.special-ai::after {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.3rem !important;
  }

  .older-job-item {
    border-left: 2px solid #e2e8f0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1rem !important;
  }
  
  .older-job-item:last-child {
    margin-bottom: 0 !important;
  }

  .timeline-item {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1.5rem !important;
  }
}

/* AI Chatbot Floating Widget Styling */
.chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  font-family: var(--font-family-body);
}

.chat-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-trigger-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.6);
}

.chat-trigger-btn .pulse-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chat-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.chat-panel.active {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.agent-info h4 {
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.agent-info .status-indicator {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.agent-info .status-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
}

.chat-actions {
  display: flex;
  gap: 0.5rem;
}

.chat-actions .action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Settings Overlay */
.settings-panel {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(12px);
  z-index: 10;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-panel.active {
  top: 0;
}

.settings-panel h5 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.settings-panel p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.settings-panel input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  outline: none;
  font-family: var(--font-family-mono);
}

.settings-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.settings-buttons {
  display: flex;
  gap: 0.75rem;
}

.settings-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.settings-btn.primary-btn:hover {
  background: #7c3aed;
}

.settings-btn.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.settings-btn.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.settings-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Chat History Window */
.chat-history {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.05);
}

/* Scrollbar for chat history */
.chat-history::-webkit-scrollbar {
  width: 5px;
}

.chat-history::-webkit-scrollbar-track {
  background: transparent;
}

.chat-history::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user-msg {
  align-self: flex-end;
}

.message.agent-msg {
  align-self: flex-start;
}

.message.system-msg {
  align-self: center;
  max-width: 95%;
  text-align: center;
}

.msg-content {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-radius: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.user-msg .msg-content {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
  border-bottom-right-radius: 2px;
}

body.light-mode .user-msg .msg-content {
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.2);
}

.agent-msg .msg-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: 2px;
}

.agent-msg.error-msg .msg-content {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
  color: #ef4444;
}

.system-msg .msg-content {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Suggestion Chips */
.chat-suggestions {
  display: flex;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.suggestion-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
  border-style: solid;
}

.suggestion-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

/* Chat Input Bar */
.chat-form {
  padding: 0.8rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.chat-form input {
  flex-grow: 1;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--primary);
}

.chat-form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.chat-form button:hover {
  background: #7c3aed;
}

/* Code block output formatting */
.chat-code-block {
  margin-top: 0.5rem;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-code-block pre {
  margin: 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2) !important;
  overflow-x: auto;
  font-size: 0.8rem;
  font-family: var(--font-family-mono);
  max-height: 200px;
}

.chat-code-block code {
  color: #38bdf8 !important;
  white-space: pre;
}

.chat-msg-header-btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.chat-copy-btn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  transition: all 0.2s;
}

.chat-copy-btn:hover {
  background: var(--primary);
  color: white;
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 40px);
    right: -5px;
    height: 480px;
    bottom: 75px;
  }
}

/* ==========================================================================
   ChatGPT Fullscreen Conversational Layout
   ========================================================================== */

.chat-page-body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.chat-app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Sidebar Styles */
.chat-sidebar {
  width: 260px;
  height: 100%;
  background-color: #0b0f19; /* fixed dark color for a clean code vibe */
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 50;
}

body.light-mode .chat-sidebar {
  background-color: #f1f5f9;
}

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

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .sidebar-logo img {
  border-color: rgba(0, 0, 0, 0.1);
}

.sidebar-logo h3 {
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9fafb;
  margin: 0;
}

body.light-mode .sidebar-logo h3 {
  color: #0f172a;
}

.sidebar-logo span {
  font-size: 0.75rem;
  color: #9ca3af;
  display: block;
}

body.light-mode .sidebar-logo span {
  color: #64748b;
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-mode .sidebar-toggle-btn {
  color: #64748b;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
}

body.light-mode .sidebar-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.sidebar-nav {
  flex-grow: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s;
}

body.light-mode .sidebar-nav-item {
  color: #475569;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
}

body.light-mode .sidebar-nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.sidebar-nav-item i {
  width: 16px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  font-family: var(--font-family-body);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

body.light-mode .sidebar-footer-btn {
  border-color: rgba(0, 0, 0, 0.15);
  color: #475569;
}

.sidebar-footer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
  border-color: var(--primary);
}

body.light-mode .sidebar-footer-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.sidebar-footer-text {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

/* Main Area Layout */
.chat-main {
  flex-grow: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Top bar (Header for mobile) */
.chat-top-bar {
  height: 56px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  z-index: 40;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar-title {
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.top-bar-cv-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Chat Workspace container */
.chat-workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  height: calc(100% - 56px);
}

/* Welcome Dashboard (ChatGPT style) */
.welcome-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  overflow-y: auto;
}

.welcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.welcome-container h2 {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
}

.welcome-suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
}

.welcome-suggestion-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.08);
}

.welcome-suggestion-card .card-icon {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.welcome-suggestion-card strong {
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.welcome-suggestion-card span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Fullscreen Messages Log */
.fullscreen-chat-history {
  display: none;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
  width: 100%;
}

.fullscreen-msg-row {
  display: flex;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

body.light-mode .fullscreen-msg-row {
  border-bottom-color: rgba(0, 0, 0, 0.02);
}

.fullscreen-msg-row.user-row {
  background: rgba(255, 255, 255, 0.01);
}

body.light-mode .fullscreen-msg-row.user-row {
  background: rgba(0, 0, 0, 0.01);
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.user-row .msg-avatar {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--secondary);
}

.agent-row .msg-avatar {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
}

.msg-content-wrapper {
  flex-grow: 1;
  max-width: 800px;
}

.msg-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
}

body.light-mode .msg-text {
  color: #1e293b;
}

/* Input Form at Bottom */
.chat-input-panel-wrapper {
  padding: 1.5rem 2rem 2rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.fullscreen-chat-form {
  max-width: 800px;
  width: 100%;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.5rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
}

.fullscreen-chat-form input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 3.5rem 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.fullscreen-chat-form button {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s;
}

body.light-mode .fullscreen-chat-form button {
  background: #0f172a;
  color: #ffffff;
}

.fullscreen-chat-form button:hover {
  transform: scale(1.05);
}

.fullscreen-chat-form button i {
  transform: scale(0.9);
}

.chat-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  text-align: center;
  max-width: 600px;
}

/* API Settings Modal (Centered Overlay) */
.settings-panel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.settings-panel-overlay.active {
  display: flex;
}

.settings-modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.settings-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.7rem;
  cursor: pointer;
}

.settings-modal-card h5 {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.settings-modal-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.settings-modal-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  outline: none;
  font-family: var(--font-family-mono);
}

.settings-modal-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.settings-modal-buttons {
  display: flex;
  gap: 0.75rem;
}

.modal-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.modal-btn.primary:hover {
  background: #7c3aed;
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Responsive Sidebar behavior */
@media (min-width: 769px) {
  .chat-sidebar {
    transform: translateX(0) !important;
  }
  .sidebar-toggle-btn {
    display: none;
  }
  .menu-toggle-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .chat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .chat-sidebar.active {
    transform: translateX(0);
  }
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
  .fullscreen-chat-history {
    padding: 0.75rem 0;
  }
  .fullscreen-msg-row {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }
  .chat-input-panel-wrapper {
    padding: 1rem 1.25rem 1.5rem;
  }
}

/* CV format selector buttons inside chat */
.cv-format-selection {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.cv-select-btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: var(--font-family-body);
}

.cv-select-btn.html-btn {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.cv-select-btn.html-btn:hover {
  background: #7c3aed;
}

.cv-select-btn.markdown-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

body.light-mode .cv-select-btn.markdown-btn {
  background: rgba(0, 0, 0, 0.05);
}

.cv-select-btn.markdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

/* Welcome screen API promo banner */
.api-key-promo-banner {
  background: rgba(124, 58, 237, 0.1);
  border: 1px dashed var(--primary);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin: 1.25rem auto 1.75rem;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.api-key-promo-banner:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
  border-style: solid;
}

.api-key-promo-banner .promo-icon {
  font-size: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
  animation: pulse-gemini 2s infinite ease-in-out;
}

.api-key-promo-banner p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.api-key-promo-banner strong {
  color: var(--primary);
}

@keyframes pulse-gemini {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Gemini avatar logo styling */
.gemini-avatar-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.gemini-row-agent .msg-avatar {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-mode .gemini-row-agent .msg-avatar {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Sender label inside chat bubble wrapper */
.msg-sender-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

/* Local Robot SVG avatar styling */
.robot-avatar-icon {
  color: var(--primary);
  display: block;
}



