/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

header {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 2px -2px gray;
}

/* Navigation styling */
nav {
    margin: 10px;
    text-align: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Main container */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Rota list styling */
.rota-list {
    list-style-type: none;
    padding: 0;
}

.rota-item {
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button styles */
button, .btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 10px;
}

button:hover, .btn:hover {
    background-color: #0056b3;
}

.btn-primary {
    background-color: #007BFF;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Style for the unavailable day boxes */
.unavailable-box {
    display: inline-block;
    width: 100px;
    height: 50px;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    background-color: #f4f4f4; /* Default background color */
    color: black; /* Default text color */
    transition: background-color 0.2s;
}

.unavailable-box.unavailable {
    background-color: red;
    color: white;
}

.unavailable-box.xd {
    background-color: #f4b4b4;
    color: red;
    font-size: 24px;
}

/* Flexbox layout for unavailable day boxes */
#availability {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

/* Grid layout */
.grid-container {
    display: grid;
    grid-template-columns: 50px repeat(7, 1fr);
    grid-gap: 2px;
    margin-bottom: 20px;
}

.hour, .header {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 10px;
}

.grid-cell {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.grid-cell.selected {
    background-color: green;
    color: white;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

/* Form input fields */
input, select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Remove bullet points from role list */
#role-list {
    list-style-type: none;
    padding: 0;
}

/* Style each role item */
.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    background-color: #f4f4f4;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Style the role name */
.role-name {
    font-weight: bold;
}

/* Style the remove button */
.remove-role-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-role-btn:hover {
    background-color: darkred;
}

/* Style the remove button for employees */
.remove-employee-btn {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-employee-btn:hover {
    background-color: darkred;
}


/* Footer */
footer {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    background-color: #007BFF;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Error message */
.error {
    color: red;
    font-weight: bold;
}
