body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* LOGIN PAGE */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1f3c88, #4472ca);
}

.login-container {
  background: white;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  width: 350px;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 20px;
  color: #1f3c88;
}

.login-container input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-container button {
  background: #1f3c88;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}
.login-container button:hover {
  background: #355dbf;
}

/* DASHBOARD LAYOUT */
.layout {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 250px;
  background: #1f3c88;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar ul li {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar ul li:hover {
  background: #355dbf;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 20px 40px;
  overflow-y: auto;
}

.section h2, .section h1 {
  color: #1f3c88;
  margin-top: 0;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

label {
  margin-top: 10px;
  font-weight: 600;
}

input, select, textarea {
  margin-top: 5px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button[type="submit"] {
  margin-top: 20px;
  background: #1f3c88;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #355dbf;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
  }
  .sidebar ul {
    display: flex;
    gap: 10px;
  }
  .sidebar ul li {
    white-space: nowrap;
  }
}

/* Tombol Logout di Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pisahkan atas & bawah */
  height: 100vh;
  box-sizing: border-box;
}

.logout-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #dc2626;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}
th {
  background: #1f3c88;
  color: white;
}
.btn-detail {
  background: #355dbf;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-detail:hover {
  background: #1f3c88;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}
/* DASHBOARD CARDS */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.card h3 {
  color: #1f3c88;
  margin-bottom: 10px;
}

.card .count {
  font-size: 2.5em;
  font-weight: bold;
  color: #355dbf;
}

.card .count.urgent {
  color: #dc2626;
}

.card .card-desc {
  font-size: 0.9em;
  color: #666;
}

.btn-back {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  margin-bottom: 15px;
  cursor: pointer;
}

.btn-back:hover {
  background: #5a6268;
}

/* === FIX RESPONSIVE UNTUK TOMBOL LOGOUT === */
@media (max-width: 1024px) {
  .sidebar {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .sidebar-bottom {
    position: sticky;
    bottom: 10px;
    background: #1f3c88;
    padding-top: 10px;
  }

  .logout-btn {
    width: 100%;
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
  }

  .logout-btn:hover {
    background: #dc2626;
  }
}
@media (max-width: 768px) {
  .sidebar {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar-bottom {
    width: 100%;
    margin-top: 10px;
  }
}

/* ====== LOGIN PAGE (Enhanced) ====== */
.login-card {
  background: white;
  padding: 40px 45px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  width: 380px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(68,114,202,0.2), transparent 70%);
  z-index: 0;
}

.login-header {
  position: relative;
  z-index: 1;
}

.logo-polri {
  width: 80px;
  margin-bottom: 10px;
}

.login-header h2 {
  color: #1f3c88;
  font-size: 1.3em;
  margin-bottom: 5px;
}

.login-header p {
  color: #555;
  margin-bottom: 25px;
  font-size: 0.9em;
}

.login-form {
  position: relative;
  z-index: 1;
}

.login-form .form-group {
  text-align: left;
  margin-bottom: 15px;
}

.login-form label {
  font-weight: 600;
  color: #1f3c88;
  font-size: 0.9em;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.login-form input:focus {
  border-color: #4472ca;
  box-shadow: 0 0 5px rgba(68,114,202,0.4);
  outline: none;
}

.login-form button {
  background: linear-gradient(135deg, #1f3c88, #355dbf);
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s;
}

.login-form button:hover {
  background: linear-gradient(135deg, #355dbf, #1f3c88);
  transform: translateY(-2px);
}

.login-footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 0.8em;
  color: #777;
}


