@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Pixelify+Sans:wght@400..700&display=swap');

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

body {

    background: linear-gradient(to bottom, #0F172A, #334F90 100%);
    font-family: 'Poppins', 'inter';
    overflow-y: scroll;
    color: white;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    animation: page-load 1s ease-in-out;


}

@keyframes page-load {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1E293B;
    list-style: none;
    color: white;

}

i {
    font-size: 1.7rem;
    margin: 30px;
    color: white;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
    gap: 20px;


}

i:hover {
    transform: translateX(6px);

}



html {
    scroll-behavior: smooth;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    justify-content: space-around;
}

.hamburger-icon {
    display: none;
}

nav ul {
    list-style-type: none;
    margin: 10px;
    padding: 10px;

    gap: 15px;
    display: flex;




}

nav ul li {
    margin: 0;
    padding: 0;

}

i {
    display: flex;
    justify-content: flex-end;
}

nav ul li a {
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    font-size: 1.3rem;
    text-align: center;
    gap: auto;




}




.form-buttons {
    display: flex;
    justify-content: flex-end;
    margin: 20px 50px;
    gap: 20px;

}

.form-buttons button {
    padding: 10px;
    background-color: #334155;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

}

.form-buttons button:hover {
    background-color: #353b435e;

}



.message-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;



}

.message {
    background: #353535;
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 20px;
    border-radius: 5px;
    padding: 20px;
    border: 1px solid rgb(255, 255, 255, 25%);

}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    60% {
        transform: scale(1.03);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}




.Gastenboek-home h1 {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

.data {
    display: flex;
    justify-content: space-between;
}

.data h2 {
    font-size: 0.8rem;
    color: #fff;
    opacity: 25%;
    line-height: 1.6;
}

.message-text {
    text-align: left;
    line-height: 1.5;
    margin: 20px;
}

.message-text h3 {
    font-size: 0.8rem;
    color: #fff;
    opacity: 25%;
}

.message-text p {
    color: #fff;
}

.messages {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    flex-direction: column;

}

.messageWrapper {
    display: inline-block;
    padding: 30px 60px;
    width: auto;
    height: auto;
    background-color: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.messageWrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


.messageWrapper .main-text {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "inter";
    color: #ffffffd4;
    margin-bottom: 5px;
}

.category {
    text-align: left;
    margin-left: 40px;
    display: flex;
    gap: 20px;
}

.category label {
    font-size: 1rem;
    font-family: "inter";
    font-weight: 100;
    color: #ffffffb5;
    margin-top: 20px;

}

.category select {
    margin: 20px 0 0 0;
    width: 79%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #334155;
    background-color: #1E293B;
    color: white;
    text-align: center;
}


.category option:hover {
    background-color: #1e293b91;

}


.category input {
    margin: 20px 0 0 0;
    padding: 20px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #334155;
    background-color: #1E293B;
    color: white;
    text-align: center;
}

.labels input {

    padding: 20px;
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #334155;
    background-color: #1E293B;
    color: white;
    text-align: center;
}

.labels {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.category ::placeholder {
    text-align: center;
}

.inputMessage form {
    display: flex;
    justify-content: flex-start;
    margin: 39px;
    flex-direction: column;
}

label {
    text-align: left;
    line-height: 1.8;
    font-size: 0.8rem;
    font-weight: 100;
    color: #ffffffb9;
    margin: 0 8px 5px 0;
}

textarea {
    height: 120px;
    background-color: #1E293B;
    border: 1px solid #3b495d;
    border-radius: 12px;
    color: white;
    resize: none;
    text-align: center;
    line-height: 100px;
    height: 140px;
    line-height: 1.5;
    overflow: hidden;
    padding-top: 60px;

    padding-bottom: 0;
    box-sizing: border-box;

    text-align: center;

}

textarea::placeholder {
    color: #ffff;
    opacity: 70%;
    font-size: 'inter';
    font-weight: 300;
    line-height: 100px;
    font-family: 'inter';
}

input[type=submit] {
    padding: 20px 10px;
    background-color: #33c55f45;
    border: none;
    margin-top: 20px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

#othersSelect {
    display: none;
    animation: translate 0.4s cubic-bezier(0.16, 1, 0.3, 1);

}

#foutmelding {
    font-family: "inter";
    font-weight: 300;
    color: rgb(255, 133, 133);
}


@keyframes translate {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    60% {
        transform: scale(1.03);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message-container {
    animation: popIn 0.4s ease forwards;
}

input#image {
    margin: 25px auto;
    background-color: #33c55f45;
    width: 100%;
    border-radius: 5px;
    padding: 10px 20px;
}

input[type=file] {
    background-color: green;
}

main {
    width: 100%;
    padding: 120px 0 60px;
    height: 100vh;

}


h1 {
    margin-top: 1.6rem;
    font-size: 2.5rem;
}

.stats-holder {

    gap: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;


}

.stats {
    max-width: 700px;
    padding: 40px 0;
    width: 100%;
    background-color: #F4F4F4;
    border: 1px solid white;
    border-radius: 12px;

}

.stats h2 {
    font-family: "inter";
    font-size: 2.5rem;
    font-weight: 300;
    color: #B0B0B0;
}

.stats h3 {
    font-family: "inter";
    font-size: 1.5rem;
    font-weight: 200;
    color: #B0B0B0;
}

.dashboard-header {
    background: #CBD8EC;

    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    width: 90%;
    margin: 20px 60px 0 70px;
}



.nav-contents ul li {

    font-size: 1.6rem;
    color: #000000;
    font-weight: 500;
    font-family: "inter";
}

/* ===== USER TABLE FIXED HORIZONTAL ALIGNMENT ===== */

.user-table {

    margin-top: 10px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #0F172A;

}

.user-row {

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 5 equal columns */
    align-items: center;

    padding: 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.192);
    background-color: #0F172A;
    transition: 0.2s;
}

.user-row:hover {
    background: rgba(255, 255, 255, 0.10);
}

.user-row span {
    color: #fff;
    font-size: 1rem;

}

/* Match header layout EXACTLY */
.nav-contents ul {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    list-style: none;
}


.edit-btn {
    background-color: rgba(119, 195, 250, 0.988);
    cursor: pointer;
    width: 70px;
    border-radius: 12px;
    border:none;
    
}
.edit-btn::after{
    content: 'edit';
    font-size: 1rem;
    color:white;
    font-weight: bold;

}

.button {
    display: flex;
}

.delete-btn {
    background-color: rgba(255, 100, 100, 0.988);
    font-weight: bold;
    cursor: pointer;
    width: 70px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;

}
.delete-msg{
     background-color: rgba(255, 100, 100, 0.988);
    font-weight: bold;
    cursor: pointer;
    width: 70px;
    height: 30px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}
.delete-msg::after{
    content: "Delete";
}
.status-active {
    background-color: rgb(13, 157, 61, 0.7);
    border-radius: 12px;
    margin: 10px;
    
    border-radius: 12px;
    font-weight: bold;
}
.button{
    display: flex;
    justify-content: flex-end;
    gap:30px;
}
.button .delete-btn{
        padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold
}







@media screen and (max-width:1024px) {
    .messageWrapper {

        height: auto;
        padding: 25px;
    }

    .category {
        display: flex;
        flex-direction: column;
    }

    #othersSelect {
        width: 80%;
    }

    .labels {
        display: flex;
        flex-direction: row;
    }

    .labels input {
        width: auto;
    }
}

@media screen and (max-width:600px) {
    .messageWrapper {
        width: 100%;
        height: auto;
        padding: 20px;

    }

    .message-text img {
        width: 100%;
    }

    .message-wrapper {
        width: 100%;
        height: auto;
        padding: 40px;

    }

    .message {
        width: 90%;
        height: auto;
        padding: 30px;
    }

    .data h2 {
        font-size: 0.65rem;
        overflow-wrap: break-word;
    }

    .message-text p {
        font-size: 0.85rem;
        overflow-wrap: break-word;



    }

    .labels {
        display: flex;
        flex-direction: column;
    }

    .labels input {
        width: auto;
    }

    @media screen and (max-width:450px) {
        .messageWrapper {
            width: 95%;
            height: auto;
            padding: 30px;
            word-wrap: break-word;
        }

        .message {
            width: 90%;
            height: auto;
            padding: 30px;

        }

        .category {
            display: flex;
            flex-direction: column;
        }

        #othersSelect {
            width: 80%;
        }

        .labels input {
            width: auto;
        }

        .data h2 {
            font-size: 0.65rem;
            overflow-wrap: break-word;
        }

        .message-text p {
            font-size: 0.85rem;
            overflow-wrap: break-word;



        }
    }
}