/* ===========================================
   Validixty Documentation Styles
=========================================== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  margin: 0;
}

/* ===========================================
   Sidebar
=========================================== */
.sidebar {
  background: linear-gradient(180deg, #1f1f1f 0%, #2c2c2c 100%);
  color: #f8f9fa;
  min-height: 100vh;
  width: 280px;
  padding: 25px 20px;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
  border-right: 1px solid #3a3a3a;
}

/* Logo section */
.logo-placeholder {
  text-align: center;
  background-color: #2d2d2d;
  padding: 20px 10px;
  border-radius: 12px;
  margin-bottom: 35px;
  transition: background-color 0.3s ease;
}

.logo-placeholder:hover {
  background-color: #383838;
}

.logo-placeholder h3 {
  margin: 0;
  font-weight: 700;
  color: #00b4ff;
  font-size: 1.6rem;
}

.logo-placeholder p {
  color: #adb5bd;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Navigation Links */
.nav-link {
  color: #b0b0b0 !important;
  font-weight: 500;
  padding: 10px 15px;
  margin: 4px 0;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link:hover {
  background-color: rgba(0, 180, 255, 0.15);
  color: #00b4ff !important;
  transform: translateX(4px);
}

.nav-link.active {
  background-color: rgba(0, 180, 255, 0.25);
  color: #ffffff !important;
  font-weight: 600;
  border-left: 4px solid #00b4ff;
  padding-left: 11px;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}

/* ===========================================
   Main Content
=========================================== */
.main-content {
  margin-left: 300px;
  padding: 40px;
  background-color: white;
  min-height: 100vh;
}

section {
  margin-bottom: 60px;
}

h1 {
  color: #343a40;
  margin-bottom: 20px;
  border-bottom: 3px solid #00b4ff;
  padding-bottom: 10px;
}

h2 {
  color: #495057;
  margin-top: 40px;
  margin-bottom: 15px;
}

.lead {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 30px;
}

/* ===========================================
   Buttons
=========================================== */
.btn-primary {
  background-color: #00b4ff;
  border-color: #00b4ff;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0091d4;
  border-color: #0091d4;
  transform: translateY(-2px);
}

/* ===========================================
   Lists and Code Blocks
=========================================== */
ul {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

code {
  background-color: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

pre {
  background-color: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  position: relative;
  margin: 20px 0;
}

pre::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ff5f56;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27ca3f;
}

pre .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4a5568;
  color: #e2e8f0;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s;
}

pre .copy-btn:hover {
  background: #718096;
}

pre code {
  background: none;
  color: #e2e8f0;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* Syntax highlighting */
pre .token.keyword { color: #68d391; }
pre .token.string { color: #fbb6ce; }
pre .token.comment { color: #718096; font-style: italic; }
pre .token.function { color: #63b3ed; }
pre .token.class-name { color: #f6ad55; }
pre .token.operator { color: #fc8181; }
pre .token.punctuation { color: #e2e8f0; }
pre .token.number { color: #fbb6ce; }
pre .token.boolean { color: #68d391; }
pre .token.variable { color: #e2e8f0; }
pre .token.parameter { color: #9f7aea; }

/* ===========================================
   Footer
=========================================== */
footer a:hover {
  text-decoration: underline !important;
}

footer .fab {
  color: #6c757d;
  transition: color 0.3s ease;
}

footer a:hover .fab {
  color: #00b4ff;
}

/* ===========================================
   Helpers
=========================================== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* ===========================================
   Responsive Design
=========================================== */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    box-shadow: none;
    border-right: none;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .logo-placeholder {
    margin-bottom: 20px;
  }

  footer .row {
    text-align: center !important;
  }

  footer .col-md-6.text-end {
    text-align: center !important;
    margin-top: 10px;
  }
}
