html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Style for user list */
.user-list {
    margin-bottom: 20px;
}

.user-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Style for buttons */
.user-button {
    margin-left: 10px;
    padding: 5px 10px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .user-button:hover {
        background-color: #0056b3;
    }

/* Style for input fields */
.user-input {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.date-inputs {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .date-inputs > .form-floating {
        flex-basis: 100%;
    }
}

.date-inputs > .form-floating {
    flex-basis: calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.card-box {
    background-color: #ffe5e5; /* Light red background */
    border: none; /* Remove border */
    cursor: pointer; /* Cursor change on hover */
    transition: box-shadow 0.3s ease;
    margin-bottom: 15px;
}

    .card-box:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow on hover */
    }

    .card-box .card-body {
        padding: 20px;
    }

    .card-box .card-title {
        font-size: 1.5em;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .card-box .card-text {
        font-size: 1em;
    }

.user-card {
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

    .user-card:hover {
        transform: scale(1.02);
    }

.expanded-content {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.sort-options {
    margin-bottom: 10px;
}

.sortable-column {
    cursor: pointer;
    margin-right: 15px;
    font-weight: normal;
    color: #007bff; /* Bootstrap primary color */
    transition: color 0.3s;
}

    .sortable-column:hover {
        color: #0056b3; /* Slightly darker blue for hover effect */
    }

.active-sort {
    font-weight: bold;
    color: #0056b3; /* Active color */
}

.sort-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: middle;
}

.search-bar-container {
    margin-bottom: 20px; /* Adds space below the search bar */
    margin-top: 10px; /* Adds space above the search bar */
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
    gap: 10px;
}

    .search-bar-container input,
    .search-bar-container select {
        flex: 1; /* Ensures the input and select take equal space */
        min-width: 250px; /* Ensures they have a minimum width */
    }

@media (max-width: 500px) {
    .search-bar-container {
        flex-direction: column; /* Stack items vertically on narrow screens */
    }
}

.search-input {
    margin-right: 10px; /* Adds space between the input and the button */
    padding: 5px; /* Adds some padding inside the input */
    width: 250px; /* Sets a fixed width for the input */
    border-radius: 4px; /* Rounds the corners of the input */
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.btn {
    padding: 6px 12px; /* Adjusts the button padding */
    border-radius: 4px; /* Rounds the corners of the button */
}

.expandable-user-component {
    border: 1px solid #ddd;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 1s ease;
    position: relative;
    background-color: #f9f9f9;
    max-width: 700px;
}

.user-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* Make it clear that it's clickable */
}

.expand-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    margin-left: 10px;
    user-select: none; /* Prevent text selection */
}

.user-details {
    margin-top: 10px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.card-frame {
    border: 1px solid #ccc;
    padding: 2px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0px;
    font-weight: bold;
    color: #333;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.card-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.add-card-form {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

    .add-card-form input {
        margin-left: 10px;
        margin-right: 10px;
    }

.limited-width {
    max-width: 800px;
    margin: 0 auto;
    justify-content: left;
    justify-self: left;
    padding: 20px; /* Adds padding inside the component */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
    border-radius: 10px; /* Optional: Rounds the corners */
    background-color: #fff; /* Optional: Sets a background color */
}

.special-bg {
    background-color: pink;
}

.pink-text {
    color: pink;
}

.red-text {
    color: red;
}

.flag {
    width: auto; /* Set the desired width */
    height: 13px; /* Maintain aspect ratio */
    margin-right: 8px; /* Optional: Add some space between the flags */
}

    .flag.selected {
        width: auto; /* Make the selected flag bigger */
        height: 22px;
    }

.access-event {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 10px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9; /* Default gray background */
    max-width: 700px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .access-event.allowed {
        background-color: #a8f0a5; /* Light green */
    }

    .access-event.not-allowed {
        background-color: #ffe6e6; /* Light red */
    }

    .access-event.same-day {
        background-color: #ffffcc; /* Light yellow */
    }

    .access-event-header span {
        white-space: nowrap;
    }

.access-event-header {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the left */
    gap: 5px; /* Add spacing between rows */
}
.access-event-status {
    font-weight: bold;
    color: #333;
}

.timestamp {
    font-size: 0.9em; /* Small but noticeable */
    color: #555; /* Subtle color for timestamp */
}

.name-permission {
    font-size: 1.3em; /* Bigger font size */
    font-weight: bold; /* Make it bold */
    color: #333; /* Darker color for emphasis */
}

    .name-permission .name {
        font-weight: bold; /* Make only the name bold */
    }

    .name-permission .permission {
        font-weight: normal; /* Ensure the permission is not bold */
    }

.previous-visit {
    font-size: 0.8em; /* Smaller font size */
    font-style: italic; /* Italicized text */
    text-align: right; /* Align to the right */
    width: 100%; /* Ensure it spans the full width */
    color: #777; /* Subtle color for previous visit */
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: .5rem;
    min-width: 300px;
    max-width: 500px; /* <-- add this line */
    width: 100%; /* Ensures responsiveness */
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(0,0,0,.1);
    border-left-color: #3498db;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/*statistics page*/
.modal-content-stats {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-overlay-stats {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.statistics-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

.statistics-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}