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

body {
    font-family: Arial, sans-serif;
    background-color: #1d1f27; /* Dark background */
    color: #eaeaea; /* Light text color */
}

.container {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #2a2f3b; /* Dark gray-blue */
    color: #eaeaea;
    height: 100vh;
    padding-top: 30px;
    position: fixed;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar h2 {
    color: #eaeaea;
    font-size: 1.5rem;
}

.sidebar-menu {
    list-style: none;
    padding-left: 0;
}

.sidebar-menu li {
    margin: 20px 0;
}

.sidebar-menu li a {
    color: #eaeaea;
    text-decoration: none;
    display: block;
    padding: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.sidebar-menu li a:hover {
    background-color: #4a536b; /* Lighter gray-blue for hover */
    border-radius: 5px;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    background-color: #212634; /* Dark background for main content */
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

header .header-left h1 {
    font-size: 2rem;
    color: #f1f1f1;
}

header .header-right input {
    padding: 10px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #3e4854; /* Dark border color */
    background-color: #2a2f3b;
    color: #eaeaea;
}

header input::placeholder {
    color: #ccc;
}

header button {
    background-color: #6c7c94; /* Soft blue */
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

header button:hover {
    background-color: #4a536b; /* Hover color */
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: #2a2f3b; /* Dark card background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #f1f1f1;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #bbb;
}

.card p {
    font-size: 1.5rem;
    font-weight: bold;
}

.charts {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.chart-card {
    width: 48%;
    background-color: #2a2f3b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chart-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #bbb;
}

.tasks, .messages {
    margin-top: 40px;
}

.tasks ul, .messages ul {
    list-style: none;
    padding-left: 0;
}

.tasks li, .messages li {
    background-color: #2a2f3b;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tasks .task-title, .messages strong {
    font-weight: bold;
    color: #f1f1f1;
}

.due-date {
    float: right;
    color: #aaa;
}

/* Additional Styling */
button.notification, button.profile {
    background-color: #5c6bc0; /* Darker blue for notification/profile button */
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.notification:hover, button.profile:hover {
    background-color: #4a536b; /* Darker hover effect */
}

/* Employee List Styling */
.employee-list {
    margin-top: 30px;
    padding: 20px;
    background-color: #212634;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #f1f1f1;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #333e4d; /* Darker shade for headers */
    font-weight: bold;
}

td {
    background-color: #2a2f3b; /* Dark background for rows */
}

tr:nth-child(even) td {
    background-color: #353f4e; /* Slightly lighter background for alternate rows */
}

tr:hover td {
    background-color: #4a536b; /* Hover effect for rows */
    transition: background-color 0.3s ease;
}

input[type="text"] {
    padding: 10px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #3e4854;
    background-color: #2a2f3b;
    color: #eaeaea;
}

input[type="text"]::placeholder {
    color: #ccc;
}

/* Task Management Page Styling */
.task-table {
    margin-top: 30px;
    padding: 20px;
    background-color: #212634;
    border-radius: 10px;
}

button {
    background-color: #5c6bc0;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4a536b;
}

button.edit-btn {
    background-color: #ff9800;
}

button.edit-btn:hover {
    background-color: #e68900;
}

button.delete-btn {
    background-color: #f44336;
}

button.delete-btn:hover {
    background-color: #d32f2f;
}

button.complete-btn {
    background-color: #4caf50;
}

button.complete-btn:hover {
    background-color: #388e3c;
}

/* Modal for Adding Tasks */
.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #212634;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

label {
    display: block;
    margin-top: 10px;
    color: #f1f1f1;
}

input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #3e4854;
    background-color: #2a2f3b;
    color: #f1f1f1;
}

button[type="submit"] {
    margin-top: 15px;
    background-color: #6c7c94;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #4a536b;
}

/* Reports Page Styling */
.reports-section {
    margin-top: 30px;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.report-card {
    background-color: #2a2f3b;
    padding: 20px;
    border-radius: 10px;
    color: #f1f1f1;
    text-align: center;
}

.report-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #bbb;
}

.report-card p {
    font-size: 1.5rem;
    font-weight: bold;
}

.charts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.chart-card {
    width: 48%;
    background-color: #2a2f3b;
    padding: 20px;
    border-radius: 10px;
    color: #f1f1f1;
}

.chart-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #bbb;
}

.report-table {
    background-color: #212634;
    padding: 20px;
    border-radius: 10px;
}

.status {
    padding: 2px 10px;
    border-radius: 5px;
    color: #fff;
}

.status.pending {
    background-color: #f44336; /* Red for pending */
}

.status.in-progress {
    background-color: #ff9800; /* Orange for in-progress */
}

.status.completed {
    background-color: #4caf50; /* Green for completed */
}

.progress-bar {
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.progress-bar.completed {
    background-color: #4caf50;
}

.progress-bar.in-progress {
    background-color: #ff9800;
}

.progress-bar.pending {
    background-color: #f44336;
}

/* Messages Page Styling - Messenger Layout */
.conversation-list {
    margin-top: 30px;
}

.conversation-item {
    display: flex;
    align-items: center;
    background-color: #2a2f3b;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.conversation-item:hover {
    background-color: #353f4e;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    background-color: #bbb;
    border-radius: 50%;
    margin-right: 10px;
}

.conversation-info {
    flex-grow: 1;
}

.conversation-name {
    font-size: 1rem;
    font-weight: bold;
    color: #f1f1f1;
}

.conversation-preview {
    font-size: 0.9rem;
    color: #aaa;
}

.last-message-time {
    font-size: 0.8rem;
    color: #bbb;
}

.chat-window {
    display: none;
    background-color: #212634;
    border-radius: 10px;
    height: 85vh;
    overflow-y: auto;
    padding: 20px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background-color: #5c6bc0;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #4a536b;
}

#chat-with-name {
    font-size: 1.3rem;
    color: #f1f1f1;
}

.chat-messages {
    margin-bottom: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.message {
    max-width: 60%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.message.received {
    background-color: #353f4e;
    align-self: flex-start;
}

.message.sent {
    background-color: #4caf50;
    color: white;
    align-self: flex-end;
}

.chat-footer {
    display: flex;
    align-items: center;
}

textarea {
    width: 90%;
    padding: 10px;
    background-color: #2a2f3b;
    border: none;
    border-radius: 10px;
    color: white;
    resize: none;
    margin-right: 10px;
}

.send-btn {
    background-color: #5c6bc0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #4a536b;
}

/* Modal for New Message */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #212634;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

label {
    display: block;
    margin-top: 10px;
    color: #f1f1f1;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #3e4854;
    background-color: #2a2f3b;
    color: #f1f1f1;
}

button[type="submit"] {
    margin-top: 15px;
    background-color: #6c7c94;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #4a536b;
}

/* Settings Page Styling */
.settings-section {
    margin-top: 30px;
}

.settings-category {
    background-color: #2a2f3b;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.settings-category h2 {
    font-size: 1.3rem;
    color: #f1f1f1;
    margin-bottom: 15px;
}

.settings-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

label {
    color: #f1f1f1;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
input[type="range"] {
    padding: 10px;
    background-color: #2a2f3b;
    border: 1px solid #3e4854;
    border-radius: 5px;
    color: #f1f1f1;
    width: 100%;
}

input[type="checkbox"] {
    margin-right: 10px;
}

button[type="submit"] {
    background-color: #5c6bc0;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

button[type="submit"]:hover {
    background-color: #4a536b;
}
