:root {
    --radius: 0.7rem;
    --sidebar-default-width: 380px;
    --left-sidebar-open-width: 260px;
    --left-sidebar-collapsed-width: 70px;
    --navbar-height: 65px;

    /* bulma */
    --bulma-primary: #0B138B;
    --bulma-secondary: #C0CBFF;
    --bulma-primary-dark: #3F75FC;
    --bulma-link-hover: #2d5edb;
    --bulma-link: #3F75FC;
    --bulma-danger: #F24667;
    --bulma-danger-dark: #da3757;
    --bulma-light-gray: #6DC282;
    --bulma-success: #6DC282;
    --bulma-success-dark: rgb(43, 109, 43);

    --background1: #FBFDFF;
    --background2: #F3F5FF;
    --progress-bg-color: #F3F5FF;
    --background3: #F8F9FA;
    --background4: #dbe1e7;

    --black: #0a0a0a;
    --scrollbar-color: #9598b6;
    --white: #FFF;
    --accent: #e0e0e07a;
    --text-primary: #0B138B;
    --text-secondary: #3c4c94;

    --item-primary: #0468bf;
    --item-secondary: #05c7f2;

    --sidebar-item: #0B138B;
    --sidebar-item-active: #3F75FC;
    --sidebar-item-hover: #3F75FC;
    --sidebar-item-background-on: #F3F5FF;

    --button-outlined: var(--bulma-primary);
    --button-outlined-border: var(--bulma-primary);
    --button-outlined-hover-bg: transparent;


    --button-outlined-border-hover: var(--bulma-link);
    --button-outlined-hover: var(--bulma-link);

    --tab-navigation-bg: #e2e5f2;
    --tab-btn-text: #3c4c94;
    --tab-btn-active: #0B138B;

    --skeleton-color-main: #d9d0e9a1;
    --clean-glass-bg: linear-gradient(to bottom right, #f6f8ffb3, transparent), url(../assets/images/nnnoise-blue.svg);
    --clean-glass-border: rgba(255, 255, 255, 0.782);

    --work-session-fullscreen: rgba(230, 240, 255, 0.854);
    --break-session-fullscreen: rgb(161, 255, 199);

    --board-item-bg-hover: #f9f9f9;

    --edit-button-bg: #F3F5FF;
    --edit-button-bg-hover: #e6e9ed;

    --shadow: rgba(8, 11, 154, 0.2);

    --modal-card-head-foot: #F3F5FF;


    --transparent: #00000014;
    --contact-gradient1: #f5f7fa;
    --contact-gradient2: #c3cfe2;

    --contact-img-source: url(../assets/images/undraw_personal.svg);

    --work-session-color: rgba(230, 240, 255, 0.7);
    --break-session-color: rgba(230, 255, 240, 0.7);

    --logo-img-source: url(../assets/images/logo.svg);
    --logo-img-source-mobile: url(../assets/icons/icon.svg);
}

:root[data-theme='dark'] {
    --radius: 0.7rem;
    --sidebar-default-width: 380px;
    --left-sidebar-open-width: 260px;
    --left-sidebar-collapsed-width: 70px;
    --navbar-height: 65px;

    /* bulma */
    --bulma-primary: white;
    --bulma-secondary: #262626;
    --bulma-primary-dark: #E2E2E2;
    --bulma-link-hover: #E2E2E2;
    --bulma-danger: #731B1B;
    --bulma-danger-dark: #6d1224;
    --bulma-light-gray: #6DC282;
    --bulma-success: #2f6f3f;
    --bulma-success-dark: #1e4f2b;

    --bulma-link: #A2A2A2;

    --white: #080808;
    --accent: #262626;
    --black: white;
    --background1: #0A0A0A;
    --background2: #0A0A0A;
    --progress-bg-color: #212121;
    --background3: #252525;
    --background4: #838383;

    --scrollbar-color: #9598b6;
    --text-primary: white;
    --text-secondary: #A2A2A2;
    --item-primary: #A2A2A2;
    --item-secondary: #A2A2A2;

    --sidebar-item: rgba(255, 255, 255, 0.7);
    --sidebar-item-active: white;
    --sidebar-item-hover: white;
    --sidebar-item-background-on: #262626;

    --button-outlined: white;
    --button-outlined-border: #262626;
    --button-outlined-border-hover: #262626;

    --button-outlined-hover-bg: #262626;
    --button-outlined-hover: white;

    --tab-navigation-bg: #181818;
    --tab-btn-text: #A3A3A3;
    --tab-btn-active: #0A0A0A;

    --skeleton-color-main: #272727;
    /* gradient */
    --clean-glass-bg: linear-gradient(to bottom right, #0B0B0B, transparent), url(../assets/images/nnoise.svg);
    --clean-glass-border: rgba(39, 39, 39, 0.782);

    --work-session-fullscreen: linear-gradient(to bottom right, #3c3941, transparent), url(../assets/images/nnnoise1.svg);
    --break-session-fullscreen: linear-gradient(to bottom right, #374035, transparent), url(../assets/images/nnnoise2.svg);


    --board-item-bg-hover: #1a1a1a;

    --edit-button-bg: #2a2a2a;
    --edit-button-bg-hover: rgb(77, 77, 77);

    --shadow: rgba(137, 137, 137, 0.2);
    --modal-card-head-foot: #171717;

    --transparent: #ffffff14;
    --contact-gradient1: #232323;
    --contact-gradient2: #0B0B0B;
    --contact-img-source: url(../assets/images/undraw_personal-white.svg);


    --work-session-color: rgba(23, 23, 23, 0.427);
    --break-session-color: rgba(3, 33, 15, 0.524);

    --logo-img-source: url(../assets/images/logo_white.svg);
    --logo-img-source-mobile: url(../assets/icons/icon_white.svg);

}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
option,
select,
a:not(.button):not(.has-text-light):not(.left-nav-item):not(.mx-3),
li,
p {
    /* Inter, Inter Fallback */
    font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
    color: var(--bulma-primary) !important;
}
strong
{
    color: var(--bulma-primary) !important;
}


.is-heavy {
    font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

.is-thin {
    font-family: "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}


.is-black-color {
    color: var(--black) !important;
}

.has-icons-left .icon {
    color: black !important;
}

.add-shadow {
    box-shadow: rgba(60, 64, 67, 0.08) 0px 10px 10px 0px;
}

.left-nav-header {
    min-height: fit-content !important;

    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;

    padding-left: 1rem !important;
    padding-right: 1rem !important;

    /* Center */
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-direction: column;

    /* cursor */
    cursor: pointer;
    border-bottom: 1px solid var(--accent);
    margin-bottom: 1rem;

    gap: 0.5rem;
}

.left-nav-header:hover h1 {
    color: var(--bulma-primary-dark) !important;
}

/* Left Navigation Sidebar Styles */
.left-nav-sidebar {
    height: 100vh;
    width: var(--left-sidebar-open-width);
    position: fixed;
    z-index: 23;
    left: 0;
    background-color: var(--background1);
    overflow-x: hidden;
    border-right: 1px solid var(--accent);
    padding-top: 10px;

}

.left-navbar-elements-holder {
    display: flex;
    flex-direction: column;
    padding: .25rem !important;
    gap: .25rem !important;
}

.left-nav-sidebar .left-nav-footer {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background-color: var(--background1);

    border-top: 1px solid var(--accent);
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.75rem;
}

.logout-btn {
    border: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--bulma-primary) !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
}


.left-nav-sidebar .left-nav-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.left-nav-footer-loading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.profile-info-holder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    /* Allow flex items to shrink below their content size */
    max-width: calc(100% - 2rem);
    /* Leave space for logout button */
}

.profile-info {
    flex: 1;
    min-width: 0;
    /* Allow text to truncate */
    overflow: hidden;
}

.profile-info div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25rem !important;
}

.left-nav-divider {
    height: 1px;
    width: 100%;
    background-color: var(--accent);
    margin: 0.2rem 0;
}

.left-nav-sidebar .left-nav-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 2rem;
    border-radius: 16px;
    text-align: left;

    gap: 0.75rem;
    overflow: hidden;

    padding: .7rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;

    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25rem;
    color: var(--sidebar-item);
}

.left-nav-sidebar .left-nav-item:hover {
    background-color: var(--sidebar-item-background-on);
    color: var(--sidebar-item-hover) !important;
}

.left-nav-sidebar .left-nav-item.active {
    background-color: var(--sidebar-item-background-on);
    color: var(--sidebar-item-active) !important;
}


.left-nav-sidebar .left-nav-icon {
    min-width: var(--left-sidebar-collapsed-width);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
}

.left-nav-sidebar .left-nav-item:hover .left-nav-icon {
    color: white !important;
}


/* Main Content Area Shifting */
.main-page-content {
    margin-left: var(--left-sidebar-open-width);
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 3rem;
    padding-top: 2rem;
}

.main-page-content .section {
    padding-top: 0.5rem !important;
}

.main-page-content.extra {
    margin-left: calc(var(--left-sidebar-open-width) + 30px);

}

.main-page-content.transitions-enabled {
    transition: margin-left 0.25s ease-in-out;
}

.main-page-content.no-transition-on-load,
.main-page-content.no-transition-on-load.shifted {
    transition: none !important;
}


/* .main-page-content.shifted {
    margin-left: var(--left-sidebar-open-width);
} */

#calendar {
    min-height: 500px;
}

.add-button {
    /* align to right */
    padding-top: 0.75rem;
}

/* --- Styles for Assignment Page --- */
.attachments-list .attachment-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.attachments-list .attachment-item:hover {
    box-shadow: 0 4px 8px var(--shadow);
    transform: translateY(-2px);
}

.attachments-list .attachment-thumbnail {
    width: 70px;
    height: 50px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 4px;
    border: 1px solid #eee;
    flex-shrink: 0;
    display: block;
}

.attachments-list .attachment-thumbnail-placeholder {
    width: 70px;
    height: 50px;
    margin-right: 12px;
    border-radius: 4px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    border: 1px solid #ced4da;
    flex-shrink: 0;
    word-break: break-all;
    padding: 2px;
}

.attachments-list .attachment-info {
    overflow: hidden;
}

.attachments-list .attachment-info a {
    font-weight: 600;
    color: #3273dc;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachments-list .attachment-info a:hover {
    text-decoration: underline;
    color: #275fb3;
}

.attachments-list .attachment-info span {
    font-size: 0.85em;
    color: #6c757d;
    display: block;
    margin-top: 2px;
}

@keyframes skeleton-shine {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background-color: var(--skeleton-color-main);
    background-image: linear-gradient(90deg, #e2e8f029, #f8fafc68, #e2e8f02b);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    border-radius: 4px;
    animation: skeleton-shine 1.5s infinite;
}

.skeleton-title {
    height: 48px;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-subtitle {
    height: 28px;
    width: 40%;
}

.skeleton-tags-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.skeleton-tag {
    height: 32px;
    width: 120px;
    border-radius: 1rem;

}

.skeleton-heading {
    height: 28px;
    width: 30%;
    margin-bottom: 1rem;
}

.skeleton-paragraph {
    height: 16px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-paragraph.short {
    width: 90%;
}

.skeleton-attachment {
    height: 75px;
    width: 100%;
    margin-bottom: 0.75rem;
}

/* Plan Card Skeleton Styles */
.skeleton-plan-name {
    height: 1.1rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.skeleton-usage-text {
    height: 0.9rem;
    border-radius: 3px;
    margin-bottom: 0.2rem;
}

.skeleton-progress-bar {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.skeleton-upgrade-btn {
    height: 1.1rem;
    width: 80px;
    border-radius: 4px;
}


/* Todo Board Skeleton Styles */
.skeleton-board-list {
    width: 300px;
    min-height: 400px;
    border-radius: 16px;
    padding: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.skeleton-list-title {
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.skeleton-add-card-btn {
    height: 2.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.todo-loading-container {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
}

/* --- Summary Container Style --- */
#summary-container {
    transition: opacity 0.5s ease-in-out;
}

/* Style for the loading spinner in the button */
.button.is-loading::after {
    border-color: #fff #fff #fff transparent !important;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

.button.is-ai {
    padding: 0.5em 1em;
    border-radius: 999px;
    border: 3px solid transparent;
    color: var(--black);
    font-weight: 600;

    /* Define layered backgrounds for animation */
    background-image:
        linear-gradient(var(--background, var(--white)), var(--background, var(--white))),
        linear-gradient(0deg, #4f46e5, #a855f7, #ec4899);
    background-size: 100% 100%, 100% 200%;
    background-position: 0 0, 0 0%;
    /* Start lower on the gradient */
    background-repeat: no-repeat;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    /* No transition here, we will use animation */
}

.button.is-ai:hover {
    /* Apply the infinite animation on hover */
    animation: moveBorderGradient 0.5s ease-in-out infinite alternate;
}

.button.is-ai .icon {
    background: linear-gradient(0deg, #4f46e5, #a855f7, #ec4899);
    background-size: 100% 200%;
    background-position: 0 00%;
    /* Start lower on the gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* No transition here, we will use animation */
}

.button.is-ai:hover .icon {
    /* Apply the infinite animation on hover */
    animation: moveIconGradient 0.5s ease-in-out infinite alternate;
}

/* Keyframes for the border animation */
@keyframes moveBorderGradient {
    from {
        background-position: 0 0, 0 0%;
    }

    to {
        background-position: 0 0, 0 100%;
    }
}

/* Keyframes for the icon animation */
@keyframes moveIconGradient {
    from {
        background-position: 0 0%;
    }

    to {
        background-position: 0 100%;
    }
}

/* Cleanup old styles */
.button.is-ai .gradient-border {
    all: unset;
}





/* Difficulty Stars Styling */
.difficulty-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 5px;
}

.star {
    font-size: 16px;
    color: var(--bulma-secondary);
    transition: color 0.3s ease;
    cursor: default;
}

.star.filled {
    color: var(--bulma-primary);
}

.star.loading {
    animation: starPulse 1.5s ease-in-out infinite;
    color: var(--bulma-link);
}

@keyframes starPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Stagger the loading animation for each star */
.star:nth-child(1).loading {
    animation-delay: 0s;
}

.star:nth-child(2).loading {
    animation-delay: 0.2s;
}

.star:nth-child(3).loading {
    animation-delay: 0.4s;
}

.star:nth-child(4).loading {
    animation-delay: 0.6s;
}

.star:nth-child(5).loading {
    animation-delay: 0.8s;
}

/* Time Estimation Styling */
.time-estimation {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
}

.time-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.time-icon.loading {
    animation: hourglassRotate 2s linear infinite;
}

.custom-background {
    background-color: var(--background2);
    background-size: cover;
}

.glass {
    /* From https://css.glass */
    background: rgba(19, 7, 91, 0.27);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(13.3px);
    -webkit-backdrop-filter: blur(13.3px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass2 {
    /* From https://css.glass */
    background: var(--background1);
    border-radius: 16px;
    box-shadow: 0 4px 17px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.time-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.time-text.loading {
    color: #3273dc;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes hourglassRotate {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Mini Calendar Styles for Workload Forecast */
.mini-calendar {
    position: relative;
    padding-bottom: 15px;
}

.calendar-week {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
    justify-content: center;
}

.calendar-day {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 80px;
    min-width: 65px;
    flex: 1 0 calc(25% - 8px);
    /* 4 days per row on small screens */
    max-width: calc(25% - 8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

@media screen and (min-width: 768px) {
    .calendar-day {
        flex: 1 0 calc(14.28% - 8px);
        /* 7 days per row on larger screens */
        max-width: calc(14.28% - 8px);
    }
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd 0%, #fcf4fb 100%) !important;
    border-color: var(--bulma-link) !important;
    box-shadow: 0 0 0 1px rgba(33, 150, 243, 0.3);
}

.calendar-day.has-work:not(.today) {
    border-color: var(--bulma-primary) !important;
}


.day-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.day-name {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6c757d;
}

.calendar-day.has-work .day-name {
    color: var(--bulma-primary);
}

.calendar-day.has-work .day-date {
    color: var(--bulma-primary);
}


.calendar-day.today .day-date {
    color: var(--bulma-link);
}

.calendar-day.today .day-name {
    color: var(--bulma-link);
}

.calendar-day.today .work-time {
    color: var(--bulma-link) !important;
}

.day-work {
    margin-top: auto;
}

.work-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bulma-primary);
    background: rgba(0, 0, 0, 0.041);
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
}

.no-work {
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 400;
}

#workload-forecast-card {
    display: flex;
    flex-direction: column;
}

#workload-forecast-content {
    flex-grow: 1;
    display: flex;
}

/* Workload Summary Enhanced Styles */
.workload-summary {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.empty-state {
    padding: 2rem 1rem;
}

.workload-stats .level {
    margin-bottom: 0;
}

.workload-stats .heading {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-breakdown {
    margin-top: auto;
    min-height: 150px !important;
}

.daily-breakdown .subtitle {

    /* make it at start */
    justify-content: baseline !important;
    color: var(--bulma-primary);
    font-weight: 600;
}

/* Assignment Count with Animated Emoji */
.assignment-count-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    min-width: 110px;
    min-height: 37px;
}

.workload-divider {
    height: 1px !important;
    width: 100%;
    background-color: var(--accent);
    margin: 0.5rem 0;
}

.assignment-count-number {
    color: var(--bulma-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1;
}



.assignment-count-lottie {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}


.assignment-count-container {
    background: transparent;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--bulma-primary);

}

/* Animations */
@keyframes emergencyPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.7);
    }
}

/* Due Date Pin Styles */
.due-date-pin {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.4);
}

.calendar-day {
    position: relative;
}

/* Tooltip Styles (Now handled by Bulma Tooltip library) */

.tooltip-assignment {
    margin-bottom: 4px;
    font-weight: 600;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .calendar-week {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .calendar-day {

        min-height: 80px;
    }

    .day-name {
        font-size: 0.65rem;
    }

    .day-date {
        font-size: 0.8rem;
    }

    .work-time {
        font-size: 0.6rem;
    }
}

/* Completion Button Styles */
.completion-checkbox {
    border: 2px solid #dbdbdb !important;
    background-color: var(--white) !important;
    color: var(--black) !important;
    transition: all 0.2s ease;
}

.completion-checkbox:hover {
    border-color: var(--bulma-primary) !important;
    color: var(--black) !important;
}




.completion-checkbox.completed {
    background-color: var(--bulma-success) !important;
    border-color: var(--bulma-success) !important;
    color: var(--white) !important;
}

.completion-checkbox.completed:hover {
    background-color: var(--bulma-success-dark) !important;
    border-color: var(--bulma-success-dark) !important;
    color: var(--white) !important;
}

.completion-checkbox input[type="checkbox"] {
    display: none;
}

.completion-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.completion-checkbox .completion-icon {
    color: #6c757d;
}

.completion-checkbox.completed .completion-icon {
    color: white;
}

.completion-text {
    font-weight: 600;
    transition: color 0.2s ease;
}

.completion-checkbox.completed .completion-text {
    color: white;
}

/* Consistent Button Styling */
.button:not(.is-small):not(.is-rounded):not(.is-medium) {
    border-radius: 50px !important;
    font-weight: 600;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.button:not(.is-small):not(.ignore):not(.is-rounded):not(.is-medium):not(#cancel-edit-card-btn):not(#delete-card-btn) {
    min-width: 120px;
}

.burger {
    color: var(--bulma-primary) !important;
    border-radius: 16px !important;
}

.burger:focus {
    outline: none !important;
    box-shadow: none !important;
}

.burger:hover {
    background-color: var(--transparent) !important;
}

.burger:active {
    background-color: var(--transparent) !important;
}

.button.is-primary:hover {
    background-color: var(--bulma-primary-dark) !important;
}

.button.is-primary {
    background-color: var(--bulma-primary) !important;
    color: var(--white);
}

.button.is-danger {
    background-color: var(--bulma-danger) !important;
    color: white !important;
}

.button.is-danger:hover {
    /* make the same color but dimmer */
    background-color: var(--bulma-danger-dark) !important;
}

.button.is-success {
    background-color: var(--bulma-success) !important;
    color: white !important;
}

.tag.is-success {
    background-color: var(--bulma-success) !important;
    color: white !important;
}



/* Material Icons Styling */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* AI Solution Button Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Toast Notification Styles */
.completion-toast {
    animation-fill-mode: both;
    color: white !important;
}

.completion-toast .material-symbols-outlined {
    vertical-align: middle;
    font-size: 1.2rem;
}


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.is-primary {
    background-color: var(--bulma-primary) !important;
    color: var(--white) !important;
}


.has-text-primary {
    color: var(--text-primary) !important;
}

.has-text-secondary {
    color: var(--text-secondary) !important;
}

.has-text-link {
    color: var(--bulma-link) !important;
}

.has-text-danger {
    color: var(--bulma-danger) !important;
}

.has-text-white {
    color: var(--white) !important;
}

.has-text-success {
    color: var(--bulma-success) !important;
}

.has-text-warning {
    color: var(--bulma-link) !important;
}

/* --- Priority Board Styles --- */
.priority-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    min-height: 300px;
    margin-top: 1rem;
}

.priority-column {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px var(--shadow) !important
}

.priority-column-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bulma-primary);
    margin-bottom: 0.75rem !important;
}


.task-list {
    flex-grow: 1;
    min-height: 200px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.task-list.drag-over {
    background-color: #e9e9e961;
    border: 2px dashed #cccccc;
}

.task-item {
    background-color: var(--white);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: grab;
    border-left: 4px solid var(--bulma-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.task-item:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.task-item.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
    background: #f8f8f8;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.task-item-title {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--bulma-primary) !important;
}

.task-item-due {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
}

[data-column-id="must-do"] .task-item {
    border-left-color: var(--bulma-danger);
}

[data-column-id="should-do"] .task-item {
    border-left-color: #ffdd57;
}

[data-column-id="can-wait"] .task-item {
    border-left-color: #3e8ed0;
}

@media screen and (max-width: 768px) {
    .priority-board {
        grid-template-columns: 1fr;
    }
}

/* --- Revision Timer Styles --- */
#timer-display #timer-clock {
    font-family: 'TildaSansLight', 'Courier New', monospace;
    letter-spacing: 2px;
    color: var(--bulma-primary);
    transition: color 0.5s ease;
}

#timer-display.is-break #timer-clock {
    color: var(--bulma-success);
}

/* --- To-Do Board Styles --- */
.board-container {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
    min-height: 70vh;
    align-items: flex-start;

    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.project-header {
    display: flex;
    align-items: center;
}

.board-list {
    flex-shrink: 0;
    width: 300px;
    background-color: #f4f5f7;
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

.list-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.card-container {
    flex-grow: 1;
    min-height: 20px;
    padding: 0 0.5rem 0.5rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    overflow-y: auto;
}

.card-container.drag-over {
    background-color: #e6e9ed;
}



.project-header {
    display: flex;
    align-items: center;
}

#project-title-display {
    margin-bottom: 0 !important;
}

#project-title-button {
    padding: 5px !important;
    padding-right: 15px !important;
    padding-left: 10px !important;
}


.board-list {
    flex-shrink: 0;
    width: 300px;
    background-color: #f4f5f7;
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.card-container {
    flex-grow: 1;
    min-height: 20px;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    overflow-y: auto;
}

.card-container.drag-over {
    background-color: #e6e9ed;
}

.list-actions {
    padding-top: 0.75rem;
}

.add-list-container {
    flex-shrink: 0;
    width: 300px;
}

/* --- Card Styles (Updated) --- */
.board-card {
    background-color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(9, 30, 66, .15);
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
}

.board-card:hover {
    background-color: var(--board-item-bg-hover);
}

.board-card.is-completed {
    opacity: 0.6;
}

.board-card.is-completed .card-content-wrapper p {
    text-decoration: line-through;
    color: #7a7a7a;
}

.board-card.is-dragging {
    transform: rotate(3deg);
    opacity: 0.9;
    box-shadow: 0 5px 15px rgba(9, 30, 66, .25);
}

.card-content-wrapper {
    flex-grow: 1;
}

.card-labels {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.card-label {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    color: white;
}

.card-checkbox {
    flex-shrink: 0;
}

/* --- Inline Form Styles --- */
.add-card-form,
#add-list-form {
    background-color: var(--clean-glass-bg) !important;
    border: 2px solid var(--clean-glass-border) !important;
    padding-top: 5px;
}

/* --- AI Modal Styles --- */
.ai-assignment-list {
    max-height: 400px;
    overflow-y: auto;
}

.ai-assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    border-radius: 16px;
    transition: background-color 0.2s ease, border-color 0.2s ease;

}

.ai-assignment-item:hover {
    background-color: var(--modal-card-head-foot);
}

.ai-assignment-title {
    font-weight: 600;
    color: var(--bulma-primary);
}

.ai-assignment-due {
    font-size: 0.8rem;
    color: var(--bulma-link);
}

/* --- To-Do List Header Enhancements --- */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.25rem 0.5rem 0.25rem;
    position: relative;
    cursor: default;
}

.list-header .list-title {
    font-weight: 600;
    color: #172b4d;
    flex-grow: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.list-title {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}



.list-header .list-title-input {
    width: 100%;
    font-weight: 600;
    border: 2px solid #3273dc;
    box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.2);
}

.list-options-dropdown .dropdown-menu {
    min-width: 150px;
}

.dropdown-menu {
    margin-top: 5px !important;
    background-color: var(--white) !important;
    box-shadow: 0px 0px 20px var(--shadow) !important;
    border-radius: 8px !important;
}

.dropdown-content {
    background-color: var(--white) !important;

}

.dropdown-item.is-active {
    background-color: var(--accent) !important;
    color: var(--bulma-primary) !important;
}

.dropdown-item:hover:not(.is-active) {
    background-color: var(--accent) !important;
    color: var(--bulma-primary) !important;
}

.add-card-btn-show-form {
    background-color: transparent !important;
    color: #5e6c84 !important;
    justify-content: flex-start !important;
    /* Align text to the left */
    min-width: unset !important;
    /* Allow it to be natural width */
    padding: 0.5rem !important;
    padding-left: 0.75rem !important;
    border-radius: 10px !important;
    font-weight: 400 !important;
}

.add-card-btn-show-form:hover {
    background-color: var(--background2) !important;
    color: var(--bulma-primary) !important;
}

/* "Add another list" container styling */
.add-list-container .button#add-list-btn {
    background-color: var(--transparent) !important;
    color: var(--black) !important;
    justify-content: flex-start !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.add-list-container .button#add-list-btn:hover {
    background-color: var(--transparent) !important;
}

/* The actual form that appears */
#add-list-form {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Inline form for adding a new card */
.add-card-form {
    margin-top: 0.5rem;
}

.add-card-form textarea {
    background-color: var(--white);
    border-radius: 5px !important;
    border: 1px solid #dfe1e6;
    color: var(--black);
    box-shadow: 0 1px 2px rgba(9, 30, 66, .15);
    min-height: 80px;
    margin-bottom: 0.5rem;
}

/* the placeholder */
.add-card-form textarea::placeholder {
    color: #5e6c84;
    opacity: 0.6;
}

.add-card-form textarea:focus {
    border-color: var(--bulma-link);
    box-shadow: 0 0 0 1px var(--bulma-link);
}

.add-card-form .button,
#add-list-form .button {
    min-width: unset !important;
    /* Allow small buttons */
    border-radius: 3px !important;
}

/* --- Enhanced Card Editing --- */
.board-card {
    position: relative;
}

/* The edit icon that appears on hover */

.is-outlined-light {
    background-color: transparent !important;
    border: 1px solid color-mix(in srgb, var(--bulma-primary) 30%, transparent) !important;
    color: var(--bulma-primary) !important;
}

.is-outlined-light:hover {
    background-color: var(--background2) !important;
    border: 1px solid var(--bulma-link) !important;
    color: var(--bulma-link) !important;
}

.list-options-btn,
.edit-card-btn,
.edit-list-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    border-radius: 6px !important;
    margin-right: 0.5rem;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    opacity: 1;
    position: static;
    transition: background 0.2s, color 0.2s;

    background-color: var(--edit-button-bg) !important;
    color: var(--bulma-primary) !important;
}

.list-options-btn:hover,
.edit-card-btn:hover,
.edit-list-btn:hover {
    background: var(--edit-button-bg-hover) !important;
    color: var(--bulma-primary);
}

/* --- Edit Card Modal --- */
#edit-card-modal .textarea {
    min-height: 100px;
}

#edit-card-modal .label-manager-input {
    margin-bottom: 0.5rem;
}

#edit-card-modal .modal-card {
    width: 90%;
    max-width: 600px;
}

.modal-card {
    border-radius: 16px !important;
    box-shadow: 0px 0px 20px var(--shadow) !important;
}

.modal-card-head {
    background-color: var(--modal-card-head-foot);
    border-radius: 0px !important;
}


/* --- Card Completion Animation --- */
.board-card.is-completed .card-content-wrapper p {
    position: relative;
    color: #7a7a7a;
    transition: color 0.4s ease;
}

.board-card.is-completed .card-content-wrapper p::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2%;
    width: 0;
    height: 2px;
    background: #7a7a7a;
    animation: strike-through 0.4s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}


.project-selector-container {
    position: relative;
}



#project-selector-btn {
    background-color: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0.5rem;
    /* Space for the chevron */
}

#project-selector-btn:hover,
#project-selector-btn:focus {
    background-color: #f5f5f5;
}

#current-project-name {
    max-width: 250px;
    /* Prevent very long names from breaking layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #363636;
}

#project-dropdown-menu {
    min-width: 280px;
}

#project-list-dropdown-content .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#project-list-dropdown-content .project-delete-btn {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    display: none;
    /* Hidden by default, shown on hover */
}

#project-list-dropdown-content .dropdown-item:hover .project-delete-btn {
    display: inline-block;
}

#project-list-dropdown-content .project-delete-btn:hover {
    opacity: 1;
    color: #ff3860;
}

#add-new-project-dropdown-btn .icon {
    margin-right: 0.5rem;
}

/* --- "No Projects" State --- */
#no-projects-message {
    border: 2px dashed #dbdbdb;
    border-radius: var(--radius);
    background-color: #f9f9f9;
}

.project-header {
    display: flex;
    align-items: center;
    /* Vertically align items */
}

/* --- "No Projects" State --- */
#no-projects-message {
    border: 2px dashed #dbdbdb;
    border-radius: var(--radius);
    background-color: #f9f9f9;
    margin-top: 1rem;
    /* Add some space above it */
}

.board-list.is-list-dragging {
    opacity: 0.6;
    transform: scale(1.01) rotate(1deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: grabbing !important;
}


/* Optional: Style for the board when a list is being dragged over it */

.board-container.list-drop-target-active {
    /*background-color: #e6f7ff; */
}

.clean-glass {
    background: var(--clean-glass-bg);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.006);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 2px solid var(--clean-glass-border);

}


.hover-glass {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.006);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hover-glass:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);

}

.is-active:not(.custom-dropdown):not(.list-options-btn) {
    color: white !important;
}


.button.special {
    background: rgba(255, 255, 255, 0.27);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(13.3px);
    -webkit-backdrop-filter: blur(13.3px);
    border: 1px solid rgba(255, 255, 255, 0.25);

    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.button.special:hover {
    background: rgba(100, 149, 237, 0.3);
    /* light blue tint */
    border-color: rgba(100, 149, 237, 0.5);
    /* match border to tint */
}

.is-outlined-primary:not(.is-loading) {
    background-color: transparent !important;
    border: 1px solid var(--button-outlined-border);
    color: var(--button-outlined);
}

.is-outlined-primary:hover:not(.tag) {
    background-color: var(--button-outlined-hover-bg) !important;
    border: 1px solid var(--button-outlined-border-hover) !important;
    color: var(--button-outlined-hover) !important;
    /* move left 1px */
}

.button.is-outlined-primary:focus {
    background-color: var(--button-outlined-hover-bg) !important;
    border: 1px solid var(--button-outlined-border-hover) !important;
    color: var(--button-outlined-hover) !important;
}



.button:focus {
    box-shadow: none !important;
}


.is-outlined-primary.is-loading::after {
    border-color: transparent transparent var(--bulma-link) var(--bulma-link) !important;
}

.tag {
    border-radius: 15px !important;
}

/* Custom styles for smooth dropdown animation */
#timer-settings-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-bottom 0.4s ease-in-out;
}

#timer-settings-container.is-open {
    max-height: 200px;
    /* Adjust if content is taller */
    opacity: 1;
    margin-bottom: 1.5rem;
    /* Replicates Bulma's .mb-4 */
}

/* Custom styles for custom timer inputs animation */
#custom-inputs {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

#custom-inputs.is-visible {
    max-height: 100px;
    /* Adjust if content is taller */
    opacity: 1;
}

/* Custom Pill-Style Radio Buttons */
.custom-radio-group .radio {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    /* Pill shape */
    margin: 0 0.25rem !important;
    /* Override Bulma's margin */
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.custom-radio-group .radio input[type="radio"] {
    accent-color: var(--bulma-primary);
}

/* Style the text inside the label */
.custom-radio-group .radio span {
    margin-left: 0;
    font-weight: 500;
}

/* When the radio is checked */
.custom-radio-group .radio input[type="radio"]:checked+span {
    color: var(--bulma-primary, #00d1b2);
}

.custom-radio-group .radio:has(input[type="radio"]:checked) {
    background-color: var(--background2, #f0f2f5);
    border-color: var(--bulma-primary-light-10, #e6f9f7);
}


/* Priority Board Drag and Drop */
/* ... existing code ... */

/* Ensure tooltips are visible above other elements */
.bulma-tooltip-container {
    z-index: 100 !important;
}

.calendar-day[data-tooltip]:hover::before,
.calendar-day[data-tooltip]:hover::after,
.calendar-day.has-tooltip-active::before,
.calendar-day.has-tooltip-active::after {
    z-index: 99 !important;
    overflow: visible !important;
}

/* Ensure Lottie animations are visible */
lottie-player {
    display: inline-block;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.contact-button {
    position: fixed;
    bottom: 30px;
    right: 40px;
    background: linear-gradient(135deg, #0B138B, #1a237e, #3949ab);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 18px 28px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 12px 30px rgba(11, 19, 139, 0.4),
        0 0 0 0 rgba(11, 19, 139, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    overflow: hidden;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #1565c0, #0B138B, #5c6bc0);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-button:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 15px 30px rgba(11, 19, 139, 0.6),
        0 0 15px rgba(11, 19, 139, 0.9);
}

.contact-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.contact-button:hover .contact-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Plan Section Styling */
.left-nav-plan-section {
    padding: 1rem;
    margin-bottom: 1rem;
    /* put it in bottom of the left-nav-sidebar */
    position: absolute;
    bottom: 97px;
    width: 100%;
}

.plan-card {
    background-color: var(--white);
    border: 1px solid var(--accent);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: rgba(60, 64, 67, 0.04) 0px 4px 4px 0px;
}

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-icon:not(.premium-icon) {
    color: var(--bulma-primary);
    font-size: 1rem;
}

.plan-icon.premium-icon {
    color: var(--bulma-primary);
}

.plan-name {
    font-weight: 600;
    color: var(--bulma-primary) !important;
    font-size: 0.9rem;
}

.plan-name.premium-plan {
    background: var(--bulma-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.plan-name.premium-plan i {
    background: var(--bulma-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.has-text-black {
    color: var(--black) !important;
}

.upgrade-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--bulma-primary);
    font-size: 0.75rem;
    text-decoration: none;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.upgrade-btn:hover {
    color: var(--bulma-primary-dark);
}

.upgrade-btn i {
    font-size: 0.65rem;

}

.plan-usage {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--bulma-primary);
}

.reset-days-container {
    font-size: 0.75rem;
    color: var(--bulma-primary);
}

.usage-progress {
    width: 100%;
}


.pop-on-hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pop-on-hover:hover {
    box-shadow: 0 4px 20px var(--shadow) !important;
    transform: translateY(-5px);
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--progress-bg-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--bulma-primary) !important;
    border-radius: 9999px;
    transition: width 0.5s ease-in-out;
}

.usage-remaining {
    font-size: 0.75rem;
    color: var(--bulma-primary);
}

.has-text-success {
    color: var(--bulma-success) !important;
}

.notification.is-danger {
    background: var(--bulma-danger) !important;
    color: var(--white) !important;
}

.notification.is-success {
    background: var(--bulma-success) !important;
    color: var(--white) !important;
}

.notification.is-info {
    background: var(--bulma-primary) !important;
    color: var(--white) !important;
}

.notification.is-link {
    background: var(--bulma-link) !important;
    color: var(--white) !important;
}

.is-size-7 {
    font-size: 0.875rem !important;
}

.is-size-8 {
    font-size: 0.75rem !important;
}

.is-size-9 {
    font-size: 0.625rem !important;
}

.p-8 {
    padding: 3rem !important;
}

.has-text-grey-dark {
    color: #252525 !important;
}

#revision-timer-card {
    /* Existing element, make sure it allows for centering */
    box-shadow: 0px 0px 30px 1px color-mix(in srgb, var(--shadow) 20%, white 5%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease-in-out;
    /* For dynamic background */
}

.timer-wrapper {
    position: relative;
    width: 280px;
    /* Increased from 240px */
    height: 280px;
    /* Increased from 240px */
    margin-bottom: 1.5rem;
    /* Space below timer */
}

.progress-ring {
    transform: rotate(-90deg);
    /* Start progress from the top */
}

.progress-ring-bg {
    fill: none;
    stroke: var(--background1);
    /* Light grey background for the ring */
    stroke-width: 12;
}

.progress-ring-fg {
    fill: none;
    stroke: var(--bulma-primary);
    /* Primary color for progress */
    stroke-width: 12;
    stroke-linecap: round;
    /* Rounded ends for the progress part */
    transition: stroke-dashoffset 0.35s linear, stroke 0.35s linear;
}

.timer-display-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#timer-status {
    color: var(--bulma-link);
    /* Default status color */
    transition: color 0.5s ease-in-out;
}

#timer-clock {
    transition: color 0.5s ease-in-out;
    margin-bottom: 0 !important;
    /* Override Bulma's title margin */
    line-height: 1;
    /* Ensure tight fit */
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    /* Increased font size */
}

/* Dynamic Backgrounds & Colors for Timer States */
#revision-timer-card.is-work-session,
#revision-timer-card.is-work-session:fullscreen {
    background-color: var(--work-session-fullscreen) !important;
}

#revision-timer-card.is-work-session #timer-clock {
    color: var(--bulma-primary);
}

#revision-timer-card.is-work-session #timer-status {
    color: var(--bulma-link);
}

#revision-timer-card.is-work-session .progress-ring-fg {
    stroke: var(--bulma-primary);
}


#revision-timer-card.is-break-session,
#revision-timer-card.is-break-session:fullscreen {
    background-color: var(--break-session-fullscreen) !important;
}

#revision-timer-card.is-break-session #timer-clock {
    color: var(--bulma-success);
}

#revision-timer-card.is-break-session #timer-status {
    color: var(--bulma-success);
}

#revision-timer-card.is-break-session .progress-ring-fg {
    stroke: var(--bulma-success);
}

.session-stats {
    color: var(--button-outlined-border);
    font-size: 0.9rem;
}

.session-stats span {
    color: var(--button-outlined-border) !important;
    /* Override general p color for specific stats */
    font-weight: 500;
}

#revision-timer-card {
    /* Ensure this is relative for the overlay to position correctly */
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#revision-timer-card {
    /* Ensure it's a flex container */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Important for the slide/reveal effect */
}

#main-timer-area {
    flex-grow: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 100%;
    /* Ensure it takes full width */
}

hr {
    background-color: var(--white) !important;
}

.settings-are-open #main-timer-area {
    opacity: 0.3;
    /* Fade out the main timer when settings are open */
    transform: scale(0.95);
    /* Slightly shrink */
}

.integrated-settings-area {
    width: 320px;
    max-width: 80%;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0s linear 0.4s;
    z-index: 20;
    border-radius: 0 1rem 1rem 0;
    border-left: 1px solid rgba(255, 255, 255, 0.26);
}

.integrated-settings-area.is-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0s linear 0s;
}

.integrated-settings-area .settings-content {
    padding: 1.5rem;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.integrated-settings-area .label.is-small {
    color: #4a4a4a;
    font-weight: 600;
    /* Make labels slightly bolder */
    margin-bottom: 0.3rem;
}

.focus-mode-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.dropdown-divider {
    margin: 0;
    padding: 0;

}

.modal-card-foot {
    background-color: var(--modal-card-head-foot) !important;
}

.focus-mode-buttons .button {
    border-radius: 50px !important;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    background-color: #fff;
    color: #4a4a4a;
    border: 1px solid #dbdbdb;
}

.focus-mode-buttons .button:hover:not(.is-active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.focus-mode-buttons .button.is-active {
    background-color: var(--bulma-primary) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 10px rgba(11, 19, 139, 0.2) !important;
    border-color: var(--bulma-primary) !important;
    transform: translateY(-1px);
}


::-webkit-scrollbar-track {
    background: var(--background2);
    border-radius: 10px;
    margin: 2px 2px 2px 7px;
    /* 5px left margin */
}

::-webkit-scrollbar-track:horizontal {
    margin: 7px 2px 2px 2px;
    /* 5px top margin for horizontal */
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-color);
    border-radius: 10px;
    border: 1px solid var(--background2);
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-color);
    box-shadow: 0 2px 4px rgba(11, 19, 139, 0.2);
}

::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-color);
    box-shadow: 0 1px 2px rgba(11, 19, 139, 0.3);
}

::-webkit-scrollbar-corner {
    background: var(--background2);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-color) var(--background2);
}

html {
    font-size: 14px;
    overflow-y: auto;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Add these lines to your scrollbar CSS section around line 2300: */

/* Remove scrollbar buttons (up/down arrows) completely */
::-webkit-scrollbar-button {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    display: none !important;
}

/* Remove horizontal scrollbar buttons (left/right arrows) */
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .timer-wrapper {
        width: 240px;
        /* Scale down for smaller screens */
        height: 240px;
    }

    #timer-clock {
        font-size: 2.8rem;
        /* Adjust font size for smaller timer */
    }

    #timer-controls .button {
        min-width: 90px;
        font-size: 0.85rem;
    }

    .priority-board {
        grid-template-columns: 1fr;
    }
}


.dark-text {
    /* If you don't have this already */
    color: #363636 !important;
    /* A darker text for titles */
}

#features .column {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#features ul {
    list-style: none;
    padding-left: 0;
}

#features ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

#features ul .icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    /* Make checkmarks slightly larger */
}

/* How It Works Section */
.section.has-background-light {
    /* Ensure light background for contrast if needed */
    background-color: #f5f7fa !important;
}

.how-it-works-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: card-fade-in 0.5s ease-out forwards;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.how-it-works-card .card-image {
    padding-top: 2rem;
}

.how-it-works-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Staggered animation delays */
.column:nth-child(1) .how-it-works-card {
    animation-delay: 0.2s;
}

.column:nth-child(2) .how-it-works-card {
    animation-delay: 0.4s;
}

.column:nth-child(3) .how-it-works-card {
    animation-delay: 0.6s;
}

@keyframes card-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#how-it-works .image.is-128x128 {
    height: 128px;
    /* Ensure SVG scales nicely */
}

#how-it-works h4.title {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

#calendar {
    /* --- General Colors --- */
    --fc-border-color: var(--accent);
    /* Lighter border color for a softer look */
    --fc-page-bg-color: background: rgba(255, 255, 255, 0.728);
    /* Make it blend with your .custom-background */

    /* --- Toolbar (Header) --- */
    --fc-toolbar-title-font-size: 1.5rem;
    /* Make title bigger */

    /* --- Button Styling --- */
    --fc-button-text-color: var(--bulma-primary);
    /* Button text color */
    --fc-button-bg-color: transparent;
    /* Button background */
    --fc-button-border-color: var(--bulma-primary);
    /* Button border */
    --fc-button-hover-bg-color: var(--background2);
    /* Hover background (your light purple) */
    --fc-button-hover-border-color: var(--bulma-primary);
    /* Hover border */
    --fc-button-active-bg-color: color-mix(in srgb, var(--bulma-primary) 15%, transparent);
    /* Active background */
    --fc-button-active-border-color: var(--bulma-primary);

    /* --- Today's Date Highlighting --- */
    --fc-today-bg-color: color-mix(in srgb, var(--bulma-link) 10%, transparent);
    /* Subtle highlight for today */

    /* --- Event Colors (will be overridden by event-specific colors, but good fallback) --- */
    --fc-event-bg-color: var(--bulma-primary);
    --fc-event-border-color: var(--bulma-primary);
    --fc-event-text-color: #ffffff;

    border: none;
    /* Remove the default box border from calendar itself */
    padding: 1rem;
}

/* More specific button styling to feel like Bulma buttons */
.fc .fc-button:not(.fc-prev-button):not(.fc-next-button):not(.fc-dayGridMonth-button):not(.fc-dayGridWeek-button) {
    border-radius: 8px !important;
    /* Rounded pill shape */
    padding: 0.5em 1em !important;
    margin-left: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    /* No uppercase */
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;

    min-height: 100%;
}

.fc-next-button,
.fc-prev-button {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;

    min-height: 100%;

}


.fc-dayGridMonth-button,
.fc-dayGridWeek-button {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fc-dayGridMonth-button {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.fc-dayGridWeek-button {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.fc-prev-button {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.fc-next-button {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* Styling for the active button (e.g., "dayGridMonth" when selected) */
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--bulma-primary) !important;
    border-color: var(--bulma-primary) !important;
    color: var(--white) !important;
}

/* Day Header Styling (e.g., Sun, Mon, Tue) */
.fc .fc-col-header-cell-cushion {

    text-decoration: none !important;
    /* Remove underline */
    color: var(--bulma-primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Day Number Styling */
.fc .fc-daygrid-day-number {
    text-decoration: none !important;
    /* Remove underline */
    color: #4a4a4a;
    /* A standard dark grey for numbers */
    padding: 0.5em;
}

/* Event Styling */
.fc-event {
    cursor: pointer;
    font-weight: 500;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Event Title Styling (Completed vs. In-Progress) */
.fc-event .fc-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Your calendar.js already sets colors, but this can serve as a fallback or base */
.fc-event.is-completed {
    background-color: var(--bulma-success) !important;
    border-color: var(--bulma-success) !important;
}

.fc-event.is-completed .fc-event-title::before {
    content: '✓ ';
    font-weight: bold;
}

.fc .fc-col-header {
    /* A solid colored line below the headers */
    border-left: none !important;
    border-right: none !important;
}

/* Target the individual day header cells (Sun, Mon, etc.) */
.fc .fc-col-header-cell {
    background-color: var(--background2);
    /* Your light purple background color */
    border: 1px solid transparent;
    padding: 0.5rem 2 !important;
    /* Remove internal borders if any */
}


#calendar-wrapper {
    position: relative;
    min-height: 450px;
    /* Ensure wrapper has height */
}

/* Base style for both loader and error overlays */
.calendar-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--clean-glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 6px;
    /* Match Bulma's .box radius */
    z-index: 10;

    /* Animation Properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

/* The active state for the overlays (fade in) */
.calendar-state-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
}

/* Content inside the overlay */
.loader-content {
    text-align: center;
}

/* A cleaner, more modern CSS-only spinner */
.loader {
    height: 40px;
    width: 40px;
    border: 3px solid var(--bulma-primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem auto;
}

.loader-text {
    font-weight: 500;
    color: var(--bulma-primary) !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* The actual calendar content should fade in when ready */
#calendar {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#calendar.is-loaded {
    opacity: 1;
}

/* Profile Skeleton Loading Styles */
.profile-skeleton-loading .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite;
}

@keyframes skeleton-shine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.profile-avatar-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite;
}

.skeleton-profile-name,
.skeleton-profile-email {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.5s infinite;
}

/* Stagger the skeleton animations */
.profile-skeleton-loading .skeleton:nth-child(1) {
    animation-delay: 0s;
}

.profile-skeleton-loading .skeleton:nth-child(2) {
    animation-delay: 0.2s;
}

.profile-skeleton-loading .skeleton:nth-child(3) {
    animation-delay: 0.4s;
}

/* Dark mode skeleton */
.dark .profile-skeleton-loading .skeleton,
.dark .profile-avatar-skeleton,
.dark .skeleton-profile-name,
.dark .skeleton-profile-email {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
}

/* --- NEW LOGIN STREAK UI --- */
.streak-container {
    display: flex;
    align-items: center;
    background-color: var(--background1);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--accent);
    gap: 12px;
    min-width: 150px;
    opacity: 0;
    transform: translateY(-10px);
    animation: streak-fade-in 0.5s 0.2s ease-out forwards;
}

@keyframes streak-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.streak-progress-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.streak-progress-ring {
    transform: rotate(-90deg);
}

.streak-progress-ring circle {
    transition: stroke-dashoffset 0.5s ease-out;
}

.streak-progress-bg {
    fill: none;
    stroke: #eef2f9;
    stroke-width: 5;
}

.streak-progress-fg {
    fill: none;
    stroke: var(--bulma-primary);
    stroke-width: 5;
    stroke-linecap: round;
}

.streak-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-icon-wrapper .streak-icon {
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: icon-pop-in 0.5s 0.3s ease-out forwards;
    transform: scale(0);
    opacity: 0;
}

@keyframes icon-pop-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.streak-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.streak-days {
    font-weight: 700;
    font-size: 1rem;
    color: var(--bulma-primary);
}

.streak-total {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.streak-total .fa-fire {
    color: #ff9800;
}

.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
    /* Adjust height of the wave */
}

.wave-separator .shape-fill {
    fill: var(--bulma-primary);
    /* Match the new dark footer background */
}

.footer-section {
    background-color: var(--bulma-primary) !important;
    /* Dark background for footer */
    padding: 4rem 1.5rem;
    color: var(--white) !important;
    /* Lighter text for contrast */
}

.footer-section .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.footer-section .footer-links a {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

.footer-section .footer-links a:hover {
    color: var(--white) !important;
}

.footer-section .social-icons a {
    color: var(--text-secondary) !important;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-section .social-icons a:hover {
    color: var(--white) !important;
}

.footer-section .has-text-grey {
    color: var(--text-secondary) !important;
}

/* Container for list item */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Content section */
.list-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Top row: title and stars */
.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2b2b2b;
}

/* Description: course name & due date */
.list-item-description {
    display: flex;
    gap: 0;
    font-size: 0.85rem;
}

.list-item-description p,
.list-item-description span {
    color: var(--text-secondary) !important;
    margin: 0;
}

/* Controls section */
.list-item-controls {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

/* Dropdown positioning */
.list-item .dropdown {
    position: relative;
}

.list-item .dropdown-menu {
    z-index: 1000 !important;
}

#assignment-details-modal .modal-card {
    height: 60vh;
    display: flex;
    flex-direction: column;
}

.modal-card-body {
    background-color: var(--white) !important;
}

#assignment-details-modal .modal-card-body {
    flex-grow: 1;
    overflow-y: auto;
}

#modal-description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Limits the text to 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


#modal-message {
    color: var(--text-secondary) !important;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    row-gap: 0;
    margin-bottom: 32px;
}

.form-field {
    margin-top: 16px;
}


.form-field.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}


/* .form-input placeholder */
.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}


/* .form-input and is disabled */

.form-input:disabled {
    background: var(--background1) !important;
    border: 2px solid var(--accent) !important;
    color: var(--text-secondary) !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.file-input {
    background: var(--background1) !important;
    border: 2px solid var(--accent) !important;
    color: var(--text-primary) !important;
    transition: border-color 0.3s ease;

}

.control.has-icons-left .icon,
.control.has-icons-right .icon {
    color: var(--text-secondary) !important;
}

select#support-subject {
    border: 2px solid var(--accent) !important;
    color: var(--text-primary) !important;
    background: var(--background1) !important;
    border-radius: 8px !important;
}

.form-input:not(.not-full-width) {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--background1);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
    box-shadow: none !important
}

.form-input.not-full-width {
    width: auto;
    padding: 0.75rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--background1);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}


.form-input:focus {
    outline: none;
    border-color: var(--bulma-primary);
}

/* date picker in form-input */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(40%) sepia(90%) saturate(200%) hue-rotate(180deg);
    cursor: pointer;
}

/* Stat Cards */
.stat-card {
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .title,
.stat-card .subtitle {
    color: var(--white) !important;
}

.stat-card-1 {
    background: var(--bulma-primary);
}

.stat-card-2 {
    background: var(--item-primary);
}

.stat-card-3 {
    background: var(--item-secondary);
}

.stat-card-4 {
    background: var(--bulma-secondary);
}

.stat-card-4 .title,
.stat-card-4 .subtitle {
    color: var(--bulma-primary) !important;
}

.skeleton.stat-card .skeleton-text {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* AI Playground */
.tabs.is-boxed li.is-active a {
    background-color: var(--bulma-primary);
    border-color: var(--bulma-primary);
    color: white !important;
}

.tabs.is-boxed li.is-active a .icon {
    color: white;
}

.tab-content {
    padding: 1.5rem;
    border: 1px solid #dbdbdb;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.open {
    transition: identifier-fade-in 0.3s ease-in-out;
}

@keyframes identifier-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.contact-image {
    content: var(--contact-img-source) !important;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--background1);
    border-bottom: 1px solid var(--accent);
    z-index: 39;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-left,
.mobile-nav-right {
    display: flex;
    align-items: center;
}

.mobile-nav-left {
    padding-left: .5rem;
    padding-top: .25rem;
}

.mobile-nav-right {
    gap: 0.75rem;
}

.mobile-nav .profile-avatar {
    width: 32px;
    height: 32px;
}

.mobile-nav .plan-name-mobile {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fade-in 0.3s ease-in-out;
    z-index: 998;
    /* Below the sidebar */
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.settings-header {
    display: block;
}


/* --- Responsive Layout Adjustments --- */
@media screen and (max-width: 1023px) {

    /* Show the mobile top navigation bar */
    .mobile-nav {
        display: flex;
        position: fixed;
        /* Keep it at the top */
        top: 0;
        left: 0;
        width: 100%;
        height: var(--navbar-height);
        background-color: var(--background1);
        border-bottom: 1px solid var(--accent);
        padding: 0 1rem;
        align-items: center;
        justify-content: space-between;
    }

    /* Hide the sidebar by moving it off-screen to the left by default */
    .left-nav-sidebar {
        position: fixed;
        /* Ensure it's fixed for transform */
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1002;
        /* Highest z-index to slide over everything */
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        min-width: 73vw !important;
    }

    /* When active, slide the sidebar into view */
    .left-nav-sidebar.is-active {
        transform: translateX(0);
    }

    /* The overlay to cover the main content when sidebar is open */
    .sidebar-overlay {
        display: none;
        /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        /* Z-index between content and sidebar */
    }

    /* Show the overlay when the sidebar is active */
    .sidebar-overlay.is-active {
        display: block;
    }

    .settings-header {
        display: none !important;
    }

    /* Adjust the main content area */
    .main-page-content {
        margin-left: 0;
        /* Remove the desktop margin */
        padding-top: calc(var(--navbar-height) + 1rem);
        /* Add padding to avoid content hiding under the fixed mobile nav */
        padding-right: 10px !important;
        padding-left: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Dashboard Layout Adjustments */
    .columns.is-multiline .column.is-half {
        width: 100%;
        flex: none;
    }

    #deadlines-card,
    #weekly-productivity-card {
        height: auto;
    }

    .main-page-content.extra {
        margin-left: 2rem !important;
    }

    .section {
        padding: 2rem 1.5rem !important;
    }

    .perspective-container {
        display: none !important;
    }
}

/* Further refinements for smaller mobile screens */
@media screen and (max-width: 768px) {


    #model-dropdown {
        min-width: 100% !important;
    }

    #model-dropdown .dropdown-trigger {
        min-width: 100% !important;
    }

    #model-dropdown .dropdown-trigger .button {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #model-dropdown .dropdown-menu {
        left: 31vw !important;
    }

    .button:not(.is-small):not(.ignore):not(.is-rounded):not(.is-medium):not(#cancel-edit-card-btn):not(#delete-card-btn) {
        min-width: 100% !important;
    }

    h1.title {
        font-size: 2rem !important;
    }

    .main h1.title {
        font-size: 5rem !important;
    }

    .is-one-quarter-desktop .skeleton {
        min-width: 299.5px !important;
    }

    .main-page-content .section .container {
        padding: 0rem !important;
    }

    .subtitle {
        font-size: 1.2rem !important;
        /* Smaller subtitle for mobile */
    }

    .main .subtitle {
        font-size: 2rem !important;
    }

    .streak-container {
        width: 30%;
        /* Make streak container smaller on mobile */
        min-width: 150px;
    }

    .dashboard {
        display: flex !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .left-navbar-elements-holder {
        padding: 0rem 1rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .upgrade-btn {
        font-size: 1rem !important;
    }

    .left-nav-item {
        width: 100%;
        height: 40px !important;
        text-align: center;
        font-size: .875rem !important;
    }

    .left-nav-item i {
        font-size: 1rem !important;
    }

    .left-nav-item span {
        font-size: 1.2rem !important;
        margin-left: 0.5rem !important;
        width: 100%;
        display: block;
    }

    .usage-info .has-text-secondary {
        font-size: 0.9rem !important;
        font-weight: 500 !important;
    }

    .reset-days-container span {
        font-size: 0.8rem !important;
        font-weight: 400 !important;
    }

    .plan-name {
        font-size: 1.2rem !important;
    }

    #profile-name {
        font-size: 1.2rem !important;
    }

    #profile-email {
        font-size: 1rem !important;
    }

    /* Stack the header and streak container vertically */
    .is-flex.is-justify-content-space-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .streak-container {
        margin-top: 1rem;
    }

    /* Make stat cards a single column */
    #overall-stats-content .column {
        width: 100%;
        flex: none;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .title.is-3 {
        font-size: 1.75rem !important;
    }

    .priority-board {
        grid-template-columns: 1fr;
    }

    .contact-button {
        bottom: 20px;
        right: 20px;
        padding: 14px 22px;
    }

    .main-page-content .section .container>.is-flex.is-justify-content-space-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        /* Adds space between the project title and the button row */
    }

    /* Target the container for the action buttons (AI, New, Delete) */
    .main-page-content .section .container .is-flex[style*="gap: 1rem"] {
        flex-wrap: wrap;
        /* Allows buttons to wrap onto the next line if needed */
        justify-content: flex-start;
        /* Aligns wrapped buttons to the left */
    }

    /* Make the Trello-style board lists slightly narrower on small screens */
    .board-list {
        width: 280px;
        /* Slightly reduce from the original 300px */
    }

    .main-page-content .section .container h1.title.mobile-h1,
    .main-page-content .section .container hr {
        display: none;
    }

    .main-page-content .section .container .dashboard h1.title {
        display: block;
    }

    /* Adjust padding for the main glass container on the To-Do page */
    .main-page-content .container.clean-glass {
        padding: 1.5rem !important;
    }

    /* Ensure the board container has some padding from the screen edge */
    .board-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .add-button {
        display: flex;
        padding-top: 0 !important;
    }

    .pricing-section {
        padding-bottom: 149px !important;
    }

    .action-buttons {
        margin-top: 0 !important;
    }

    .editor-layout {
        flex-direction: column !important;
        margin: 2rem 0.35rem !important;
    }

    .sidebar {
        width: 100% !important;
        margin-right: 0% !important;
    }

    .main-page-content.extra {
        margin-left: 0 !important;
    }
}

.modal-background {
    z-index: 999 !important;
}

.modal-card {
    z-index: 1000 !important;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 90vw;
}

/* Mobile To-Do Page Enhancements */
.mobile-todo-bar {
    display: none;
}

@media screen and (max-width: 768px) {

    /* Hide the original desktop header */
    .desktop-todo-header {
        display: none !important;
    }

    /* Style the new mobile To-Do bar */
    .mobile-todo-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 50px;
        background-color: var(--background2);
        border-bottom: 1px solid var(--accent);
        padding: 0 1rem;
        z-index: 40;
        /* Above main nav but below other overlays */
    }

    .mobile-todo-bar .button.is-text {
        color: var(--text-primary);
        text-decoration: none;
    }

    .mobile-todo-bar .button.is-text:hover {
        background-color: inherit;
    }

    .mobile-todo-bar .button.is-text:focus {
        border-color: var(--bulma-primary);
        box-shadow: 0 0 1px 3px var(--shadow);
    }

    #mobile-project-title-display {
        max-width: 150px;
        /* Prevent long titles from breaking layout */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Make the main content a fullscreen container */
    body:has(.board-container) .main-page-content {
        overflow: hidden;
        /* Prevent vertical scroll on the page */
    }

    /* Remove padding from the section/container to make it edge-to-edge */
    body:has(.board-container) .main-page-content .section,
    body:has(.board-container) .main-page-content .container.clean-glass {
        padding: 0 !important;
        padding-bottom: 25px !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Style the board for horizontal scrolling */
    .board-container {
        display: flex;
        flex-grow: 1;
        /* Take up all available vertical space */
        overflow-x: auto;
        /* Enable horizontal scrolling */
        overflow-y: hidden;
        /* Disable vertical scrolling */
        padding: 0.75rem;
        gap: 0.75rem;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
    }

    /* Style individual lists for the horizontal layout */
    .board-list {
        flex-shrink: 0;
        /* Prevent lists from shrinking */
        width: 280px;
        height: 100%;
        /* Make lists take full container height */
        display: flex;
        flex-direction: column;
    }

    /* Make the card container scrollable if cards overflow the list height */
    .board-list .card-container {
        flex-grow: 1;
        overflow-y: auto;
        /* Enable vertical scroll for cards */
        overflow-x: hidden;
    }
}

@media screen and (max-width: 768px) {

    /*
     * This is the key selector. It applies these styles only when the
     * #revision-timer-card element (unique to focus-hub.html) is present.
     */
    body:has(#revision-timer-card) {

        /* Make the main containers transparent and remove their styling */
        .main-page-content .container.clean-glass,
        .box#revision-timer-card {
            box-shadow: none !important;
            padding: 0 !important;
            border-radius: 0 !important;
            height: 100%;
        }

        /* Ensure the main content wrapper fills the screen */
        .main-page-content {
            height: 100vh;
            padding-top: var(--navbar-height);
            /* Keep content below the top nav */
        }

        .main-page-content .section {
            padding: 0 !important;
        }

        .column {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        /* Center the timer content vertically and horizontally */
        #revision-timer-card {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Scale down the timer and its text for smaller screens */
        .timer-wrapper {
            width: 240px;
            height: 240px;
        }

        /* *** THE FIX IS HERE *** */
        /* NEW: Ensure the SVG ring scales with its container */
        #progress-ring {
            width: 100%;
            height: 100%;
        }

        #timer-clock {
            font-size: 3rem !important;
            /* Slightly smaller font for better fit */
        }

        /* Adjust the settings panel to be wider and more accessible on mobile */
        #integrated-settings-area {
            width: 85vw;
            /* Make it take up more horizontal space */
            max-width: 340px;
            /* But not excessively wide */
        }
    }
}


.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--bulma-secondary);
    border-bottom-color: var(--bulma-primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress:indeterminate {
    background-color: var(--accent) !important;
    background-image: linear-gradient(to right, var(--bulma-primary) 30%, var(--accent) 30%) !important;
}

*:not(.mobile-nav-left):has(> * > .navbar__logo-image)>*>.navbar__logo-image {
    content: var(--logo-img-source) !important;
}

.mobile-nav-left:has(> * > .navbar__logo-image)>*>.navbar__logo-image {
    content: var(--logo-img-source-mobile) !important;
}

.site-footer {
    width: 100%;
    padding: 100px 0 40px;
    background-color: var(--white);
}

@media (max-width: 809px) {
    .site-footer {
        padding: 30px;
    }
    
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Ratio similar to original */
    gap: 80px;
    width: 100%;
    align-items: flex-start;
}

/* Column 1: About & Social */
.footer__column--about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 120px;
    /* Pushes social links down */
    height: 100%;
}

.footer__logo:not(.always-white) {
    display: block;
    width: 126px;
    height: 60px;
    content: var(--logo-img-source) !important;
}

.footer__logo img {
    width: 100%;
    height: 100%;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__social p {
    color: var(--color-text-light-gray) !important;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

.social-icons img {
    max-width: 100%;
    max-height: 100%;
}

.social-icons__divider {
    width: 1px;
    height: 28px;
    background-color: var(--color-medium-charcoal) !important;
}

/* Column 2: Links */
.footer__column--links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links__list a {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text-light-gray) !important;
    transition: color 0.3s ease;
}

.footer-links__list a:hover {
    color: var(--color-white);
}

/* Divider & Copyright */
.footer__divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-medium-charcoal) !important;
    border: none;
}

.footer__copyright {
    color: var(--color-text-light-gray) !important;
}

.footer__copyright a {
    color: var(--color-white) !important;
    transition: color 0.3s ease;
}

.footer__copyright a:hover {
    text-decoration: underline;
    color: var(--color-text-light-gray) !important;
}

.text-style-card-title {
    font-family: "Inter Display", sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1em;
    color: var(--color-primary);
}