/* Set a background for the whole page */
body {
  background: #f0f0f0; /* this will be the color of the margins */
}

/* Base font for the whole site: prefer Helvetica with fallbacks */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Main content adjustments */
.content {
  max-width: 1000px;      /* limit content width */
  margin: 0 auto;         /* center horizontally */
  padding: 30px;
  background: #ffffff;    /* content background */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Ensure lists in the main content area look like normal document lists
   (distinct from the sidebar navigation lists). */
.content ul {
  list-style: disc;        /* standard filled circles */
  margin: 0 0 1em 1.25em;  /* space and indentation */
  color: #333;
}
.content ul > li {
  margin-bottom: 0.5em;
}
.content ul ul {
  list-style: circle;      /* second-level lists use circles */
  margin-left: 1.1em;
}
.content ul ul ul {
  list-style: square;      /* third-level lists use squares */
}


.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #2c3e50;
  color: #fff;
  padding: 20px;
  position: relative;
}

/* Add copyright at the bottom of the sidebar */
.sidebar::after {
  content: "© 2025 Siddharth Mittal\A Medical University of Vienna\A All rights reserved";
  position: absolute;
  bottom: 20px;       /* space from bottom */
  left: 20px;         /* align with sidebar content */
  font-size: 12px;
  color: #ccc;        /* subtle color */
  width: calc(100% - 40px); /* prevent overflow */
  white-space: pre-line;     /* allow line break */
  display: block;            /* enable \A line break */

  /* added for alignment to aling letter "c" of copyright and letter "M" of Medical*/
  padding-left: 1.0em;  /* shift whole block right */
  text-indent: -1.0em;  /* pull first line back */

}


.sidebar h2 {
  margin-top: 0;
  display: flex;
  flex-direction: column; /* stack logo above title */
  align-items: flex-start; /* align wrapper to left edge of sidebar */
  text-align: left;
  gap: 8px; /* vertical space between logo and title */
}

/* make sidebar logo take full width of the sidebar */
.sidebar .logo {
  width: 100%;
}
.sidebar-logo-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align the wrapper with other sidebar items */
}

/* inner box that will be sized to the title width; its contents are centered */
.sidebar-logo-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align logo and title within this inner box */
}
.sidebar .logo img.sidebar-icon {
  width: auto;      /* will be set via JS to match title width */
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin-left: 0;
  margin-right: 0;
}

.sidebar .logo-text {
  font-size: 1.05em;
  color: inherit;
  margin: 0;
  padding: 0; /* remove horizontal padding so title aligns with links */
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: #ecf0f1;
  text-decoration: none;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  font-weight: bold;
  color: #1abc9c;
}

.content {
  flex: 1;
  padding: 30px;
  background: #f9f9f9;
}

/* Already existing styles remain above */

.warning, .caution {
  padding: 12px;
  margin: 15px 0;
  border-radius: 6px;
  font-weight: bold;
}

.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.caution {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Quick Overview box */
.quick-overview {
  background: #f9f9f9;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid #0077b5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.quick-overview h2 {
  margin-top: 0;
  font-size: 1.2em;
}

/* indentation for sublist */
.sidebar ul .sublist {
  padding-left: 15px;   /* indentation */
}

.sidebar ul .sublist li a {
  font-size: 0.95em;    /* optional, slightly smaller text */
}


/* Coming soon box */
.coming-soon-box {
  margin-top: 60px;
  padding: 30px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  background: #f9f9f9;
  text-align: center;
  font-size: 18px;
  color: #555;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.coming-soon-box strong {
  display: block;
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

/* Callout boxes */
.callout {
  padding: 12px 18px;
  margin: 20px 0;
  border-radius: 6px;
  font-weight: 500;
}

.callout.warning {
  background: #fff3cd;
  border-left: 4px solid #e0a800;
  color: #856404;
}

/* Step-by-Step Guide */
.step-guide h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.step-guide h3 {
  margin-top: 25px;
  font-size: 1.1em;
  color: #0077b5;
}


pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
}

code {
  font-family: monospace;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* stack sidebar on top of content */
  }

  .sidebar {
    width: 100%;      /* full width for sidebar */
    padding: 20px 10px;
  }

  .content {
    max-width: 100%;   /* take full width on mobile */
    margin: 0;         /* remove horizontal margins */
    padding: 20px;
    box-shadow: none;  /* optional: remove shadow for mobile */
  }

  /* Add passing for the copyright string - only in the mobile devices */
  .sidebar::after {
    position: relative;   /* so it pushes content down instead of overlapping */
    bottom: auto;         /* reset absolute bottom */
    padding-top: 20px;    /* spacing above copyright */
  }  
}
