/* Reset some basic elements for better consistency across browsers */
body, h1, h2, h3, h4, h5, h6, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f4f8;
    color: #333;
    text-align: center;
    align-items: center;
}

.sidebar {
    width: 250px;
    height: 100%;
    position: fixed;
    left: -250px;
    top: 0;
    background-color: #2b2d42;
    color: #fff;
    padding-top: 20px;
    transition: 0.3s;
}

.sidebar.active {
    left: 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    padding-left: 0;
}

.sidebar ul li {
    padding: 15px;
    text-align: center;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
}

.sidebar ul li a:hover {
    background-color: #414558;
    display: block;
    width: 100%;
}

.content {
    margin-left: 250px;
    padding: 20px;
    transition: 0.3s;
}

.content.active {
    /* margin-left: 0; */
}

.burger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: #2762a7;
    margin: 5px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

footer {
    text-align: center;
    padding: 10px 0;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0077b6;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #023e8a;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form input[type="number"],
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

form button {
    width: 100%;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin-bottom: 10px;
}

.admin-menu li a {
    display: block;
    padding: 10px;
    background-color: #0077b6;
    color: #fff;
    border-radius: 3px;
    text-align: center;
}

.admin-menu li a:hover {
    background-color: #023e8a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

.custom-checkbox {
    display: none;
}

.custom-checkbox-label {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #e0e0e0;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.custom-checkbox:checked + .custom-checkbox-label {
    background-color: #007bff;
    color: #fff;
}

.custom-checkbox-label:hover {
    background-color: #d0d0d0;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
    }

    .burger {
        display: block;
    }
}

/* Dark mode styles */
.dark-mode {
    background-color: #333;
    color: #fff;
}

.dark-mode .sidebar {
    background-color: #444;
}

.dark-mode .sidebar ul li a {
    color: #ddd;
}

.dark-mode .content, .dark-mode form {
    background-color: #444;
    color: #fff;
}

.dark-mode input, 
.dark-mode select, 
.dark-mode button {
    background-color: #555;
    color: #fff;
    border: 1px solid #666;
}

.dark-mode table, 
.dark-mode th, 
.dark-mode td {
    border: 1px solid #666;
}

.dark-mode th, 
.dark-mode td {
    color: #fff;
}
/* Stylish file upload button */
.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.file-upload-label:hover {
    background-color: #575757;
}

input[type="file"] {
    display: none;
}

.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.file-upload-label:hover {
    background-color: #575757;
}

input[type="file"] {
    display: none;
}
/* Success message styling */
.success-message {
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}
/* Button group for type selection */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group input[type="radio"] {
    display: none;
}

.button-group label.button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
}

.button-group label.button:hover {
    background-color: #575757;
}

.button-group input[type="radio"]:checked + label.button {
    background-color: #4CAF50;
    color: white;
}

/* ... existing styles ... */

/* Badge for unread messages */
.badge {
    background-color: red;
    color: white;
    padding: 3px 7px;
    border-radius: 50%;
    font-size: 12px;
    position: relative;
    top: 0;
    right: 0;
}

.unread {
    font-weight: bold;
}

.message-form, .message-list {
    margin-top: 20px;
}

.message-form label, .message-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.message-list ul {
    list-style: none;
    padding: 20px;
}

.message-list li {
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

.message-list .sender {
    font-weight: bold;
    color: #4CAF50;
}

.mark-as-read-form {
    display: block;
    margin-left: 10px;
    margin-top: 20px;
}

.mark-as-read-form button {
    padding: 5px 10px;
    font-size: 12px;
}

.badge-hidden {
    display: none;
}

.message-content {
    margin-left: 20px;
    padding: 20px;
    transition: 0.3s;
}

/* Tab styles */
.message-tabs {
    margin-top: 20px;
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #ddd;
    border: none;
    display: inline-block;
}

.tab-button.active {
    background-color: #333;
    color: #fff;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Message box styles */
.message-box {
    
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.message-box p {
    margin: 5px 0;
}

.message-box .sender, .message-box .title {
    font-weight: bold;
}

.message-box .title {
    color: #333;
}

/* Activity box styles */
.activity-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.activity-box p {
    margin: 5px 0;
}

.filter-form {
    margin-bottom: 20px;
}