/* Blue branding theme matching PDF */
:root {
  --brand-blue: #5b8fa3;
  --brand-dark-blue: #4a7386;
  --brand-light-blue: #7ba8bb;
  --brand-orange: #ff9933;
  --brand-gray: #6c757d;
}

/* Header styling */
.header-section {
  background-color: var(--brand-blue);
  color: white;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

/* Custom title page styling */
.quarto-title-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-dark-blue) 100%);
  color: white;
  padding: 3rem 0;
}

.quarto-title .title {
  color: white;
}

/* Sidebar navigation */
.sidebar-navigation .chapter-number {
  color: var(--brand-blue);
  font-weight: 600;
}

.sidebar-navigation .active {
  background-color: var(--brand-light-blue);
  border-left: 4px solid var(--brand-blue);
}

/* Section headers with blue theme */
h1 {
  color: var(--brand-dark-blue);
  border-bottom: 3px solid var(--brand-blue);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

h2 {
  color: var(--brand-blue);
  border-bottom: 2px solid var(--brand-light-blue);
  padding-bottom: 0.3rem;
  margin-top: 1.5rem;
}

h3 {
  color: var(--brand-dark-blue);
  margin-top: 1.2rem;
}

/* Callout boxes matching PDF style */
.callout {
  border-radius: 4px;
  margin: 1.5rem 0;
}

.callout-note {
  border-left: 5px solid var(--brand-blue);
  background-color: rgba(91, 143, 163, 0.1);
}

.callout-tip {
  border-left: 5px solid var(--brand-orange);
  background-color: rgba(255, 153, 51, 0.1);
}

.callout-important {
  border-left: 5px solid #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.callout-warning {
  border-left: 5px solid #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

/* Table styling */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

thead {
  background-color: var(--brand-blue);
  color: white;
}

th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-dark-blue);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

tbody tr:hover {
  background-color: rgba(91, 143, 163, 0.05);
}

tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Figure captions */
.figure-caption,
.table-caption {
  color: var(--brand-gray);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* Links */
a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--brand-dark-blue);
  text-decoration: underline;
}

/* Code blocks */
pre {
  background-color: #f8f9fa;
  border-left: 4px solid var(--brand-blue);
  padding: 1rem;
  border-radius: 4px;
}

code {
  color: var(--brand-dark-blue);
  background-color: rgba(91, 143, 163, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Footer styling */
.nav-footer {
  background-color: var(--brand-dark-blue);
  color: white;
  margin-top: 3rem;
}

.nav-footer a {
  color: var(--brand-light-blue);
}

/* Lists */
ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--brand-blue);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--brand-gray);
  font-style: italic;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Button styling */
.btn-primary {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-primary:hover {
  background-color: var(--brand-dark-blue);
  border-color: var(--brand-dark-blue);
}

/* Search box styling */
.aa-Input {
  border: 2px solid var(--brand-light-blue);
}

.aa-Input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 0.2rem rgba(91, 143, 163, 0.25);
}
