﻿html, body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

:root {
    --background-page: linear-gradient(135deg, #1e3c72, #2a5298);
    --color-background: #FAFAFA;
    --color-background-1: white;
    --color-background-1-hover: rgba(255, 255, 255, 0.18);;
    --stroke-color: #D1D1D1;
    --box-shadow-elevation-4: 0px 1px 2px rgba(0, 0, 0, 0.07), 0px 2px 6px rgba(0, 0, 0, 0.12);
    /*--box-shadow-elevation-2: 0px 1px 2px rgba(0,0,0,0.05), 0px 1px 3px rgba(0,0,0,0.08);*/
    --box-shadow-elevation-2: none;
    --color-primary: #0078DC;
    --color-secondary: #F3F0FB;
    --color-terciary: #0250a5;
    --color-surface-elevation-4: #FFFFFF;
    --task-card-background: #cdceff;
    --color-orange: #222831;
    --color-blue: #0078DC;
    /* Fonts */
    --color-font: #212529;
    --color-font-accent: #212529;
    --color-font-disable: #353b41d4;
    --color-font-negative: #fff;
    /* Header */
    --text-header-xl: bold 28px/36px;
    --text-header-lg: bold 24px/32px;
    --text-header-md: bold 20px/28px;
    --text-header-sm: bold 16px/24px;
    /* Subtitle */
    --text-subtitle: 600 16px/22px;
    --text-label: 600 14px/20px;
    /* Body */
    --text-body-lg: normal 16px/24px;
    --text-body-md: normal 14px/20px;
    --text-body-sm: normal 12px/16px;
    /* Caption */
    --text-caption: normal 11px/14px;
}

p {
    margin: 0;
}

.top-nav {
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--stroke-color) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
}

.button {
    padding: 12px 16px;
    gap: 6px;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    font-size: 14px;
}

.button-secondary {
    color: white;
    font-size: 14px;
    background-color: #0250a5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    min-height: fit-content;
}

.tab-button {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    background-color: transparent;
    color: black;
    cursor: pointer;
    border: 1px solid var(--stroke-color);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    min-height: min-content;
    gap: 6px;
}

.tab-button > span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: black;
    padding: 0 8px;
    border-radius: 12px;
    background-color: var(--bs-gray-400);
}

.tab-button.active {
    background-color: #0078DC;
    border: none;
    color: white;

    span {
        color: black;
        background-color: var(--color-surface-elevation-4);
    }
}

.card {
    color: var(--color-font);
    display: flex;
    border-radius: 16px;
    padding: 20px;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    background-color: var(--color-surface-elevation-4);
    /*box-shadow: var(--box-shadow-elevation-4);*/
}

/*yeah, I know it should be glass*/
.card-grass {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--stroke-color);
}

.card-grass-hover:hover {
    transition: background-color 0.2s ease;
    cursor: pointer;
    background-color: var(--color-background-1-hover);
    backdrop-filter: blur(8px) saturate(120%);
    border-color: rgba(0, 0, 0, 0.25);
    
    /*.progress-bar {*/
    /*    box-shadow:*/
    /*            inset 1px 1px 0 rgba(69, 168, 243, 0.2),*/
    /*            inset 1px 3px 0 rgba(28, 63, 90, 0.05),*/
    /*            inset 0 0 22px rgb(255 255 255 / 60%),*/
    /*            inset -1px -1px 0 rgba(69, 168, 243, 0.12);*/
    /*}*/
}

.task-card {
    flex-direction: row;
    align-items: center;
}

.cards-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 16px;
    background-color: var(--background-page);
    justify-content: center;
}

.error-message {
    color: #dc3545;
    margin-top: 5px;
    font-size: 0.9rem;
    z-index: 1;
}

.no-data {
    font-size: 0.9rem;
    text-align: center;
    color: #999;
    font-style: italic;
    margin-top: 5px;
    z-index: 1;
}

h1 {
    font-weight: 500;
    font-weight: 600;
    font-size: 1.875rem;
}

h2 {
    font-size: 18px;
    font-weight: 600;
}

p, label {
    font-size: 14px;
}

label {
    font-weight: 500;
}

a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    color: var(--color-font-accent);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding: 1rem 1rem 80px;
    overflow-y: auto;
}


.main-content-empty {
    padding: 32px 16px 32px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gradient-background, .gradient-background-2 {
    background-color: #FAFAFA;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav.dark {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px) saturate(110%);
    -webkit-backdrop-filter: blur(4px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menú lateral */
.side-menu {
    position: fixed;
    top: 0;
    width: 100%;
    left: -100%;
    height: 100vh;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(17px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.side-menu.open {
    left: 0;
}

/* Header */

.menu-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    gap: 8px;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.close-button svg {
    color: white;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    height: 100%;
}

.side-menu hr {
    background-color: white;
}

@media (min-width: 600px) {
    .side-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(209, 213, 219, 0.3);
    }

    .menu-items {
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .side-menu {
        position: static;
        left: 0;
        width: 280px;
        height: 100%;
        
        transition: none;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid var(--stroke-color)
    }

    .menu-header {
        color: black;
    }

    .side-menu hr {
        background-color: gray;
    }

    .side-menu.open {
        left: 0;
    }

    .menu-overlay {
        display: none;
    }

    .close-button {
        display: none;
    }

    .menu-items {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }
}

@media (min-width: 600px) {
    .main-content-empty {
        padding: 32px 64px 32px 64px;
        max-width: 80rem;
        margin: 0 auto;
    }

    .main-content {
        padding-bottom: 16px;
    }

    h1 {
        text-align: left;
    }
}

.progress-bar {
    background-color: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    height: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.container-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}