/* ✅ Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ✅ Full-Screen Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* ✅ Main Form & Log Container */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px; /* 🔥 INCREASED WIDTH ON PC */
}

/* ✅ Email Form Styling */
.email-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

/* ✅ Title Styling */
h2 {
    text-align: center;
    color: #00467F;
    font-size: 20px;
    margin-bottom: 15px;
}

/* ✅ Labels */
label {
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
    display: block;
}

/* ✅ Inputs & Dropdowns */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* ✅ Multi-Select Team Members */
.team-members-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fafafa;
    margin-top: 5px;
}

.team-members-container label {
    font-size: 13px;
    background: #00467F;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

/* ✅ Hide Checkboxes but Keep Functionality */
.team-members-container input[type="checkbox"] {
    display: none;
}

/* ✅ Highlight Selected Team Members */
.team-members-container input[type="checkbox"]:checked + label {
    background: #008000;
}

/* ✅ Buttons */
button {
    width: 100%;
    background-color: #00467F;
    color: white;
    border: none;
    padding: 12px;
    font-size: 14px;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #003366;
}

/* ✅ Email Log Table (🔥 WIDER ON PC) */
.email-log-container {
    width: 100%;
    max-width: 700px; /* 🔥 INCREASED WIDTH */
    overflow-x: auto;
}

.email-log {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.email-log th, .email-log td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.email-log th {
    background-color: #00467F;
    color: white;
}

/* ✅ Responsive Fixes */
@media screen and (max-width: 768px) {
    .main-container {
        max-width: 95%;
    }

    .email-container, .email-log-container {
        max-width: 100%;
        padding: 15px;
    }

    input, select, textarea {
        font-size: 13px;
        padding: 8px;
    }

    button {
        font-size: 13px;
        padding: 10px;
    }
}
.back-to-board {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #00467F; /* IMC Blue */
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    width: fit-content;
    margin: 10px auto;
    transition: background-color 0.3s ease;
}

.back-to-board:hover {
    background-color: #002B50; /* Darker blue on hover */
}
