/* Reset and basics */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #3a8dde, #0d47a1);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  background: #0d47a1;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1.2px;
  color: #e3f2fd;
  user-select: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #e3f2fd;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
  background: #64b5f6;
  color: #0d47a1;
  font-weight: 700;
}

.container {
  max-width: 900px;
  background: #e3f2fd;
  color: #0d47a1;
  margin: 40px auto;
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 16px 40px rgba(13, 71, 161, 0.15);
  flex-grow: 1;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #64b5f6;
  font-size: 1.1rem;
  margin-top: 10px;
  transition: border-color 0.3s ease;
  outline-offset: 2px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  border-color: #0d47a1;
  box-shadow: 0 0 12px rgba(13, 71, 161, 0.6);
  outline: none;
}

button {
  width: 100%;
  margin-top: 18px;
  padding: 14px 0;
  background: #0d47a1;
  color: #e3f2fd;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

button:hover {
  background: #1565c0;
  box-shadow: 0 10px 30px rgba(21, 101, 192, 0.6);
}

.success, .error {
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  max-width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.success {
  background-color: #c8e6c9;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.error {
  background-color: #ffcdd2;
  color: #c62828;
  border: 2px solid #c62828;
}

.account-details {
  background-color: #f1f8ff;
  padding: 30px 28px;
  border-radius: 18px;
  margin-top: 25px;
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.15);
  color: #0d47a1;
}

.account-details p {
  margin: 10px 0;
  font-size: 1.15rem;
}

.timestamp {
  font-size: 0.95rem;
  color: #3a8dde;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
  margin-top: 20px;
  font-size: 1rem;
  color: #0d47a1;
}

th, td {
  text-align: left;
  padding: 18px 14px;
  background: #bbdefb;
  border-radius: 14px;
  user-select: text;
}

th {
  background: #0d47a1;
  color: #e3f2fd;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 14px rgba(13, 71, 161, 0.3);
}

.admin-section {
  margin-top: 30px;
}

.logout-btn {
  background-color: #d32f2f;
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.5);
}

.logout-btn:hover {
  background-color: #b71c1c;
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.8);
}

footer {
  text-align: center;
  padding: 16px 12px;
  background: #0d47a1;
  color: #e3f2fd;
  font-weight: 600;
  letter-spacing: 0.06em;
  user-select: none;
}
