@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0e1116;
  --bg-card: rgba(255, 255, 255, 0.05);
  --accent: #4caf50;
  --accent-hover: #3b8d3f;
  --text-light: #eaeaea;
  --text-muted: #9da3af;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: radial-gradient(circle at top, #101417, #050607);
  color: var(--text-light);
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
nav {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav h1 {
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 1px;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  margin-left: 25px;
  font-weight: 500;
  transition: 0.3s;
  padding: 8px 14px;
  border-radius: 10px;
}

nav a:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== TABEL ===== */
.container {
  width: 90%;
  margin: 40px auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover {
  background: rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.btn-edit, .btn-delete {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-edit {
  background: #1976d2;
  color: white;
}

.btn-edit:hover {
  background: #125ca1;
}

.btn-delete {
  background: #e53935;
  color: white;
}

.btn-delete:hover {
  background: #b71c1c;
}

/* ===== FORM CONTAINER ===== */
.form-container {
  width: 420px;
  margin: 100px auto;
  padding: 35px;
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  text-align: center;
}

.form-container h1 {
  color: var(--accent);
  font-size: 26px;
  margin-bottom: 25px;
}

input, button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

input {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  background: rgba(255, 255, 255, 0.15);
}

button {
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle at top left, #101417, #050607);
}

.login-container {
  width: 380px;
  padding: 40px;
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  text-align: center;
}

.login-container h1 {
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.login-container input {
  margin-bottom: 15px;
}

.error {
  color: #ff5555;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ===== SCROLLBAR (ELEGANT STYLE) ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
