/* General Layout */
#body {
#    font-family: Arial, sans-serif;
#    margin: 0;
#    padding: 0;
#    display: flex;
#    flex-direction: column;
#    align-items: center;
#    background-color: #f9f9f9;
#}

.justhcalendartopcontainer {
    width: 100%;
    margin-top: 20px;
}

/* Top Buttons */
.justhcalendar-top-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.justhcalendar-top-button {
    padding: 10px 20px;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.justhcalendar-top-button:active {
    transform: scale(0.95);
}

.justhcalendar-top-button.active {
   box-shadow: 0 0 0 3px white, 0 0 0 4px black; /* Inner white border and outer black border */
}

/* Content Area */
.justhcalendar-content {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Calendar */
.justhcalendar-container {
#    width: 27%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 6px;
    background: #fff;
    width: 260px;
}

.justhcalendar-headline {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.justhcalendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;

#    padding: 4px;

}

.justhcalendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-row-gap: 15px;
    grid-column-gap: 3px;
    width: 250px; /* Prevent the calendar from shrinking */
}

.justhcalendar-date-button {
    width: 29px;
    height: 29px;
    font-size: 12px;
    border-radius: 50%;
    padding: 4px;
    background-color: #d3d3d3;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    position: relative;
}

.justhcalendar-date-button.selected {
   box-shadow: 0 0 0 2px white, 0 0 0 3px black; /* Inner white border and outer black border */
}

.justhcalendar-date-button.weekend {
    background-color: red;
    color: white;
}

.justhcalendar-date-button.past {
    background-color: lightgray;
    color: darkgray;
}

/* justhcalendar-timestamps */
.justhcalendar-timestamps {
    width: 55%; /* Adjust as needed */
    padding: 10px;
    border: 1px solid #ccc;
    height: 300px; /* Define the height for scrolling */
    overflow-y: auto; /* Enable scrolling */
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 10px; /* Horizontal and vertical spacing between items */
    align-content: flex-start; /* Ensure wrapped rows align tightly */
    justify-content: flex-start; /* Align items to the left */
}

.justhcalendar-timestamp-button {
    padding: 2px 10px; /* Add padding around text */
    border: 1px solid black;
    background-color: #000000;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex; /* Make the button inline-flex */
    align-items: center; /* Center content vertically */
    height: auto; /* Allow the height to adjust dynamically */
    line-height: normal; /* Ensure no extra spacing from line height */
    white-space: nowrap; /* Prevent text wrapping inside buttons */
}

/* Style the scrollbar for the .justhcalendar-timestamps container */
.justhcalendar-timestamps::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.justhcalendar-timestamps::-webkit-scrollbar-track {
    background: #f4f4f4; /* Background of the track */
    border-radius: 10px; /* Rounded corners for the track */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), /* Shadow for emboss effect */
                inset -2px -2px 5px rgba(255, 255, 255, 0.7); /* Highlight for emboss effect */
}

.justhcalendar-timestamps::-webkit-scrollbar-thumb {
    background: #888; /* Color of the thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
}

.justhcalendar-timestamps::-webkit-scrollbar-thumb:hover {
    background: #555; /* Darker color when hovering over the thumb */
}