/* public/css/styles.css */
body {
    font-family: Arial, sans-serif;
}
h1, #logoutButton {
    text-align: center;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}
label, input {
    margin: 10px;
}
button {
    padding: 10px 20px;
}

#buttonContainer {
    text-align: center;
    margin-top: 20px;
}

#buttonContainerEntry {
    text-align: center;
    margin-top: 20px;
    display: flex;
}

#LabelContainerEntry {
    text-align: center;
    margin-top: 5px;
    display: flex;
}

#saveTitleButton,
#logoutButton {
    padding: 10px 20px;
    margin: 5px;
}

#calendar-header {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px; /* Add padding to give space on the sides */
}

#calendar-header button {
    padding: 5px 10px;
    margin: 0 5px; /* Add margin to give space between buttons */
}

#calendar {
    padding: 0 70px; /* Add padding to the calendar for space on the sides */
}

#calendarTable {
    width: 100%;
    border-collapse: collapse;
}

#calendarTable th,
#calendarTable td {
    width: 100px; /* Fixed width */
    height: 100px; /* Fixed height */
    text-align: left;
    vertical-align: top;
    border: 1px solid #ddd;
    position: relative;
    padding: 5px; /* Adjust padding as needed */
    overflow: hidden; /* Hide overflow content */
}

.entries {
    height: calc(100% - 20px); /* Ensure entries take up available height without expanding the cell */
    overflow-y: auto; /* Add vertical scrolling for overflow content */
    white-space: pre-wrap; /* Allow wrapping of the text */
}

.entry {
    font-size: 12px;
    margin: 2px 0;
    display: block;
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis if entry text overflows */
    white-space: nowrap; /* Prevent wrapping within an entry */
}

#calendarTable td.weekend {
    background-color: #dcdcdc; /* Darker grey for weekends */
}

#calendarTable td.today::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    width: 17px; /* Adjust size as needed */
    height: 17px; /* Adjust size as needed */
    margin-right: 5px;
    vertical-align: middle;
}

#calendarTable td:hover .entry-popup {
    display: block;
}

#calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#calendar-header button {
    padding: 5px 10px;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 60%; /* Full width */
    height: auto; /* Full height */
    overflow: scroll; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto; /* 15% from the top and centered */
    padding: 100px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.entry-popup {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

table#calendarTable th,
table#calendarTable td {
    width: 100px;
    height: 100px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #ddd;
    position: relative;
    padding: 0;
}

.day-number {
    padding: 5px;
}

.today-indicator {
    display: inline-block;
    width: 17px; /* Match the size used for the .today::before */
    height: 17px;
    background-color: red;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}

/* New styles for the email link */
#emailLinkContainer {
    text-align: center;
    margin: 20px 0;
}
#emailLinkContainer a {
    color: red;
    font-weight: bold;
}
