html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Color variables */
:root {
  --cg-bg: #ffffff;
  --cg-text: #212529;
  --cg-surface: #f8f9fa;
  --cg-card: #ffffff;
  --cg-border: #e5e5e5;
}

.dark-mode {
  --cg-bg: #0b0c10;
  --cg-text: #e9ecef;
  --cg-surface: #121417;
  --cg-card: #171a1f;
  --cg-border: #2a2f36;

  /* Bootstrap variables to ensure components pick dark colors */
  --bs-body-bg: #0b0c10;
  --bs-body-color: #e9ecef;
  --bs-border-color: #2a2f36;
  --bs-card-bg: #171a1f;
  --bs-card-border-color: #2a2f36;
  --bs-navbar-bg: #121417;
  --bs-navbar-color: #e9ecef;
  --bs-nav-link-color: #e9ecef;
  --bs-dropdown-bg: #171a1f;
  --bs-dropdown-color: #e9ecef;
}

/* Apply variables */
body {
  background-color: var(--cg-bg);
  color: var(--cg-text);
}

.navbar,
.footer,
.jumbotron,
.card,
.dropdown-menu,
.modal-content {
  background-color: var(--cg-surface);
  color: var(--cg-text);
}

.card,
.border-top,
.border-bottom,
.card-header,
hr {
  border-color: var(--cg-border) !important;
}

.card { background-color: var(--cg-card); }

.navbar a.nav-link,
.navbar-brand,
a { color: var(--cg-text); }

.navbar.bg-white { background-color: var(--cg-surface) !important; }

/* Utilities and component overrides in dark mode */
.dark-mode .bg-white { background-color: var(--cg-surface) !important; }
.dark-mode .text-dark { color: var(--cg-text) !important; }
.dark-mode .navbar-light .navbar-nav .nav-link { color: var(--cg-text) !important; }
.dark-mode .navbar-brand { color: var(--cg-text) !important; }
.dark-mode .dropdown-menu { background-color: var(--cg-card) !important; color: var(--cg-text) !important; }
.dark-mode .dropdown-item { color: var(--cg-text) !important; }
.dark-mode .dropdown-item:hover { background-color: #1f232a !important; }
/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.rounded-lg {
    border-radius: 1rem !important;
}

.card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    border-bottom: 1px solid #e3e6f0;
}

.jumbotron {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
}

.step-number {
    font-weight: bold;
}

/* Custom styles for career guidance system */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Simulated mobile view: constrain the main container width and center it */
.simulate-mobile .container {
    max-width: 390px; /* typical mobile width incl. scrollbar allowance */
}

/* Make sure navbar and footer align with the constrained container */
.simulate-mobile header .container,
.simulate-mobile footer .container {
    max-width: 390px;
}

/* Optional: add a subtle outline to indicate simulated frame */
.simulate-mobile body,
body.simulate-mobile {
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 1050;
  border-radius: 999px;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2);
}

/* Sidebar layout */
.sidebar {
  position: fixed;
  top: 56px; /* height of navbar */
  left: 0;
  width: 260px;
  height: calc(100% - 56px);
  border-right: 1px solid var(--cg-border);
  background-color: var(--cg-surface);
  z-index: 1030;
}

.content-wrapper {
  margin-left: 0;
}

@media (min-width: 992px) {
  .content-wrapper {
    margin-left: 260px;
  }
}

.sidebar.collapsed { width: 72px; }

@media (min-width: 992px) {
  .sidebar.collapsed + .content-wrapper { margin-left: 72px; }
}

.sidebar .nav-link { display: flex; align-items: center; }
.sidebar .nav-link .label { white-space: nowrap; }

.sidebar.collapsed .label { display: none; }
.sidebar.collapsed .nav-link { justify-content: center; }

.dark-mode .sidebar { background-color: var(--cg-surface); }