/* css styles */
body {
  background-color: aliceblue;
  background-size: 200px;
  background-position: 72% 80px;
  background-repeat: no-repeat;
}

.navbar {
  background-color: rgb(51, 118, 157);
  --bs-navbar-color: rgb(255, 255, 255);
}

/* Styling for the sidebar logo */
.sidebar-logo {
  padding: 15px;
  text-align: center;
}

/* Target all possible sidebar logo selectors */
.sidebar-logo img,
#quarto-sidebar .sidebar-logo img,
.sidebar-navigation .sidebar-logo img,
.sidebar img[src*="SAHPRA-logo"],
.sidebar-title img,
#quarto-sidebar img,
.sidebar-tools-main img {
  max-width: 90% !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 10px 15% 10px auto !important; /* This shifts the logo to the left */
  display: block !important;
}

/* Force logo container styling */
.sidebar-logo,
.sidebar-title,
.sidebar-tools-main,
#quarto-sidebar > div:first-child {
  padding: 15px !important;
  text-align: center !important;
  width: 100% !important;
}

/* Additional override for any image style inheritance */
#quarto-sidebar img {
  max-width: 90% !important;
  height: auto !important;
}

/* Custom styles for the user guide */
h2 {
  color: rgb(51, 118, 157);
  border-bottom: 1px solid rgb(51, 118, 157);
  padding-bottom: 0.2em;
  margin-top: 1.5em;
}

h3 {
  color: rgb(70, 130, 180);
  margin-top: 1.2em;
}

.steps {
  background-color: #f8f9fa;
  border-left: 4px solid rgb(51, 118, 157);
  padding: 1em;
  margin: 1em 0;
}

.note {
  background-color: #e2f0ff;
  border-left: 4px solid #3b82f6;
  padding: 1em;
  margin: 1em 0;
}

.warning {
  background-color: #fff3e0;
  border-left: 4px solid #f59e0b;
  padding: 1em;
  margin: 1em 0;
}

.tip {
  background-color: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 1em;
  margin: 1em 0;
}

img {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 5px;
  margin: 10px 0;
  max-width: 70% !important;
  display: block;
  margin-left: 20px;
  margin-right: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screenshot {
  max-width: 50% !important;
  display: block;
  margin-left: 20px;
  margin-right: auto;
}

.screenshot-caption {
  text-align: center;
  font-style: italic;
  color: #6c757d;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th {
  background-color: rgb(51, 118, 157);
  color: white;
  padding: 12px;
  border: 1px solid #dee2e6;
}

td {
  padding: 10px;
  border: 1px solid #dee2e6;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* Sidebar styling */
.sidebar-item {
  color: rgb(51, 118, 157);
}

.sidebar-item-text {
  font-weight: 500;
}

.sidebar-item-text.active {
  font-weight: 700;
  color: rgb(51, 118, 157);
}

/* Button styling in images */
.highlight-button {
  border: 2px solid #f59e0b;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    background-position: 95% 80px;
    background-size: 150px;
  }
  
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }
}
