/* Reset & body */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #0e0e0e;
  color: #fff;
  display: flex;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #141414;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 2px solid #222;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
}

.sidebar .logo {
  width: 120px;
  margin: 0 auto 20px auto;
}

.sidebar nav a {
  display: block;
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 12px;
  text-decoration: none;
  color: #bbb;
  transition: 0.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgb(255, 145, 0); /* gold highlight on hover */
  color: #000;
}

/* Section separator line */
.sidebar .section-line {
  border-top: 1px solid #333;
  margin: 10px 0;
}

/* Main content */
.content {
  flex: 1;
  padding: 20px;
  margin-left: 220px; /* offset for sidebar */
  box-sizing: border-box;
}

/* Dashboard Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.card img {
  width: 100px;
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

/* Dashboard Banner */
.banner {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Login Page */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #0e0e0e;
}

.login-box {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.login-box h1 {
  margin-bottom: 20px;
  color: rgb(255, 145, 0);
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: rgb(255, 145, 0);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.login-box button:hover {
  background: rgb(255, 145, 0);
}

/* Make card links behave like block elements */
.card-link {
  display: block;
  text-decoration: none;  /* remove underline */
  color: inherit;         /* inherit color from .card */
}

.card-link .card {
  cursor: pointer;
  color: #fff;            /* white text for the card */
}

.card-link:hover .card h2 {
  color: rgb(255, 145, 0);
}

.code-lookup-container {
    max-width: 600px;
    margin: 40px auto;
    background-color: #1a1a1a;
    border: 3px solid gold;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.code-lookup-container input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    border: 2px solid gold;
    background-color: #222;
    color: gold;
    outline: none;
    box-sizing: border-box;   /* ✅ keeps input inside container */
    margin-bottom: 15px;      /* space under input */
}

.code-lookup-container input[type="text"]::placeholder {
    color: #ffd70077;
}

.code-lookup-container button {
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid gold;
    border-radius: 10px;
    background-color: transparent;
    color: gold;
    cursor: pointer;
    transition: 0.3s ease;
}

.code-lookup-container button:hover {
    background-color: gold;
    color: #222;
    box-shadow: 0 0 15px gold;
}

#result {
    margin-top: 20px;
    font-size: 1.1em;
}

#result span.code {
    color: gold;
    font-weight: bold;
}

#result span.name, #result span.line {
    color: #fff;
}

#result p.error {
    color: #f87171;
    font-weight: bold;
}
