/* ==========================================================================
   HLCRM - Presentation Style Sheet (Slide Deck Layout)
   Premium Light Mode Design matching the actual app
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Design System Variables --- */
:root {
  /* Colors */
  --bg-primary: #f8fafc; /* Light Slate */
  --bg-secondary: #ffffff; /* White */
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 162, 249, 0.3);
  
  --primary: #1976d2; /* Royal Blue */
  --secondary: #00a2f9; /* Sky Blue */
  --accent: #5b5b98; /* Slate Purple/Blue */
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --primary-gradient: linear-gradient(135deg, #00a2f9 0%, #1976d2 100%);
  --accent-gradient: linear-gradient(135deg, #5b5b98 0%, #1976d2 100%);
  
  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Blur */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-neon: 0 0 15px rgba(0, 162, 249, 0.15);
  --shadow-purple: 0 0 15px rgba(25, 118, 210, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent native scrolling for slide deck */
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 162, 249, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(91, 91, 152, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(25, 118, 210, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

/* --- Top Header (Logo and Slide Info) --- */
.presentation-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  background: var(--primary-gradient);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 0.95rem;
}

.header-meta {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 162, 249, 0.08);
  border: 1px solid rgba(0, 162, 249, 0.15);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-title);
}

/* --- Slide Deck Container --- */
.presentation-deck {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px 80px 80px; /* offset header/footer */
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 10;
}

.slide.prev {
  transform: translateX(-30px);
}

.slide-content-wrapper {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
}

.slide-header {
  margin-bottom: 30px;
}

.slide-header h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 12px;
}

.slide-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.slide-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --- Cover Slide (Slide 1) --- */
.cover-slide {
  text-align: center;
}

.cover-slide h1 {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cover-slide p {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

/* --- Card Styles --- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

/* --- Layout Elements (Columns, Lists) --- */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
}

.check-list li i {
  color: #10b981;
  font-size: 1.2rem;
}

.cross-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cross-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cross-list li i {
  color: #ef4444;
  font-size: 1.2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-title);
  font-size: 1.1rem;
  gap: 10px;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 162, 249, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* --- Bottom Navigation Control Bar --- */
.presentation-controls {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
}

.progress-bar-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  width: 0%;
  transition: width 0.3s ease;
}

.pagination {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pagination-current {
  color: var(--primary);
  font-size: 1.1rem;
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.nav-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.toc-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.toc-trigger-btn:hover {
  color: var(--primary);
}

/* --- Table of Contents Overlay Drawer --- */
.toc-drawer {
  position: fixed;
  bottom: 70px; left: 40px;
  width: 280px; max-height: 400px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 200;
  overflow-y: auto;
  padding: 16px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toc-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 6px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-item:hover {
  background: rgba(0, 162, 249, 0.05);
  color: var(--primary);
}

.toc-item.active {
  background: var(--primary-gradient);
  color: white;
  font-weight: 700;
}

/* --- Slide Mockup and Custom Layouts --- */
.hero-mockup {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mockup-header-left {
  display: flex;
  gap: 6px;
}

.mockup-header-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-body {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  overflow: hidden;
  background: #f8fafc;
}

.mockup-sidebar {
  width: 44px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
}

.mockup-sidebar-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.6;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.mockup-sidebar-icon.active {
  color: var(--primary);
  background: rgba(0, 162, 249, 0.08);
  opacity: 1;
}

.mockup-conversations {
  width: 150px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.mockup-conv-search-input {
  width: 100%;
  font-size: 0.6rem;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  background: #f8fafc;
}

.mockup-conv-tabs {
  display: flex;
  font-size: 0.55rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mockup-conv-tab {
  flex-grow: 1;
  text-align: center;
  padding: 6px 2px;
  color: var(--text-muted);
}

.mockup-conv-tab.active {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  font-weight: 700;
}

.mockup-conv-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mockup-conv-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mockup-conv-item.active {
  background: rgba(0, 162, 249, 0.04);
}

.mockup-conv-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
}

.mockup-conv-avatar-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  background: #25d366;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-conv-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.mockup-conv-name {
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-conv-msg {
  font-size: 0.58rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mockup-conv-time {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mockup-conv-unread {
  background: #25d366;
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 10px;
}

.mockup-chat-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mockup-chat-header {
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-chat-header-title {
  font-size: 0.7rem;
  font-weight: 700;
}

.mockup-chat-header-subtitle {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  line-height: 1.4;
}

.chat-bubble.bot {
  background: #ffffff;
  align-self: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
  background: var(--primary-gradient);
  align-self: flex-end;
  color: var(--text-inverse);
}

/* --- Niche & Comparative Styles in Slides --- */
.niches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.niche-item {
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.niche-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.niche-item h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.showcase-visual {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.kanban-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kanban-col {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-col-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
}

.kanban-card-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  margin-top: 6px;
  color: var(--text-muted);
}

.kanban-card-tag {
  background: rgba(0, 162, 249, 0.08);
  color: var(--primary);
  padding: 1px 4px;
  border-radius: 2px;
}

/* --- Form inside Slide --- */
.contact-form-card {
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.85rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 162, 249, 0.15);
}

textarea.form-control {
  resize: none;
  height: 70px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .slide {
    padding: 80px 40px 80px 40px;
  }
  .slide-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .niches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .slide-header h2 {
    font-size: 2rem;
  }
  .cover-slide h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .niches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-buttons .nav-btn {
    width: 38px; height: 38px;
    font-size: 0.95rem;
  }
}
