body {
    padding-bottom: 70px;
    font-family: Verdana;
    background-color: #F3F4F6;
    overflow: hidden;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white; /*rgba( 95, 37, 159, .9);*/ /*#5f259f*/
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    border-top: 1px solid #d6d5d5;
}

.nav-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 4px;
    color: #4a4a4a;
    font-size: 1.0rem;
    transition: color 0.2s ease;
    font-weight: 600;
}

    .nav-link-item .menu-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .nav-link-item:hover,
    .nav-link-item:focus,
    .nav-link-item:active {
        color: #5f259f;
    }

    .nav-link-item.active {
        color: #5f259f !important; /* override Bootstrap color */
        font-weight: bold !important;
        border-top: 2px solid #5f259f !important;
    }

.top-row {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #5f259f !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: normal !important;
    z-index: 1050;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}


    .top-row .logo-txt {
        margin: 0;
        font-size: 13px;
        color: white !important;
        font-family: Garamond;
    }

    .top-row h3 {
        margin: 0;
        font-size: 1.5rem;
    }

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7); /* optional overlay */
    z-index: 9999; /* make sure it's on top */
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #5f259f; /* purple top */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


main, section {
    display: block !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.fab-btn {
    position: fixed !important;
    bottom: 105px !important;
    right: 25px !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba( 95, 37, 159, .9);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .fab-btn:hover {
        background-color: #4b1d7e;
    }

.highlight-today-column {
    background-color: #F4F2FA !important;
}



.container {
    padding-top: 72px; /* Adjust based on the header height */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.card {
    overflow: hidden;
}

    .card:last-child {
        margin-bottom: 200px;
    }

h5 {
    font-family: 'Verdana', Geneva, Tahoma, sans-serif; /* fallback fonts */
    font-size: 10px; /* slightly bigger for better readability */
    margin-bottom: 0;
    font-weight: 600; /* use standard weights like 600 for better browser support */
    text-transform: uppercase;
    letter-spacing: 1.3px; /* a bit more spacing for crisp uppercase */
    color: #5f259f;
    line-height: 1.3; /* improve vertical spacing */
    transition: color 0.3s ease; /* smooth color transition on hover or focus */
}



h6 {
    font-size: 10px;
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5f259f;
}

.small-gap {
    margin-top: 10px;
    margin-bottom: 4px;
    padding-bottom: 0.25rem;
}

.card-text {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: #333;
}

.thick-border {
    border-left: 15px solid rgba( 95, 37, 159, .9);
}

.floating-card {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.time-rendered {
    font-weight: bold;
    font-size: 13px;
}

.custom-content {
    margin-bottom: 5px;
}

.calendar-container {
    width: 100%;
    font-size: 12px;
    height: 75px;
    overflow: hidden;
}
/*.calendar-container {
    width: 100%;
    font-size: 12px;
    margin-bottom: 5px;*/
/* Responsive height */
/*height: 10vh;*/ /* 50% of viewport height, adjusts on screen size */
/*max-height: 20px;*/ /* optional: prevents it from getting too tall */
/*min-height: 10px;*/ /* optional: prevents it from being too small */
/*}*/
.current-week-label {
    font-size: 8px;
    text-align: center;
    padding-left: 5px;
}

.selected-date {
    color: #5f259f;
}

.app-main-color {
    color: #5f259f;
}

@media (max-width: 768px) {
    .calendar-container {
        max-height: 300px;
    }
}

.heart-icon-filled {
    font-size: 2rem;
    color: #5f259f; /* filled heart color */
    transition: 0.2s;
    cursor: pointer;
}

.heart-icon {
    color: #5f259f;
}

.heart-icon-link {
    text-decoration: none;
}

.heart-icon-watchlist {
    color: #5f259f;
    font-size: 40px;
}

.div-border {
    position: relative;
}

    /* Fancy bottom border */
    .div-border::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px; /* thickness of the border */
        width: 100%;
        background: linear-gradient( to left, rgba(37, 117, 252, 0.7), /* 50% opacity */
        rgba(95, 37, 159, 0.8) /* 50% opacity */
        );
        border-radius: 2px; /* optional */
    }

.selected-date-div {
    height: 15px;
    font-size: 13px;
    width: 100%;
    padding: 0 15px 0 7px;
    font-size: 10px;
}

.full-height-card {
    min-height: 100vh; /* 100% of viewport height */
    display: flex;
}

.Watchlist-btn {
    background-color: #5f259f;
    color: white;
    border: 2px solid #8a57c4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 12px;
}

.input-with-label {
    position: relative;
    margin-top: 1.5rem; /* space for label */
    background-color: transparent;
}

    .input-with-label input {
        width: 100%;
        padding: 0.75rem 0.75rem 0.25rem 0.75rem;
        border-radius: 0.375rem;
        font-size: 1rem;
        outline: none;
        height: 50px;
        border: 1px solid #ccc;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .input-with-label label {
        position: absolute;
        top: 0;
        left: 0.75rem;
        background: white;
        padding: 0 0.25rem;
        color: #5f259f;
        line-height: 1;
        transform: translateY(-50%);
        pointer-events: none;
        user-select: none;
        font-weight: 300;
        font-size: 14px;
        margin-bottom: 0.25rem;
    }

    .input-with-label input:focus {
        border-color: #5f259f;
        box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
    }

.task-info {
    font-size: 12px;
}

.sub-task-info {
    font-size: 11px;
}

.edit-buttons {
    margin-top: 10px;
    overflow: hidden;
}


@keyframes slideDownFadeIn {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        max-height: 100px; /* enough to show buttons */
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    z-index: 9999; /* Higher than your nav/menu */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Let dropdown escape card boundaries */
.card,
.card-body,
.row,
.col,
.container-fluid {
    overflow: visible !important;
}

/* force Hx dropdown to float above everything else */
.hx-dropdown-menu,
.hx-search-box-dropdown {
    position: absolute !important;
    z-index: 3000 !important;
}

input[type="time"] {
    appearance: auto;
    -webkit-appearance: auto;
}

.card-header-tabs .nav-link {
    font-size: 11px !important; /* smaller font */
    padding: 0.25rem 0.5rem !important; /* optional: reduce padding to match smaller font */
}
