/* Reset CSS */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    margin: 20px auto;
    max-width: 50%;
}

header img {
    width: 100%;
    height: auto;
    max-height: 200px;
}

h1 {
    background-color: #379392;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0 20px 0;
    display: inline-block;
    border: 2px solid #379392;
    border-radius: 50px;
    box-sizing: border-box;
    font-size: 1.2em;
    text-align: center;
    outline: none;
}

button {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px;
    margin: 8px 0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1em;
    text-align: left;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

table th {
    background-color: #0A71D0;
    font-weight: bold;
    color: white;
}

.red-bg {
    background-color: red !important;
    color: white !important;
    font-weight: bold !important;
}

.yellow-bg {
    background-color: yellow !important;
    color: white !important;
    font-weight: bold !important;
}

.green-bg {
    background-color: green !important;
    color: white !important;
    font-weight: bold !important;
}

.table-hover tbody tr:hover {
    background-color: #f1f1f1;
}

footer {
    background-color: #67e7bd;
    color: rgb(94, 85, 85);
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.8em;
    box-sizing: border-box;
    line-height: 1em;
}

/* Pop-up CSS */
.popup-container {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    position: relative;
}

.popup-content img {
    width: 100%; /* Mengatur gambar sesuai dengan lebar pop-up */
    height: auto; /* Menjaga rasio aspek gambar */
    display: block;
}

.close-btn {
    color: #aaa;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        max-width: 90%;
    }

    h1 {
        font-size: 2em;
        padding: 15px;
    }
    
    form {
        padding: 15px;
    }
    
    table th, table td {
        padding: 10px;
    }
    
    input[type="text"], button {
        font-size: 1em;
        padding: 12px;
    }

    footer {
        font-size: 0.7em;
    }
}
