/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #F5F5F5;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* Header styles */
h1.header {
    background-color: #0066CC;
    color: #FFFFFF;
    padding: 10px;
    margin: 0;
}

/* Container styles */
.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
}

/* Menu styles */
.menu {
    width: 20%;
    background-color: #0066CC;
    color: #FFFFFF;
    padding: 0;
}

.menu ul {
    list-style-type: none;
    padding: 0;
}

.menu li {
    margin: 0;
}

.menu a {
    text-decoration: none;
    color: #FFFFFF;
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #0052A3;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #0052A3;
}

/* Main content area */
.main-content {
    flex: 1;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
}

/* Form input and button styles */
input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #0066CC;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px; 
}

input[type="submit"]:hover {
    background-color: #0052A3;
}

.button {
    background-color: #0066CC;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-right: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin: 5px; 
    text-decoration: none;
}

.button:hover {
    background-color: #0052A3;
}

/* Generic table styling for all tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

/* Button styling */
.edit-button, .delete-button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 5px;
    display: inline-block;
    cursor: pointer;
}

.edit-button:hover, .delete-button:hover {
    background-color: #0056b3;
}

/* Styling for danger (delete) buttons */
.delete-button {
    background-color: #e74c3c;
}

.delete-button:hover {
    background-color: #c0392b;
}

/* Success and error messages */
.success-message {
    color: #28a745;
    font-weight: bold;
    margin-top: 15px;
}

.error-message {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 15px;
}

/* Logout button styles */
.logout-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}

.logout-button:hover {
    background-color: #0056b3;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .menu, .main-content {
        width: 100%;
    }

    table th, table td {
        display: block;
        width: 100%;
    }
}

/* Form field spacing */
.form-group {
    margin-bottom: 20px;
}

.input-field {
    padding: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    display: block;
    max-width: 400px; /* Adjust the maximum width as needed */
    width: 100%;      /* Ensures the field is responsive */
}

/* Access table styles */
.access-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.access-table th, .access-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.access-table th {
    background-color: #f4f4f4;
}
