/* ===== SOLUTION MALL - LOG SECURITY GUIDE ===== */
/* Global Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #212529;
  background: #f8f9fa;
  line-height: 1.6;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.sidebar-logo {
  padding: 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  flex-shrink: 0;
  text-align: center;
}

.sidebar-logo img {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto 6px;
}

.sidebar-logo a {
  font-size: 0.75rem;
  color: #0d6efd;
  text-decoration: none;
}

.sidebar-logo a:hover { text-decoration: underline; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 80px;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  color: #212529;
  font-size: 0.875rem;
  border-left: 4px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.nav-item:hover { background: #f8f9fa; }

.nav-item.active {
  background: #f0f7ff;
  border-left-color: #0d6efd;
  color: #0d6efd;
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #0d6efd;
}

.nav-item span { flex: 1; line-height: 1.3; }

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
  background: #fff;
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 48px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 60%, #5dade2 100%);
  border-radius: 16px;
  padding: 60px 50px;
  margin-bottom: 48px;
  color: #fff;
}

.hero-version {
  font-size: 0.875rem;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 680px;
  line-height: 1.6;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary-white {
  background: #fff;
  color: #0d6efd;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-primary-white:hover { opacity: 0.9; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ===== CHAPTER NAVIGATION CARDS ===== */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.chapter-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  height: 130px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #333;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chapter-card:hover {
  box-shadow: 0 4px 16px rgba(13,110,253,0.12);
  transform: translateY(-2px);
}

.chapter-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #0d6efd;
}

.chapter-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chapter-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #0d6efd;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== CONTENT SECTIONS ===== */
.section { margin-bottom: 48px; }

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 16px;
  margin-top: 32px;
}

.section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 12px;
  margin-top: 24px;
}

.section p {
  font-size: 1rem;
  color: #212529;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ===== IMAGES ===== */
.figure-block {
  margin: 28px 0;
  text-align: center;
}

.figure-block img {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: block;
  margin: 0 auto;
}

.figure-caption {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 8px;
  font-style: italic;
}

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: #0d6efd;
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: #f8f9fa; }
tbody tr:hover { background: #e8f0fe; }

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #dee2e6;
  color: #212529;
  vertical-align: top;
}

/* ===== LISTS ===== */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.bullet-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
  color: #212529;
}

.bullet-list li::before {
  content: "•";
  color: #0d6efd;
  font-weight: 700;
  position: absolute;
  left: 0;
}

.ordered-list {
  padding-left: 24px;
  margin: 16px 0;
}

.ordered-list li {
  padding: 4px 0;
  line-height: 1.6;
  color: #212529;
}

/* ===== INFO CARDS ===== */
.info-card {
  background: #f0f7ff;
  border-left: 4px solid #0d6efd;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-card p { margin: 0; color: #212529; }

.warning-card {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.feature-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 8px;
  margin-top: 0;
}

.feature-item p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
}

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 32px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 24px;
}

.breadcrumb a { color: #0d6efd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.page-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #dee2e6;
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .chapter-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-wrapper { padding: 24px 20px; }
}
