/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

.welcome-message,
.quick-action-message {
    text-align: center;
}

.welcome-message h1,
.quick-action-message h1 {
    text-decoration: underline;
}

.login-container,
.signup-container,
.forgot-password-container,
.reset-password-container {
    width: 300px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
textarea,
select {
    width: calc(100% - 20px);
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea {
    height: 150px;
}

button {
    width: calc(100% - 20px);
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#errorMsg {
    color: red;
}

header,
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.user-details {
    margin-right: 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.content {
    max-width: 1500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column; /* Change to column layout */
}

.container {
    display: flex;
    flex-direction: row; /* Change to row layout */
    width: 100%; /* Adjust width to 100% */
}

.summary-container,
.notes-container,
.user-count-container,
.contact-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 20%;
    margin: 10px;
}

.summary-container h2,
.notes-container h2,
.user-count-container h2,
.contact-container h2 {
    margin-top: 0;
}

.summary-container p,
.notes-container p,
.user-count-container p,
.contact-container p {
    margin-bottom: 10px;
}

.notes-container .note-btn {
    background-color: transparent; /* Remove button background */
    width: auto; /* Make button width smaller */
    padding: 5px 10px; /* Add padding */
    margin-right: 10px; /* Add margin between buttons */
    color: black; /* Set text color to black */
}

.contacts-list,
.new-contact-form,
.edit-contact-form,
.notes-list,
.new-note-form,
.edit-note-form,
.admin-dash {
    width: 100%; /* Change width to 100% */
    margin-bottom: 20px; /* Add margin between form and table */
}

.contacts-list {
    margin-right: 20px;
}

.contacts-list h2,
.new-contact-form h2,
.edit-contact-form h2,
.notes-list h2,
.new-note-form h2,
.edit-note-form h2,
.admin-dash h2 {
    margin-top: 0;
}

.contacts-list table,
.notes-list table,
.edit-note-form textarea,
.admin-dash table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px;
    box-sizing: border-box;
}

.contacts-list table th,
.contacts-list table td,
.notes-list table th,
.notes-list table td,
.admin-dash table th,
.admin-dash table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

.contacts-list table th,
.notes-list table th,
.admin-dash table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.contacts-list table tr:nth-child(even),
.notes-list table tr:nth-child(even),
.admin-dash table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.contacts-list table tr:hover,
.notes-list table tr:hover,
.admin-dash table tr:hover {
    background-color: #f2f2f2;
}

.new-contact-form label,
.edit-contact-form label,
.new-note-form label,
.edit-note-form label {
    display: block;
    margin-bottom: 5px;
}

.new-contact-form textarea,
.edit-contact-form textarea,
.new-note-form textarea,
.edit-note-form textarea,
.new-contact-form select,
.edit-contact-form select,
.new-note-form select,
.edit-note-form select {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.new-contact-form button,
.edit-contact-form button,
.new-note-form button,
.edit-note-form button {
    width: calc(50% - 10px);
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.new-contact-form button:hover,
.edit-contact-form button:hover,
.new-note-form button:hover,
.edit-note-form button:hover {
    background-color: #006400;
}

.delete-button,
.edit-button,
button {
    width: calc(50% - 10px);
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.delete-button:hover {
    background-color: #ff0000;
}

.edit-button:hover {
    background-color: #006400;
}