/* ========================
   GLOBAL LAYOUT
======================== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f0f2f5, #e4ebf0);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================
   CONTAINER STYLE
======================== */
.container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 95%;
  max-width: 960px;  /* lebar pas buat dashboard & tabel */
  box-sizing: border-box;
  margin: 40px auto;
}

/* ========================
   HEADING & TEXT
======================== */
h1, h2, h3 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* ========================
   FORM
======================== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"],
input[type="password"],
input[type="file"],
input[type="email"],
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
}

button,
input[type="submit"] {
  background-color: #0078ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background-color: #005ec4;
}

/* ========================
   TABLE
======================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* biar kolom tetap proporsional */
  word-wrap: break-word;
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
}

.table th {
  background-color: #0078ff;
  color: white;
  font-weight: 600;
}

.table img,
.table video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ========================
   NAVBAR
======================== */
.navbar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: #0078ff;
  font-weight: 600;
  transition: 0.2s ease;
}

.navbar a:hover {
  text-decoration: underline;
}

/* ========================
   MESSAGE BOX
======================== */
.message {
  text-align: center;
  color: #d00;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ========================
   RESPONSIVE TWEAKS
======================== */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    max-width: 98%;
  }

  .table th,
  .table td {
    font-size: 14px;
    padding: 8px;
  }
}





