html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background: linear-gradient(270deg, #0d0f16, #15182a, #0d0f16);

    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;

    display: flex;
    flex-direction: column;
    max-height: 100%;
}

@keyframes FadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes FadeInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes FadeInBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes FadeInTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.main-content {
    flex: 1;
    padding-bottom: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.Title {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
}

.heading {
    display: flex;
    color: white;
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 0;
}

.date {
    color: white;
    font-size: 30px;
    font-weight: 800;
    margin-top: 10px;
}

/* topbar content */

.topbar-content {
    background: #131520;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 15px;
    height: 6vh;
    align-items: center;
}



.topbar-heading {
    padding-left: 15px;
    font-size: 30px;
    font-weight: 700;
    color: #a29bfe;
}

.pages-dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.pages {
    background-color: #0d0f16;
    color: white;
    margin-right: 15px;
    height: 50%;
    justify-content: center;
    border: none;
}

/* quote */

.quote-wrapper {
    display: flex;
    justify-content: center;
    position: relative;

    width: 100%;
    height: 150px;
}

.quote {
    position: absolute;
    width: 95%;
    min-height: 150px;

    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;

    font-size: 20px;
    font-weight: 800;
    border-radius: 20px;
    color: #a29bfe;

    background: linear-gradient(135deg, #05070d, #121826, #05070d);
    background-size: 400% 400%;
    animation: gradientMove 6s ease infinite;

    opacity: 0;
    transform: translateX(30px);
    transition: 0.5s ease;
}

.quote.active {
    opacity: 1;
    transform: translateX(0);
}

.quote.active {
    opacity: 1;
    transform: translateX(0);
}

.quote h1 {
    margin: 0;
    animation: glowPulse 2.5s ease-in-out infinite;
}

.quote span {
    display: inline-block;
}

/* task info */

.info-cards {
    padding-top: 15px;
}

.info-cards1 {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

/* active tasks card */

.active-tasks,
.Total-mins {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 46%;
    border-radius: 20px;
    margin-top: 15px;

    background: linear-gradient(135deg, #0d0f16, #1b1430, #0d0f16);
    background-size: 400% 400%;
    background-position: 0% 50%;
    animation: gradientMove 6s ease infinite;
}

.active-tasks-details,
.Total-mins-details {
    color: white;
}

.active-tasks-heading,
.Total-mins-heading {
    margin-bottom: 0px;
    font-weight: 1000;
}

.active-tasks-subheading,
.Total-mins-subheading {
    font-weight: 700;
}

.active-tasks-icon,
.Total-mins-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;
    margin-left: 15px;
    padding: 10px;
    border-radius: 12px;

    color: white;

    /* glass effect */
    background: rgba(162, 155, 254, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.active-tasks-icon,
.Total-mins-icon {
    position: relative;
    overflow: hidden;
}

.active-tasks-icon:active,
.Total-mins-icon:active {
    transform: scale(0.96);
}

.active-tasks-icon::after,
.Total-mins-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(162, 155, 254, 0.3);
    border-radius: 12px;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s, opacity 0.6s;
}

.active-tasks-icon:active::after,
.Total-mins-icon::active::after {
    transform: scale(2);
    opacity: 1;
}

/* =================INFO CARDS 2----------------------- */

.info-cards2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.study-notes,
.hours-spent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 46%;
    border-radius: 20px;
    margin-top: 15px;

    background: linear-gradient(135deg, #0d0f16, #1b1430, #0d0f16);
    background-size: 400% 400%;
    background-position: 0% 50%;
    animation: gradientMove 6s ease infinite;
}

.study-notes-details,
.hour-spent-details {
    color: white;
}

.study-notes-heading,
.hour-spent-heading {
    margin-bottom: 0px;
    font-weight: 1000;
}

.study-notes-subheading,
.hour-spent-subheading {
    font-weight: 700;
}

.study-notes-icon,
.hours-spent-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;
    margin-left: 15px;
    padding: 10px;
    border-radius: 12px;

    color: white;

    /* glass effect */
    background: rgba(162, 155, 254, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.study-notes-icon,
.hours-spent-icon {
    position: relative;
    overflow: hidden;
}

.study-notes-icon:active,
.hours-spent-icon:active {
    transform: scale(0.96);
}

.study-notes-icon::after,
.hours-spent-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(162, 155, 254, 0.3);
    border-radius: 12px;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s, opacity 0.6s;
}

.study-notes-icon:active::after,
.hours-spent-icon:active::after {
    transform: scale(2);
    opacity: 1;
}

/* bottom navbar */

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7vh;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;

    background: #131520;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 9999;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 50px;
}

.navbar-dashboard,
.navbar-create,
.navbar-ai {
    width: 5vh;
    height: 5vh;
    border-radius: 20px;
    font-size: 30px;
    font-weight: 800;
    color: white;

    /* glass effect */
    background: rgba(162, 155, 254, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-create {
    transform: translateY(-30px);
    width: 7.5vh;
    height: 7.5vh;
    border-radius: 30px;
    font-size: 40px;
    border: none;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -250px;

    width: 250px;
    height: 100vh;

    background: rgba(21, 24, 42, 0.75);

    backdrop-filter: none;
    -webkit-backdrop-filter: blur(6px);

    border-left: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.35);

    transition: 0.3s ease;
    z-index: 1000;
}

.mobile-sidebar.active {
    right: 0;
}


/* animations */

.heading {
    animation: FadeInBottom 0.3s ease-in forwards;
}

.date {
    animation: FadeInBottom 0.6s ease-in forwards;
}

.quote-wrapper {
    opacity: 0;
    animation: FadeInBottom 0.6s ease forwards;
}


.active-tasks {
    animation: FadeInLeft 0.3s ease-out backwards, gradientMove 6s ease infinite;
}

.Total-mins {
    animation: FadeInRight 0.5s ease-out backwards, gradientMove 6s ease infinite;
}

.study-notes {
    animation: FadeInLeft 0.7s ease-out backwards, gradientMove 6s ease infinite;
}

.hours-spent {
    animation: FadeInRight 0.9s ease-out backwards, gradientMove 6s ease infinite;
}

.heading {
    animation-delay: 0.1s;
}

.date {
    animation-delay: 0.2s;
}

/* on click animations */

/* ================= FADE OUT SYSTEM ================= */

.app * {
    transition: transform 0.6s ease, opacity 0.6s ease;
}


.app.FadeOut * {
    transform: translateY(100vh);
    opacity: 0;
}

.app.FadeOut .heading {
    transition-delay: 0s;
}

.app.FadeOut .date {
    transition-delay: 0.05s;
}

.app.FadeOut .quote-wrapper {
    transition-delay: 0.1s;
}

.app.FadeOut .active-tasks {
    transition-delay: 0.15s;
}

.app.FadeOut .Total-mins {
    transition-delay: 0.2s;
}

.app.FadeOut .study-notes {
    transition-delay: 0.25s;
}

.app.FadeOut .hours-spent {
    transition-delay: 0.3s;
}

.quick-actions {
    display: none;
}

/* ipad extra elements */
.study-pages {
    display: none;
}

/* Surface Duo */
@media (min-width: 540px) and (max-width: 1115px) {
    .navbar-dashboard,
    .navbar-create,
    .navbar-ai {
        font-size: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .date{
        display:none;
    }

    .heading{
        margin-bottom: 15px;
    }
}

/* iPHONE SE VIEW */
@media (max-width: 375px) {

    .navbar-dashboard,
    .navbar-create,
    .navbar-ai {
        font-size: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .date{
        display:none;
    }

    .heading{
        margin-bottom: 15px;
    }
}


/* Ipad view */
@media (min-width: 769px) and (max-width: 1024px) {

    .quote{
        font-size: 30px;
    }

    .active-tasks,
    .Total-mins,
    .study-notes,
    .hours-spent {
        height: 10vh;
    }

    .active-tasks-details,
    .Total-mins-details,
    .study-notes-details,
    .hour-spent-details {
        font-size: 20px;
        text-align: center;
    }

    .active-tasks-icon,
    .Total-mins-icon,
    .study-notes-icon,
    .hours-spent-icon {
        height: 5vh;
        width: 5vh;
    }

    .quick-actions {
        display: flex;
        flex-direction: column;
        width: 45%;
        height: 15vh;

        background: linear-gradient(135deg, #0d0f16, #1b1430, #0d0f16);
        background-size: 400% 400%;
        background-position: 0% 50%;
        animation: gradientMove 6s ease infinite;

        border-radius: 20px;
    }

    .quick-actions-heading {
        color: white;
        margin-left: 20px;
    }

    .quick-actions-buttons {
        display: flex;
        flex-direction: column;
        width: 60%;
        margin-left: 20px;
        gap: 7px;
    }

    .manage-tasks,
    .study-assistant {
        background-color: #a29bfe;
        height: 3vh;
        font-size: 20px;
        color: white;
        border-radius: 15px;
    }

    .manage-tasks:hover,
    .study-assistant:hover {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }

    .extra-actions {
        display: flex;
        gap: 15px;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .study-pages {
        display: flex;
        width: 45%;
        background: linear-gradient(135deg, #0d0f16, #1b1430, #0d0f16);
        background-size: 400% 400%;
        background-position: 0% 50%;
        animation: gradientMove 6s ease infinite;
        border-radius: 20px;
    }

    .study-pages-header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
        padding-top: 20px;
    }

    .study-pages-heading {
        margin: 0;
        color: white;
    }

    .topbar-heading {
        padding-left: 50px;
        font-size: 40px;
    }
}

/* laptop and pc elements */

.laptop-sidebar {
    display: none;
}


/* pc view */
@media (min-width: 1367px) {
    .info-cards {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap;
        width: 32%;
    }

    .info-cards1,
    .info-cards2 {
        display: contents;

    }

    .laptop-sidebar {
        display: flex;
        width: 15%;
        height: 95vh;
        position: fixed;
        left: 0;
        bottom: 0;
        background-color: #131520;
    }

    .active-tasks,
    .Total-mins,
    .study-notes,
    .hours-spent {
        transition: 0.3s ease;
    }

    .active-tasks:hover,
    .Total-mins:hover,
    .study-notes:hover,
    .hours-spent:hover {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }


    .sidebar-buttons {
        width: 100%;
        padding-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .task-bar,
    .dashboard-bar,
    .Ai-bar,
    .quick-add-task {
        width: 55%;
        height: 3vh;
        background-color: #a29bfe;
        border-radius: 10px;
        color: white;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 5px;
        transition: 0.5s ease;
    }

    .task-bar:hover,
    .dashboard-bar:hover,
    .Ai-bar:hover,
    .quick-add-task:hover {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }

    .ask-nova-input {
        width: 60%;
        height: 3vh;
        background-color: transparent;
        border: solid grey 1px;
        border-radius: 10px;
        margin-bottom: 20px;
        display: flex;
        color: white;
        font-size: 20px;
        font-weight: 700;
        text-align: center;
    }

    .ask-nova-input::placeholder {
        color: white;
        font-size: 20px;
        font-weight: 700;
        text-align: center;
    }

    .topbar-heading {
        padding-left: 100px;
        font-size: 40px;
    }

    .app {
        margin-left: 15%;
        width: 85%;
    }

    .navbar {
        display: none;
    }

    .Title {
        display: flex;
        align-items: center;
    }

    .main-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .quote {
        width: 68%;
        height: 10vh;
    }

    .quote:hover {
        animation-play-state: paused;
        filter: brightness(1.2);
        transform: translateY(-2px);
    }

    .main-content {
        flex: 1;
        padding-bottom: 10vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .active-tasks,
    .Total-mins,
    .study-notes,
    .hours-spent {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }

    .active-tasks-icon:hover,
    .Total-mins-icon:hover,
    .study-notes-icon:hover,
    .hours-spent-icon:hover {
        transform: translateY(-5px);
    }

    .quick-actions {
        display: flex;
        flex-direction: column;
        width: 34%;
        height: 15vh;

        background: linear-gradient(135deg, #0d0f16, #1b1430, #0d0f16);
        background-size: 400% 400%;
        background-position: 0% 50%;
        animation: gradientMove 6s ease infinite;

        border-radius: 20px;
    }

    .quick-actions-heading {
        color: white;
        margin-left: 20px;
    }

    .quick-actions-buttons {
        display: flex;
        flex-direction: column;
        width: 60%;
        margin-left: 20px;
        gap: 7px;
    }

    .manage-tasks,
    .study-assistant {
        background-color: #a29bfe;
        height: 3vh;
        font-size: 20px;
        color: white;
        border-radius: 15px;
    }

    .manage-tasks:hover,
    .study-assistant:hover {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }

    .extra-actions {
        display: flex;
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .study-pages {
        display: flex;
        width: 34%;
        background: linear-gradient(135deg, #0d0f16, #1b1430, #0d0f16);
        background-size: 400% 400%;
        background-position: 0% 50%;
        animation: gradientMove 6s ease infinite;
        border-radius: 20px;
    }

    .study-pages-header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 20px;
        padding-top: 20px;
    }

    .study-pages-heading {
        margin: 0;
        color: white;
    }

    .view-all-pages {
        color: grey;
        font-size: 20px;
        font-weight: 800;
        text-decoration: none;
    }

    .view-all-pages:hover {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }
}