/* Modernized CSS for SWC */
:root {
  --primary-color: #01587a;
  --secondary-color: #e7e5dd;
  --accent-color: #cad598;
  --text-color: #000;
  --bg-color: #fff;
  --font-main: 'Segoe UI', Arial, sans-serif;
  --font-alt: 'Verdana', sans-serif;
  --max-width: 900px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #f58b8b;
    --secondary-color: #2d2d2d;
    --accent-color: #8ca875;
    --text-color: #eee;
    --bg-color: #121212;
    --link-hover-bg: #eee;
    --link-hover-color: #000;
  }
}

@media screen and (max-width: 600px) {
  #hdg-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #hdg-site,
  #hdg-topright {
    padding: 5px 0;
    border-left: none;
  }
}

body { 
	font-family: Arial, sans-serif; margin: 0px; background-color: #f4f4f4; 
}

.container { 
	max-width: 1000px; margin: auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1); 
}

h1, h2 { 
	color: #333; 
}

#hdg {
  background: url('https://ssw.services.pdx.edu/uxz_files/_site/images/img_heading.jpg') no-repeat center;
  background-size: cover;
  position: relative;
  padding: 0px 10px;
}

#hdg-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: auto;
}

#hdg-img {
  margin-top: 20px;
  margin-right: 15px;
}

#hdg-site {
  font-size: 1.5rem;
  color: white;
  padding-left: 15px;
  border-left: 2px solid var(--accent-color);
}

#hdg-topright {
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
}

#nav-wrapper {
  width: 100%;
  background-color: #8b9623;
  overflow-x: auto; /* Optional: allows horizontal scrolling if needed */
}

#nav-wrapper ul {
  display: flex;
  flex-wrap: wrap; /* This is critical for mobile wrapping */
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center; /* Optional: center nav items */
}

/* Active (white tab) — single canonical rule */
#nav-wrapper a.active,
#nav-wrapper a[aria-current="page"],
#nav-wrapper ul li a.nav-lbl.active,
#nav-wrapper ul li a.nav-lbl[aria-current="page"],
#nav-wrapper a.active:hover,
#nav-wrapper a[aria-current="page"]:hover {
  background-color: #fff;
  color: #000;
  text-decoration: none;
}

/* Item spacing  */
#nav-wrapper li {
  margin: 0 5px;
}

/* Reset list padding; don't zero margins here or it will fight the rule above */
#nav-wrapper ul li {
  padding: 0;
}

/* Base link style (covers both generic links and .nav-lbl) */
#nav-wrapper a,
#nav-wrapper ul li a.nav-lbl {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  font-size: 14px;
  transition: background-color 0.3s, color 0.2s, text-decoration-color 0.2s;
}

#nav-wrapper a:hover,
#nav-wrapper ul li a.nav-lbl:hover {
  background-color: transparent;
  color: inherit;
  text-decoration: underline;
}

h1, h2, .heading {
  color: var(--primary-color);
  font-weight: bold;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
}

p, ul, li {
  font-size: 0.95rem;
}

p.boxheading {
  font-weight: bold;
  color: var(--primary-color);
}

#main, #sidebar, #fullpage, #home-one, #home-two, #mainleft, #mainright {
  margin-top: 10px; /* Adjust as needed to clear the navbar */
  padding: 10px;}

#home-one img {
  display: block;
  margin-bottom: 15px;
}

#main {
  float: left;
  width: 60%;
}

#sidebar {
  float: right;
  width: 30%;
  padding: 15px;
  background-color: var(--secondary-color);
  border: 1px solid #ccc;
}

#fullpage {
  width: 100%;
}

#footer {
  clear: both;
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #ccc;
}

.borderedlink {
  display: inline-block;
  padding: 5px 10px;
  background-color: #d2dcbe;
  border: 1px solid var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.borderedlink:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.faq, .ans, .name, .formbox, .subhd, .labcol, .fldcol, .bordered {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}

.radio_label {
  font-size: 0.85rem;
}

img.home {
  float: right;
  margin: 5px 0 0 20px;
  border: 1px solid #ccc;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.welcome-section {
  padding: 20px;
  margin-top: 80px;
}

.welcome-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap; /* Allows stacking on narrow screens */
}

.welcome-inner img {
  width: 400px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.welcome-text {
  flex: 1;
  min-width: 250px;
  font-size: 1rem;
}

.welcome-text h1 {
  font-size: 1.5rem;
  margin-top: 0;
}

@media screen and (max-width: 600px) {
  .welcome-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .welcome-text {
    font-size: 1.1rem;
  }

  .welcome-text h1 {
    font-size: 1.8rem;
  }
}

.form-wrapper {
    max-width: 800px;
    margin: 10px auto 30px auto; /* top: 10px, right: auto, bottom: 30px, left: auto */
    padding: 20px;
    border: 1px solid #02759a;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-box {
  background-color: #f5f5f5;
  padding: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 1.2rem;
  color: black;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
    font-weight: bold;
    color: #ffffff;
    background-color: #02759a;
    padding: 5px;
    position: relative;
}

.section-title span.office-use {
    font-size: 9px;
    color: #ffffff;
    float: right;
}

.details-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #d6ecf2;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}




.student-info {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.student-info li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid #ddd;
}

.section-instructions {
    background-color: #eaf2d5;
    border: 1px solid #cad598;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.timesheet-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.timesheet-table th, .timesheet-table td {
    border: 1px solid #ccc;
    padding: 8px;
    word-wrap: break-word;
}

.timesheet-table th {
    background-color: #02759a;
    color: white;
}

.timesheet-table td {
    min-width: 140px;
}

.totals-box {
    background-color: #d6ecf2;
    border: 1px solid #02759a;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    border-radius: 6px;
}

.form-button {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto;
    padding: 15px;
    background-color: #02759a;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.timesheet-table input[type="date"] {
    width: 100px;
    max-width: 100%;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.timesheet-table input[type="text"], 
.timesheet-table input[type="number"] {
    width: 60px;
    max-width: 100%;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* Base button style for ghost buttons */
button.btn-ghost {
  font-family: inherit;
  font-weight: 600;
  border: 2px solid #02759a;
  border-radius: 6px;
  background-color: transparent;
  color: #02759a;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Size variants */
button.btn-ghost.btn-xs {
  font-size: 0.75rem;
  padding: 2px 10px;
  height: 28px;
  line-height: 1.2;
  border-radius: 4px;
}

button.btn-sm {
  font-size: 0.85rem;
  padding: 6px 12px;
  min-width: 80px;
}

button.btn-md {
  font-size: 1rem;
  padding: 10px 20px;
  min-width: 100px;
}

button.btn-lg {
  font-size: 1.15rem;
  padding: 14px 28px;
  min-width: 120px;
}

/* Hover styles for ghost buttons */
button.btn-ghost:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.15);
}

/* Focus styles */
button.btn-ghost:focus,
button.btn-sm:focus,
button.btn-md:focus,
button.btn-lg:focus {
  outline: 3px solid #8dd2f1;
  outline-offset: 2px;
}

/* Modifier: white background variant of ghost button */
button.btn-ghost.sig-button {
  background-color: #ffffff;
}

button.btn-ghost.sig-button:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.15);
}


.pdf-button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;         /* allows wrapping if screen is narrow */
  justify-content: flex-start; /* or space-between / center depending on layout */
  margin-top: 10px;
}

.placements-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.placements-table th {
  text-align: left;
  background-color: #ddd;
  font-weight: bold;
}

.placements-table td {
  vertical-align: top;
  padding: 8px;
}

.even-row {
  background-color: #f9f9f9;
}

.odd-row {
  background-color: #ffffff;
}

.placements-table-wrapper p {
  margin-bottom: 10px;
}

.addendum-box {
  background-color: #f4f8e8; /* soft pale yellow-green */
  border: 1px solid #c9d9b6;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 15px;
}


/* Utility Classes */
.px11 { font-size: 0.7rem; }
.smallbold, .redbold {
  font-size: 0.85rem;
  font-weight: bold;
}
.redbold { color: var(--primary-color); }
