/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f1f4f8;
}
        
    .topnav {
      overflow: hidden;
      background-color: #AAA;
    }
    
    .topnav a {
      float: left;
      color: #333;
      text-align: center;
      padding: 5px 5px;
      text-decoration: none;
      font-size: 12px;
    }
        
    .topnav a:hover {
      text-decoration: none;
      background-color: #333;
      color: #AAA;
    }
        
    .topnav a.active {
      background-color: #04AA6D;
      color: black;
    }
        
    .topnav-right {
      float: right;
    }

/* Container utama */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.container-fluid {
  width: 100%; /* This makes the div full width */
}

/* Header */
h2, h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Card-style box */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: auto;
}

/* Form input */
input, select, button {
    padding: 12px 15px;
    margin: 10px 0;
    width: 100%;
    max-width: 500px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-container {
    max-height: 400px; /* atau sesuaikan dengan kebutuhan */
    overflow-y: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    border-bottom: 2px solid #ccc;
}


/* Link styling */
a {
    color: #007bff;
    text-decoration: none;
    margin-right: 15px;
}

a:hover {
    text-decoration: underline;
}

/* Responsive table */
@media (max-width: 768px) {
    .card {
        padding: 15px;
    }

    input, select, button {
        max-width: 100%;
    }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
