/* Mobile enhancement: cards, tables, buttons */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container-fluid { padding-left: 10px; padding-right: 10px; }
  .card { border-radius: 8px; }
  .card-header { background: #f7f7f7; }
  .card-header h4 { font-size: 16px; }
  .card-body { padding: 12px; }
  .btn { border-radius: 6px; }
  .btn-block { width: 100%; }
  .form-inline .form-group { display: block; width: 100%; margin-bottom: 10px; }
  .form-inline .form-control { width: 100%; }
  .form-control { height: 38px; }
  textarea.form-control { height: auto; }
  .m-l-10 { margin-left: 0 !important; }
  .m-r-10 { margin-right: 0 !important; }
  .table { margin-bottom: 0; }
  .table thead { display: none; }
  .table tr { display: block; margin-bottom: 10px; border: 1px solid #eee; border-radius: 6px; padding: 8px; }
  .table td { display: flex; justify-content: space-between; padding: 6px 8px; border: 0; }
  .table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }
  .dropdown-menu { right: 0; left: auto; }
  .lyear-layout-header .topbar-right { padding-right: 10px; }
}

@media (max-width: 480px) {
  .card-header h4 { font-size: 15px; }
  .btn { padding: 6px 10px; }
  .table td { padding: 5px 6px; }
}

/* small badges */
.badge-status { display:inline-block; padding:2px 6px; border-radius:4px; font-size:12px; }
.badge-ok { background:#e8f5e9; color:#2e7d32; }
.badge-warn { background:#fff3e0; color:#ef6c00; }
.badge-danger { background:#ffebee; color:#c62828; }

/* Global: rounded buttons */
.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
  border-radius: 999px !important;
}

/* Auth pages: cleaner, mobile-first layout */
body.auth-page {
  background: radial-gradient(900px 520px at 15% 10%, #e6f0ff 0%, #f5f7fb 45%, #eef2f7 100%);
}
html, body.auth-page {
  height: 100%;
}
.lyear-wrapper {
  min-height: 100vh;
}
.login-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  border: 1px solid #e8ecf3;
}
.login-box h2 {
  font-weight: 700;
  letter-spacing: 0.6px;
  margin: 2px 0 18px;
  text-align: center;
}
.login-box .form-group label {
  font-weight: 600;
  color: #334155;
}
.login-box .form-group {
  margin-bottom: 16px;
}
.login-box .form-control {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d9dee7;
  box-shadow: none;
}
.login-box .form-control,
.login-box .btn-primary {
  width: 100%;
}
.login-box .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.login-box .btn-primary {
  height: 46px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: 0;
}
.login-box .btn-primary:hover,
.login-box .btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}
.login-box .alert {
  border-radius: 10px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .login-section { padding: 24px 12px; }
  .login-box { padding: 18px 14px; border-radius: 12px; max-width: 100%; }
  .login-box h2 { font-size: 20px; }
  .login-box .form-control,
  .login-box .btn-primary { height: 42px; }
}


/* Sidebar navigation state */
.nav-drawer .nav-item > a {
  border-radius: 10px;
  transition: all .2s ease;
}
.nav-drawer .nav-item > a i {
  transition: color .2s ease;
}
.nav-drawer .nav-item.active > a,
.nav-drawer .nav-item > a:hover,
.nav-drawer .nav-item > a:focus {
  background: #eaf1ff;
  color: #1d4ed8;
}
.nav-drawer .nav-item.active > a i,
.nav-drawer .nav-item > a:hover i,
.nav-drawer .nav-item > a:focus i {
  color: #1d4ed8;
}

/* Keep content readable on very wide screens */
.lyear-layout-content .container-fluid {
  max-width: 1280px;
}

/* Submit lock visual feedback */
.btn.is-submitting,
.btn[disabled].is-submitting {
  opacity: .75;
  cursor: not-allowed;
}
