html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    height: 100%;
    box-sizing: border-box;
}

header {
    background-color: #ff6e4e;
    color: white;
    padding: 10px 0;
    height: 80px; /* Fixed height for the header */
    
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distributes space evenly between logo/site name and nav */    
    height: 100%; /* Ensures the container fills the header height */
    
}

.logo img {
    height: 100px;
    width: auto;
    margin-left: 30px;

}

nav .menu-toggle {
    display: none; /* Hidden on large screens */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin-right: 20px;
    gap: 20px; /* Space between each navigation item */
    justify-content: flex-end; /* Pushes the nav items to the right */

}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-right: 0px;
}

.main_title {

    margin-left: 20px;
}

/* Container for the table */
.main_container {
    width: 90%;
    margin: 20px auto; /* Center the container */
    background-color: #fff; /* White background */
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Shadow for a card effect */
    border-radius: 10px;
    border: 1px solid #ccc; /* Border around the container */
}

/* Style for the table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

/* Table header styling */
.styled-table th {
    background-color: #f2f2f2;
    padding: 12px;
    border-bottom: 2px solid #ddd;
}

/* Table cell styling */
.styled-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Limit the message column width and word wrap */
.message {
    max-width: 300px; /* Limit the width */
    word-wrap: break-word; /* Break long words */
}

/* Row hover effect */
.styled-table tr:hover {
    background-color: #f9f9f9;
}

/* Status column styling */
.status-read {
    color: green;
    font-weight: bold;
    text-align: center;
}

.status-unread {
    color: red;
    font-weight: bold;
    text-align: center;
}

.status-btn {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.status-btn.green {
    background-color: #28a745;
    color: white;
}

.status-btn.red {
    background-color: #dc3545;
    color: white;
}


/* Table responsive for smaller screens */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .styled-table th, .styled-table td {
        padding: 8px;
    }

    .message {
        max-width: 200px; /* Adjust for smaller screens */
    }
}
