/* ===== GLOBAL ===== */
body {
  margin:0;
  font-family:"Segoe UI", sans-serif;
  background:#f3f4f6;
  padding-top: 0;
}

/* ===== MAIN WRAPPER ===== */
.container {
  max-width: 1100px;
  margin: 20px auto 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
}

/* ===== SIDEBAR + CONTENT ROW ===== */

.main-area {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  background: none;
  height: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  background: #111827;
  color: white;
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
}

/* ===== CONTENT ===== */
.content {
  flex: 1 1 0%;
  padding: 30px;
  min-width: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  width:100%;
  background:#0b1220;
  color:#fff;
  padding:14px 10px;
  border-top:1px solid rgba(255,255,255,0.08);
}

/* single-line footer links */
.footer-links {
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  gap:18px;
  white-space:nowrap;
  overflow-x:auto;
}

.footer-links a {
  color:#cbd5e1;
  text-decoration:none;
  font-size:13px;
}

.footer-links a:hover {
  color:#fff;
  text-decoration:underline;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .main-area {
    flex-direction:column;
  }
  .sidebar {
    width:100%;
  }
}

/* Sidebar links color fix */
.sidebar a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
  border-radius: 8px;
  padding: 6px 0 6px 0;
  transition: background 0.2s, color 0.2s;
}
.sidebar a:hover, .sidebar a:focus {
  background: #1f2937;
  color: #fff;
}

/* Sidebar logo and menu spacing to match capital-gains-tax-calculator.html */
.sidebar .logo {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 25px;
  margin-top: 0;
}
.sidebar .menu {
  margin-top: 0;
}

/* Badge for FY year in header */
.badge {
  display: inline-block;
  background: #d1fae5;
  color: #047857;
  font-weight: bold;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 15px;
  float: right;
  margin-top: -8px;
  margin-bottom: 10px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}
.top h2 {
  margin: 0;
}