* {
    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: 20px 0;
    font-size: 20px;
    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;
}

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

/* Add automatic scroll effect */

.scroll-wrapper {
  height: 2380px; /* area scroll */
  overflow: hidden;
  position: relative;
}

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

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:nth-child(even) {
  background: #f9fbfd;
}
