/* ===============================================
   Startify - Modern Startup SaaS Documentation
   Primary Color: #2563EB (Royal Blue)
   Designed by: PriHarsh Design
   Version: 2.0.0 - BIG FONT SIZE UPDATE
   =============================================== */

/* CSS Variables - Easy Customization */
:root {
  /* Primary Colors - Royal Blue (#2563EB) */
  --primary: #2563EB;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, var(--primary), #4f46e5);
  
  /* Secondary Colors */
  --secondary: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  
  /* Neutral Colors */
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-800: #2d3748;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; margin-top: 2rem; }
h2 { 
  font-size: 3rem; 
  border-left: 6px solid var(--primary);
  padding-left: 1.5rem;
}
h3 { font-size: 2.5rem; }
h4 { font-size: 2.2rem; }
h5 { font-size: 1.8rem; }
h6 { font-size: 1.5rem; }

/* ===== Navbar ===== */
.navbar {
  background: var(--primary-gradient) !important;
  box-shadow: var(--shadow-primary);
  border: none;
  padding: 1.5rem 2.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .logo {
  color: var(--white) !important;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}



/* ===== Sidebar ===== */
#sidebar-wrapper {
  background: var(--white);
  border-right: 2px solid var(--gray-200);
  box-shadow: 6px 0 25px rgba(0, 0, 0, 0.05);
  width: 350px;
  position: fixed;
  top: 95px;
  left: 0;
  height: calc(100vh - 95px);
  overflow-y: auto;
  transition: var(--transition);
  z-index: 900;
}

#sidebar-wrapper::-webkit-scrollbar {
  width: 10px;
}

#sidebar-wrapper::-webkit-scrollbar-track {
  background: var(--gray-100);
}

#sidebar-wrapper::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 20px;
}

#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

.sidebar-nav li {
  margin: 4px 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 1.2rem 2rem;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  border-radius: 0 40px 40px 0;
  margin-right: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.sidebar-nav li a:before {
  font-size: 1.8rem;
}

.sidebar-nav li a:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), transparent);
  color: var(--primary);
  padding-left: 2.5rem;
}

.sidebar-nav li a.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), transparent);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.sidebar-nav li a.active:after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  background: var(--primary-gradient);
  border-radius: 6px 0 0 6px;
}

/* ===== Main Content ===== */
#page-content-wrapper {
  margin-left: 350px;
  margin-top: 95px;
  padding: 3.5rem;
  transition: var(--transition);
  min-height: calc(100vh - 95px);
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== Sections ===== */
section {
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

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

.com-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  margin-bottom: 3rem;
}

.com-container:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* Page Header */
.page-header {
  color: var(--dark);
  border-bottom: 3px solid var(--primary-gradient);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.5rem;
}

.page-header:before {
  font-size: 2.8rem;
}

/* ===== Paragraphs ===== */
p {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  color: var(--gray-700);
}

/* ===== Alerts ===== */
.alert {
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 500;
  position: relative;
  margin-bottom: 2.5rem;
  font-size: 1.4rem;
}

.alert strong {
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.alert-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  border-left: 6px solid var(--secondary);
}

.alert-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border-left: 6px solid var(--primary);
}

/* ===== Code Blocks ===== */
pre.prettyprint {
  border: 2px solid var(--gray-300) !important;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  color: var(--gray-200);
  padding: 2.5rem !important;
  margin: 2.5rem 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1.8;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

code {
  background: var(--gray-200);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  border: 2px solid var(--gray-300);
  font-weight: 500;
}

/* ===== Lists ===== */
ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

ul li {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 2px dashed var(--gray-200);
  color: var(--gray-700);
  font-size: 1.3rem;
  font-weight: 500;
}

ul li:last-child {
  border-bottom: none;
}

ul li:before {
  font-size: 1.8rem;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

/* ===== Tables ===== */
.table {
  width: 100%;
  font-size: 1.2rem;
  margin: 2rem 0;
}

.table th {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1.2rem;
  background: var(--gray-100);
}

.table td {
  padding: 1.2rem;
  font-size: 1.2rem;
}

/* ===== Credits Section ===== */
.credits {
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  margin-top: 2.5rem;
  font-weight: 600;
  font-size: 1.3rem;
}

/* ===== Footer ===== */
.footer-credits {
  background: var(--white);
  border-top: 2px solid var(--gray-200);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.footer-credits p {
  color: var(--gray-600);
  font-size: 1.3rem;
  margin: 0.75rem 0;
}

.designby {
  margin-top: 1rem;
}

.designby a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--transition);
}

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

/* ===== Step Numbers ===== */
.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  body { font-size: 20px; }
  #sidebar-wrapper { width: 320px; }
  #page-content-wrapper { margin-left: 320px; }
}

@media (max-width: 992px) {
  body { font-size: 18px; }
  #sidebar-wrapper { width: 280px; }
  #page-content-wrapper { 
    margin-left: 280px; 
    padding: 2rem; 
  }
  .sidebar-nav li a { 
    font-size: 1.1rem; 
    padding: 1rem 1.5rem; 
  }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
  h4 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
  body { font-size: 18px; }
  .navbar { padding: 1rem 1.5rem; }
  .navbar .logo { font-size: 1.6rem; }
  .navbar .logo:before { font-size: 2rem; }
  
  #sidebar-wrapper {
    transform: translateX(-100%);
    width: 300px;
    top: 80px;
    height: calc(100vh - 80px);
  }
  
  #page-content-wrapper {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  .com-container { padding: 2rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.6rem; }
  
  ul li {
    font-size: 1.1rem;
    padding: 0.8rem 0;
  }
  
  .alert {
    padding: 1.5rem;
    font-size: 1.1rem;
  }
  
  .alert strong { font-size: 1.4rem; }
}

/* ===== Dark Mode Support ===== */
[data-bs-theme="dark"] {
  --dark: #f9fafb;
  --gray-900: #f3f4f6;
  --gray-800: #e5e7eb;
  --gray-700: #d1d5db;
  --gray-600: #9ca3af;
  --gray-500: #6b7280;
  --gray-400: #4b5563;
  --gray-300: #374151;
  --gray-200: #1f2937;
  --gray-100: #111827;
  --gray-50: #0a0f1a;
  --white: #1a1f2e;
}

[data-bs-theme="dark"] body {
  background: var(--gray-100);
}

[data-bs-theme="dark"] .com-container {
  background: var(--white);
  border-color: var(--gray-300);
}

[data-bs-theme="dark"] .sidebar-nav li a {
  color: var(--gray-500);
}

[data-bs-theme="dark"] .sidebar-nav li a:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.25), transparent);
}

[data-bs-theme="dark"] pre.prettyprint {
  background: var(--gray-900);
  border-color: var(--gray-400) !important;
}

[data-bs-theme="dark"] code {
  background: var(--gray-300);
  color: var(--primary-light);
  border-color: var(--gray-400);
}

/* ===== Utility Classes ===== */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.shadow-primary {
  box-shadow: var(--shadow-primary);
}

.text-xl {
  font-size: 1.5rem;
  font-weight: 600;
}