#login_box {
    min-width: 350px;
    --bs-bg-opacity: .9;
}

#reset_password_box {
    min-width: 350px;
    --bs-bg-opacity: .9;
}

#login_page {
    display: flex;
    align-items: center;     /* vertical center */
    justify-content: center; /* horizontal center */
    min-height: calc(100vh - 90px);       /* full viewport height minus navbar height */
    box-sizing: border-box;
    padding: 2rem;           /* keep some breathing room on small screens */
    background-image: 
        url('img/day5_logo.png');
    background-size: 256px 256px;
    background-repeat: repeat;
    background-position: center center;
    background-color: var(--bs-info-bg-subtle, #e7f1ff);
}

.notification-bar {
    position: fixed !important;
    top: 4rem; /* move down below the navbar; adjust if needed */
    left: 50%;
    transform: translateX(-50%) scale(0);
    z-index: 2000;              /* sit above other elements */
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
    pointer-events: none;
    will-change: opacity, transform;
}

.notification-bar.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

/* dropdown panel styling */
.profile-dropdown {
    position: absolute;
    top: 100%;               /* directly below the navbar */
    right: 0;             /* align to the right side */
    margin-top: 0;
    width: 220px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.25rem;
    padding: 0.75rem;
    z-index: 1050;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15);
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease-in-out;
    pointer-events: none;
    will-change: transform, opacity;
}

.profile-dropdown.show {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

.day_card {
    height: 400px !important;
}

.card-body {
    overflow-y: auto;
    padding: 5px !important;
}

.day_card_header {
    text-align: center;
}

.spinner-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    transition: opacity 160ms ease, visibility 160ms ease;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.spinner-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* sprite: 6 frames horizontally, each frame 120px wide */
.logo-sprite {
    width: 120px;
    height: 120px;
    background-image: url('img/logo-sprite.png');
    background-repeat: no-repeat;
    background-size: auto 100%;               /* keep sprite at natural pixel width */
    animation: logo-sprite-px 900ms steps(6) infinite alternate;
    /* ensure crisp rendering if frames are pixel-art */
    image-rendering: optimizeQuality;
}

@keyframes logo-sprite-px {
    from { background-position: 0 0; }
    /* move left by frameWidth * (frames - 1) */
    to   { background-position: calc(-120px * 6) 0; }
}



/* small gentle pulse while animating */
.logo-frames img {
    transition: transform 180ms ease;
}
.logo-frames img:where(:not(.hidden)) {
    transform-origin: center;
}

.logs_container {
    font-size: 0.8rem;     /* smaller text */
    line-height: 1.15;     /* tighter lines for denser output */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    white-space: pre-wrap; /* keep wrapping but preserve line breaks */
    height: 400px; 
    overflow-y: scroll; 
    background-color: #1e1e1e; 
    color: #1ee60c;
    padding: 10px; 
    border-radius: 5px;
}

/* #user_management_section {
    overflow-x: scroll;
} */

/* dark-mode Quill toolbar */
.dark-mode .ql-toolbar {
    background: #0b1220;               /* dark toolbar bg */
    color: #ffffff;                    /* toolbar text color */
    border-color: rgba(255,255,255,0.08);
}

/* toolbar buttons / picker labels */
.dark-mode .ql-toolbar button,
.dark-mode .ql-toolbar .ql-picker-label,
.dark-mode .ql-toolbar .ql-formats {
    color: #ffffff;
}

/* SVG icon strokes/fills (Quill uses .ql-stroke and .ql-fill) */
.dark-mode .ql-toolbar .ql-stroke  { stroke: #fff !important; }
.dark-mode .ql-toolbar .ql-fill    { fill: #fff !important; }
.dark-mode .ql-toolbar svg         { color: #fff; } /* fallback for some icon variants */

/* hover / active states */
.dark-mode .ql-toolbar button:hover,
.dark-mode .ql-toolbar .ql-picker-label:hover {
    background: rgba(255,255,255,0.06);
}
.dark-mode .ql-toolbar button.ql-active,
.dark-mode .ql-toolbar .ql-picker-label.ql-active {
    background: rgba(255,255,255,0.12);
}

/* picker dropdowns */
.dark-mode .ql-toolbar .ql-picker .ql-picker-options {
    background: #0b1220;
    color: #fff;
    border-color: rgba(255,255,255,0.08);
}

#habit_table_container {
    max-height: 400px;
    overflow-y: auto;
}

/* #notes_editor {
    min-height: 200px;
    max-height: 400px;
    overflow-y: scroll;
} */

#notes_column {
    height: 350px !important;
}

.ql-container {
    height: 200px !important;
    overflow-y: auto;
}

.profile-icon {
    color: #ffffff; /* controls SVG fill/stroke because SVG uses currentColor */
    max-height: auto;
    max-width: 128px;
    border: 2px solid var(--bs-info, #ffffff);
    border-radius: 50%;
    padding: 2px;
}

/* #notes_container {
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.25rem;
} */

.editable-row {
    border-color: rgba(255, 255, 0, 0.326) !important;
    border-width: 2px !important;
    border-style: dashed !important;
    border-radius: 4px !important;
}

.editable-cell {
    cursor: pointer;
    -webkit-user-modify: read-write;
    /* Create striped effect for editable cells */


}

.task_delete_button {
    color: #dc3545; /* Bootstrap danger color */
    cursor: pointer;
}

.task_delete_button:active {
    transform: scale(0.95);
}

.task_delete_button:hover {
    color: #a71d2a;
    scale: 1.05;
}

.task_edit_button {
    color: var(--bs-warning, #ffc107); /* Bootstrap warning color */
    cursor: pointer;
}

.task_edit_button:active {
    transform: scale(0.95);
}

.task_edit_button:hover {
    color: #e6a23c;
    scale: 1.05;
}

.feedback-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: var(--bs-primary, #0d6efd);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.feedback-icon:hover {
    background-color: var(--bs-primary-dark, #0b5ed7);
}

.feedback-popup {
    position: fixed;
    bottom: 60px;
    right: 10px;
    width: 300px;
    background-color: var(--bs-body-bg, #ffffff);
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 15px;
    z-index: 1001;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms ease-in-out;
    pointer-events: none;
    will-change: transform, opacity;
}

.feedback-popup.show {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.feedback-experience-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.feedback-experience-icon:hover {
    color: var(--bs-white-dark, #5a6268);
}

.feedback-experience-icon.selected {
    color: var(--bs-primary, #343a40);
}



/* ensure desktop layout: centered group + right-aligned completion info */
.calendar_header {
    position: relative;
    display: flex;
    align-items: center;
}
.calendar_header > .d-flex.align-items-center {
    /* mx-auto already centers this group in the flex container */
    position: relative;
}
#completion_info {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* Small screens: stack header controls and place completion info below */
@media (max-width: 767.98px) {
    .calendar_header {
        flex-direction: column;
        gap: .5rem;
        align-items: center; /* center children */
    }
    .calendar_header > .d-flex.align-items-center {
        order: 1;
        position: static;    /* stop absolute positioning */
        margin: 0;
    }
    #completion_info {
        order: 2;
        position: static;
        transform: none;
        right: auto;
        text-align: center;
        width: 100%;
        margin-top: .5rem;
    }
    #week_range {
        font-size: 1rem;
        font-weight: 600;
    }
    #profile_btn_container {
        position: absolute;
        top: 0.5rem;
        right: 80px;
        transform: translateX(0);
    }
}

#heatmapContainer {
    position: fixed;
    inset: 0;               /* top:0; right:0; bottom:0; left:0; */
    width: 100vw;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;           /* optional: remove border so it doesn't draw a frame */
    border-radius: 0;
    z-index: 99999;         /* above everything (adjust if needed) */
    background: rgba(0,0,0,0.0); /* keep transparent or use a dimmer if desired */
    /* pointer-events: none; */ /* uncomment to let clicks pass through */
    pointer-events: none;
}

.staging-mode {
    background-image: url('img/staging_banner.png');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: auto 30px;
    height: 34px;
    border-bottom: 2px dashed rgb(101, 199, 84);
    margin-top: 2px;
    padding: 4px;
}
