/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f7f3e8;
    color: #5a4f47;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container Style */
.container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Heading Style */
h1 {
    color: #f29f05;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.inform-message {
    font-size: 14px;
    color: #8a7f62;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
}

.inform-message em {
    font-style: italic;
    color: #f29f05;
}


/* Textarea Styles */
textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 2px solid #f29f05;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    resize: none;
}

/* Button Styles */
button {
    background-color: #f29f05;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background-color: #d47a00;
}

/* Loading & Icon */
#loading {
    font-size: 18px;
    color: #f29f05;
}

#icon {
    font-size: 24px;
    color: #f29f05;
    margin-top: 10px;
}

/* Message Section */
#messages {
    margin-top: 30px;
}

.message {
    background-color: #f1e0b6;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.text {
    font-size: 18px;
}

.date {
    font-size: 12px;
    color: #888;
}

/* Admin Panel Styles */
.admin-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.admin-container h1 {
    font-size: 2.5rem;
    text-align: center;
}

.logout-button {
    text-decoration: none;
    background-color: #f29f05;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin: 20px 0;
}

h2 {
    color: #f29f05;
}

/* Table for Admin to View Messages */
.messages-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.messages-table th, .messages-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.messages-table th {
    background-color: #f29f05;
    color: white;
}

button {
    background-color: #f29f05;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #d47a00;
}

.error {
    color: red;
    font-weight: bold;
}

/* Media Queries for Responsive Design */

/* Small devices (mobile phones) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 15px;
        margin: 20px auto;
    }

    textarea {
        font-size: 14px;
    }

    button {
        font-size: 16px;
    }

    .message {
        font-size: 16px;
    }

    .text {
        font-size: 16px;
    }

    .date {
        font-size: 10px;
    }
}

/* Medium devices (tablets) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 20px;
        margin: 30px auto;
    }

    textarea {
        font-size: 16px;
    }

    button {
        font-size: 18px;
    }

    .message {
        font-size: 17px;
    }

    .text {
        font-size: 17px;
    }

    .date {
        font-size: 12px;
    }
}

/* Large devices (desktop) */
@media screen and (min-width: 769px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .container {
        max-width: 800px;
        padding: 25px;
        margin: 50px auto;
    }

    textarea {
        font-size: 16px;
    }

    button {
        font-size: 18px;
    }

    .message {
        font-size: 18px;
    }

    .text {
        font-size: 18px;
    }

    .date {
        font-size: 12px;
    }
}
