@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root{
  --app-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* brand */
  --app-primary: #0d6efd;         /* bootstrap primary */
  --app-accent: #22c55e;          /* green accent */
  --app-bg: #f6f7fb;

  /* sidebar */
  --sidebar-bg: #0b1220;
  --sidebar-bg-2: #0f1a2e;
  --sidebar-text: rgba(255,255,255,.82);
  --sidebar-muted: rgba(255,255,255,.55);
  --sidebar-hover: rgba(255,255,255,.08);
  --sidebar-active: rgba(255,255,255,.14);

  /* UI */
  --radius: 1rem;
  --radius-sm: .75rem;
  --shadow-sm: 0 6px 18px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 16px 40px rgba(16, 24, 40, 0.12);
}

html, body {
  font-family: var(--app-font);
  background-color: var(--app-bg);
}

/* Optional: nicer overall text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Login hero background (slightly improved) */
#login-img{
  background-image: url("../img/dipt.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ---- Cards / panels ---- */
.card,
.bg-white.shadow.rounded-4 {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* ---- Sidebar ---- */
.sidebar,
.bg-dark.text-white.min-vh-100 {
  background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
}

/* brand header section inside sidebar */
.sidebar .border-bottom,
.bg-dark .border-bottom {
  border-color: rgba(255,255,255,.10) !important;
}

.sidebar .nav-link {
  color: var(--sidebar-text) !important;
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background-color .15s ease, transform .08s ease, color .15s ease;
}

.sidebar .nav-link i {
  opacity: .9;
  font-size: 1.05rem;
}

.sidebar .nav-link:hover {
  background: var(--sidebar-hover);
  transform: translateX(2px);
  color: #fff !important;
}

.sidebar .nav-link.active {
  background: var(--sidebar-active) !important;
  color: #fff !important;
  position: relative;
}

/* active indicator bar */
.sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 4px;
  border-radius: 999px;
  background: var(--app-accent);
}

/* ---- Main content area spacing ---- */
main {
  min-height: 70vh;
}

/* ---- Tables: mobile-friendly scrolling ---- */
.table-responsive {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

table {
  white-space: nowrap;
}

/* Optional: nicer table header */
.table thead th {
  font-weight: 600;
  color: #0f172a;
}

/* ---- Alerts (messages) ---- */
#message-alert {
  animation: cssAnimation 10s forwards;
  position: fixed;
  bottom: 7%;
  right: 1%;
  z-index: 10000;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
}

/* Keep your animation */
@keyframes cssAnimation {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---- Better small-screen tweaks ---- */
@media (max-width: 600px) {
  .h-col { display: none; }
  .v-banner { visibility: visible; }

  /* reduce padding for main content on tiny screens */
  main {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }
}

@media (min-width: 992px) {
  .v-banner { visibility: hidden; }
}

.nav-pills .nav-link {
  border-radius: 0.75rem;
}

.nav-pills .nav-link.active {
  background: rgba(255, 255, 255, 0.18) !important;
}

.nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

#login-img {
  background: linear-gradient(135deg, #111 0%, #2b2b2b 100%);
  min-height: 100%;
}