* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #e6f4f1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0066b3;
    color: white;
    padding: 20px;
}

.logo,
.time-date {
    width: 30%;
}

header .logo img {
    width: 80px;
}

.header-text {
    text-align: center;
}

.header-text h1 {
    font-size: 24px;
}

.header-text h2 {
    font-size: 20px;
    margin-top: 5px;
}

.time-date {
    text-align: right;
}

.time-date h2 {
    font-size: 36px;
}

.scroll-wrapper td{
    padding: 10px;
}

.main-container {
    position: relative;
}

.container {
    height: 95vh;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}

.container {
    position: relative;
    width: 90%;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*table*/

.table-container {
    padding: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 18px;
    font-family: system-ui;
}

.data-table th,
.data-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.data-table th {
    background-color: #0275d8;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Alternating row colors */

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Style for table cells */

.data-table td {
    padding: 8px;
    border: 0.3px solid #ddd;
}

/* Hover effect on rows */

.data-table tr:hover {
    background-color: #e0e0e0;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #00a950;
    color: white;
    text-align: center;
    padding: 10px;
}

footer h3 {
    font-size: 18px;
    font-weight: 500;
    /*margin-bottom: 10px;*/
}

.box {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    display: inline-block;
    margin: 0px 6px 3px 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    vertical-align: middle;
}

.ket_warna{
    background-color: #cfcece;
    border-radius: 6px;
    color: #0066b3;
}

.group-header {
    background-color: #f0f0f0;
    /* Light grey background */
    font-weight: bold;
    text-align: left;
}

/* Add automatic scroll effect */

.table-container {
    width: 100%;
  }

  .scroll-wrapper {
    height: 700px;      /* tinggi area scroll */
    overflow: hidden;   /* sembunyikan scroll bar */
    position: relative;
  }

  .scroll-content {
    display: block;
  }

  table.data-table, table.scroll-table {
    width: 100%;
    border-collapse: collapse;
  }

  table th, table td {
    padding: 8px;
    border: 1px solid #ccc;
    background: #fff;
  }

@keyframes scrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* karena isi tbody diduplikasi */
}

.scroll-wrapper tbody {
  display: block;
  height: 1090vh;
  animation: scrollUp linear infinite;
}

thead,
tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  transition: background 0.3s;
}

tbody tr{
    font-size: 16px;
}

tbody tr:nth-child(even) {
  background: #f9fbfd;
}
