/* ====== GAYA UMUM HALAMAN ====== */
body {
  font-family: Arial, sans-serif;
  background: #f6f8fa;
  padding: 20px;
}

.container, .form-container {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.container {
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2, h3 {
  text-align: center;
}

form {
  margin: 15px 0;
}

input[type=text], input[type=password], input[type=file] {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
}

button {
  padding: 8px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.logout {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
}

.logout:hover {
  background: #b02a37;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

.search-form {
  margin-top: 10px;
  text-align: center;
}

.search-form input[type=text] {
  width: 60%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.search-form button {
  padding: 8px 12px;
  border: none;
  background: #28a745;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.search-form button:hover {
  background: #218838;
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

.delete-btn:hover {
  background: #b02a37;
}

.stats-box {
  background: #e9f7ef;
  border: 1px solid #28a745;
  padding: 10px;
  margin: 20px 0 30px 0;
  border-radius: 8px;
  text-align: center;
}

.stats-box p {
  margin: 0;
  font-size: 16px;
  color: #155724;
  font-weight: bold;
}


/* ====== TAMBAHAN KHUSUS UNTUK HALAMAN LOGIN ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body.login-page {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

.login-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 40px 50px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

.login-card h2 {
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}

.login-card p {
  color: #666;
  margin-bottom: 30px;
  font-size: 0.9em;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 12px 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  transition: 0.3s;
  font-size: 15px;
  background: transparent;
}

.input-group label {
  position: absolute;
  left: 10px;
  top: 12px;
  color: #999;
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus,
.input-group input:valid {
  border-color: #4facfe;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: -10px;
  left: 5px;
  color: #4facfe;
  font-size: 12px;
  font-weight: 600;
}

.btn-login {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-login:hover {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== PESAN ERROR LOGIN ====== */
.error-alert {
  background: #ffe5e5;
  color: #b30000;
  border: 1px solid #ffb3b3;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
