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;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.app-sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-brand a {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.05rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  color: #475569;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
  background: #eef2ff;
  color: #1d4ed8;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-user {
  font-size: 0.9rem;
  color: #94a3b8;
}

.app-content {
  flex: 1;
  padding: 2rem;
}

.app-content .container {
  max-width: 1100px;
}

.app-footer {
  margin-top: 2rem;
  padding-top: 1rem;
}

.login-page {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-container {
  width: 100%;
  max-width: 960px;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.login-side {
  position: relative;
  min-height: 480px;
}

.login-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(0.8);
}

.login-side-brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 200px;
  height: auto;
}

.login-brand h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.login-brand p {
  color: #475569;
  margin-bottom: 0;
}

.login-form-panel {
  background: #ffffff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel .form-control {
  background: #ffffff;
  border-color: #cbd5f5;
  color: #0f172a;
}

.login-form-panel label {
  color: #1e293b;
}

.login-links a {
  color: #2563eb;
}

.login-links a:hover {
  color: #1d4ed8;
}

.login-form .login-field {
  margin-bottom: 1rem;
}

.login-actions {
  margin-top: 1.5rem;
}

.login-links {
  margin-top: 1rem;
  text-align: center;
}

.home-hero {
  min-height: 60vh;
  background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.5)), url('/img/Portal.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  color: #fff;
}

.home-hero-content {
  width: 100%;
}

.home-hero .footer-text {
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.5);
}

.notes-table th,
.notes-table td {
  vertical-align: middle;
}

.notes-actions {
  white-space: nowrap;
}

.notes-table {
  table-layout: fixed;
}

.notes-col-favorite {
  width: 6ch;
}

.notes-col-subject {
  width: 9ch;
  white-space: normal;
  word-break: break-word;
}

.notes-col-topic {
  width: 9ch;
}

.notes-col-public {
  width: 6ch;
  text-align: center;
}

.notes-col-actions {
  width: 18ch;
}

@media (max-width: 991px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-side {
    min-height: 240px;
  }
}