/* CSS Styles */

body {
    background-color:rgb(232, 228, 228);
}

table tr td {
    vertical-align: middle;
}

td button {
    margin: 5px;
}

td button i {
    font-size: 20px;
}


.modal-header {
    background: #0d6efd;
    color: #fff;
}

.modal-body form {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
}

.modal-body form .imgholder {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.imgholder .upload {
    position: absolute;
    bottom: 0;
    left: 10;
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.upload i {
    color: #fff;
    font-size: 35px;
}

.imgholder:hover .upload {
    display: flex;
}

.imgholder .upload input {
    display: none;
}

.modal-body form .inputField {
    flex-basis: 68%;
    border-left: 5px groove blue;
    padding-left: 20px;
}

form .inputField>div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

form .inputField>div label {
    font-size: 20px;
    font-weight: 500;
}

#userForm form .inputField>div label::after {
    content: "*";
    color: red;
}

form .inputField>div input {
    width: 75%;
    padding: 10px;
    border: none;
    outline: none;
    background: transparent;
    border-bottom: 2px solid blue;
}

.modal-footer .submit {
    font-size: 18px;
}


#readData form .inputField>div input {
    color: #000;
    font-size: 18px;
}

.footer {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
}

.footer-section {
    width: 20%;
    margin: 0 auto;
}

hr {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 20px 0;
}

.social-icons {
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 10px;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h3 {
    font-family: 'Open Sans', sans-serif, Arial, Helvetica;
    font-weight: 800;
    font-size: 30px;
    margin-bottom: 20px;
    width: 100%;
    font-weight: inherit;
}

#copyright {
    text-align: center;
    width: 100%;
    padding: 30px 0px 30px 0px;
    margin-top: 0px;
    color: #FFFFFF;
    background-image: url("/asset/footer.jpg");
}

.logout {
    text-decoration: none;
}



/* Untuk tampilan mobile */
@media only screen and (max-width: 600px) {
    body {
        background-color: rgb(232, 228, 228);
    }

    table tr td {
        vertical-align: middle;
        text-align: center;
        /* Teks menjadi tengah untuk tampilan mobile */
    }

    td button {
        margin: 5px;
    }

    td button i {
        font-size: 20px;
    }

    .modal-header {
        background: #0d6efd;
        color: #fff;
    }

    .modal-body form {
        display: flex;
        flex-direction: column;
        /* Tampilan menjadi satu kolom untuk tampilan mobile */
        padding: 0;
    }

    .modal-body form .imgholder {
        width: 100%;
        /* Lebar gambar diatur agar sesuai dengan lebar layar */
        height: auto;
        /* Tinggi gambar disesuaikan secara otomatis */
        border-radius: 20px;
        overflow: hidden;
    }

    .imgholder .upload {
        position: absolute;
        bottom: 0;
        left: 10px;
        /* Perbaikan penulisan untuk posisi kiri */
        width: calc(100% - 20px);
        /* Lebar upload button disesuaikan dengan lebar gambar */
        height: 50px;
        /* Tinggi button diubah untuk tampilan mobile */
        background: rgba(0, 0, 0, 0.3);
        display: none;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .upload i {
        color: #fff;
        font-size: 25px;
        /* Ukuran ikon diubah untuk tampilan mobile */
    }

    .imgholder:hover .upload {
        display: flex;
    }

    .imgholder .upload input {
        display: none;
    }

    .modal-body form .inputField {
        flex-basis: 100%;
        /* Lebar form diubah agar sesuai dengan lebar layar */
        border-left: none;
        /* Garis kiri dihapus untuk tampilan mobile */
        padding-left: 0;
        /* Padding kiri dihapus untuk tampilan mobile */
    }

    form .inputField>div {
        width: 100%;
        display: flex;
        flex-direction: column;
        /* Tampilan menjadi satu kolom untuk tampilan mobile */
        margin-bottom: 20px;
    }

    form .inputField>div label {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 5px;
        /* Margin bawah ditambahkan untuk memisahkan label dan input */
    }

    #userForm form .inputField>div label::after {
        content: "*";
        color: red;
    }

    form .inputField>div input {
        width: 100%;
        /* Lebar input diatur agar sesuai dengan lebar layar */
        padding: 10px;
        border: none;
        outline: none;
        background: transparent;
        border-bottom: 2px solid blue;
    }

    .modal-footer .submit {
        font-size: 18px;
    }

    #readData form .inputField>div input {
        color: #000;
        font-size: 18px;
    }
}