/*
 * Simple dashboard custom styles
 *
 * This stylesheet provides a modern look inspired by the Ion Detective
 * dashboard.  It includes a fixed top navigation bar, a gradient
 * sidebar, responsive main content area and some utility classes
 * for cards and tables.  Feel free to extend it to suit your
 * specific needs.
 */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* Use Inter font if available, fallback to system UI */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
  font-size: 0.95rem;
  color: #343a40;
}

/* Top navigation bar */
/*
 * Use a vibrant gradient for the navbar that gives a more modern, colourful feel.  The
 * colours here are inspired by popular gradient palettes (purple to blue), which
 * help the navigation stand out without being too dark.  It still uses a fixed
 * positioning so it stays visible while scrolling.
 */
/* Navbar uses a solid indigo tone for a fresher, less busy feel */
.navbar {
  background: #3f51b5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}
.navbar-brand {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}
.navbar-brand:hover { color: #fff; }

/* Sidebar uses a complementary indigo shade for cohesion */
.sidebar {
  width: 240px;
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  padding-top: 20px;
  background: #5b5f97;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  overflow-y: auto;
}
.sidebar .nav-link {
  color: #e2e8f0;
  padding: 12px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffc107;
  transform: translateX(4px);
}

/* Main content area */
.main-content {
  margin-left: 240px;
  padding: 80px 30px 30px;
  min-height: 100vh;
}

/* Cards */
.card {
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  background-color: #ffffff;
}

/* KPI cards */
.card-kpi {
  border: 0;
  box-shadow: 0 10px 25px rgba(2,8,23,0.08);
  border-radius: 16px;
}

/* Table styling */
/*
 * Table headers share the same solid indigo tone as the navbar for a unified
 * appearance. White text ensures readability.
 */
.table thead th {
  background: #3f51b5;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
  padding: 12px;
}
.table td {
  padding: 12px;
  vertical-align: middle;
  font-size: 0.85rem;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fafafa;
}

/* Buttons */
/*
 * Use a calm cyan-blue gradient for action buttons, complementing the indigo
 * layout without being overpowering. Hovering slightly brightens the button.
 */
.btn-gradient {
  background: linear-gradient(90deg, #36d1dc 0%, #5b86e5 100%);
  border: none;
  color: #fff;
  transition: filter 0.3s ease;
}
.btn-gradient:hover { filter: brightness(1.05); }

@media (max-width: 767px) {
  .sidebar {
    width: 100%;
    position: relative;
    box-shadow: none;
    top: 0;
  }
  .main-content {
    margin-left: 0;
    padding-top: 100px;
  }
}

/* Login page styling */
/*
 * Update the login page to a lighter, friendlier palette.  The background now
 * transitions from soft blue to light lavender, giving a calm and modern feel.
 * The card itself remains white with a stronger shadow and slightly larger
 * padding for improved legibility.  Icons adopt the primary gradient colour.
 */
.login-page {
  background: linear-gradient(180deg, #36d1dc 0%, #5b86e5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  max-width: 420px;
  width: 100%;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}
.login-card .icon {
  font-size: 3.5rem;
  color: #3f51b5;
  margin-bottom: 1rem;
}
.login-card h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}
.login-card .form-control {
  border-radius: 8px;
}