@font-face {
    font-family: 'Metropolis-Medium';
    src: url("fonts/Metropolis-Medium-a80ab22a6c38b7e74943bf49e65c5c57.otf") format("opentype");
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis-Bold';
    src: url("fonts/Metropolis-Bold-3e5899143e85bc3fe5c42e09eba6d7cc.otf") format("opentype");
    font-style: normal;
}

* {
    box-sizing: border-box;
    outline: none;
}
a {
    text-decoration: none;
    color: black;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Metropolis-Medium', 'Metropolis-Bold', Arial, sans-serif !important;
    display: flex;
    width: 100%;
}
body, .modalLight {
    background-color: #FDF8F4 !important;
}
form input, form select, form textarea { /*, form button {*/
    margin-top: 5px;
    margin-bottom: 20px;
    height: 50px;
    border-radius: 20px;
    border: 0;
    color: #514e4e;
    text-align: center;
    width: 100%;
}
form textarea {
    height: 200px;
    width: 80%;
    resize: none;
}
form button {
    height: 40px;
    border: 0;
}
#logo {
    background-size: contain;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("../images/login/logo-5b510b243f4740b6823cd881fea2cb59.png") !important;
    height: 150px;
    margin-bottom: 20px;
}
#homeLogo {
    position: absolute;
    top: 25px;
    left: 15px;
    height: 60px;
    width: 200px;
    z-index: 100;
}
#homeLogo #logo {
    height: 100%;
    width: 100%;
    background-attachment: initial;
    background-color: transparent !important;
    margin: 0;
}
#logout {
    position: fixed;
    right: 0;
    margin: 10px;
    font-size: 2em;
    border-radius: 20px;
    padding: 10px;
}
#logout i {
    color: white;
}

/* CONTENT */
#content {
    width: 100%;
    height: 100%;
    /*display: flex;
    flex-wrap: wrap;*/
}
#bottomContent {
    margin: auto;
    /*min-height: 500px;
    height: 100%;*/
    max-width: 1500px;
    height: 89%;
}
#topContent, #bottomContent {
    width: 100%;
    margin: auto;
    display: flex;
}
#topContent {
    height: 100px; /*250px;*/
}
#leftContent {
    width: 500px;
    min-height: 400px;
}
#userDataContent, #userDataContentBody {
    display: flex;
    margin: auto;
    flex-wrap: wrap;
}
#userDataContent > div {
    width: 100%;
}
#userDataContentBody p {
    margin: 10px 0;
}
#searchContent {
    width: 70%;
    margin: auto;
    display: flex;
}
#searchUsers, #searchChains, #searchCenters {
    border: none;
    border-radius: 20px;
    height: 50px;
    width: 100%;
    /*font-family: FontAwesome;*/
    padding: 0 20px;
    margin: auto;
}
#searchUsers {
    font-family: FontAwesome;
}
#rightContent {
    width: 100%;
    margin-left: 20px;
    /*display: flex;
    flex-wrap: wrap;*/
}
#rightContent > div {
    border-radius: 20px;
    padding: 15px;
}
#rightContentDiv {
    width: 100%;
    height: 90%;
}
#content div {
    border-radius: 20px;
}
#leftContent > div, #leftContent a div {
    margin-bottom: 40px;
    padding: 15px;
}
#leftContent p, #leftContent label, #leftContent h1, #leftContent h2 {
    width: 100%;
    text-align: left;
}
#leftContent h1, #leftContent h2 {
    font-size: 1.4em;
    margin: 15px 0;
    font-weight: bold;
}
#leftContent h2 {
    font-size: 1.1em;
}
#menuContent, #userDataContent {
    margin-bottom: 10px !important;
    padding: 5px 20px;
    background-color: white;
}
#menuContent p {
    cursor: pointer;
    margin: 0;
    color: var(--secondary-color-text);
}
#menuContent p.active {
    color: var(--primary-color);
}
#menuContent p.active i {
    background: var(--primary-color);
}
#menuContent p i {
    background: var(--secondary-color-text);
    padding: 10px;
    border-radius: 20px;
    color: white;
}
#menuContent:hover {
     box-shadow: 1px 1px 20px lightgray;
     cursor: pointer;
 }

/* LISTS*/
.listElement {
    border-radius: 10px;
    background-color: white;
    padding: 10px;
    margin: 0 10px 10px;
}
.listElement .header {
    display: flex;
    cursor:pointer;
}
.listElement .body {
    color: black;
    padding: 0 40px;
}
.listElement .body img {
    max-width: 300px;
    border-radius: 10px;
}
.listElement .header .day {
    width: 15%;
    text-align: center;
}
.listElement .header .name {
    width: 45%;
}
.listElement .header .other {
    width: 20%;
}
.hidden {
    display: none !important;
}
#searchResultWrapper {
    width: 70%;
    position: absolute;
    top: 80px;
    z-index: 100;
    padding-right: 250px;
}
#searchResults {
    background-color: white;
    max-width: 1000px;
    box-shadow: 6px 6px 40px grey;
    margin-left: 50px;
    height: auto;
    padding: 5px 0 5px 0;
}
#searchUsersUnit {
    padding-left: 30px;
}
#userDataContentBody > div {
    width: 45%;
}
#userDataContentHeader .profileButton div {
    margin-bottom: 0 !important;
    padding: 0 !important;
    align-content: center;
    position: inherit;
    height: 0;
    text-align: end;
}
.intakeList {
    display: flex;
    justify-content: space-around;
}
.intakeList h1 {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}
#appUserStats {
    background-color: white !important;
}
#appUserStats h2 {
    text-align: center;
}
#appUserStats > div {
    display: flex;
    justify-content: space-around;
}
/*:is(#upsideStats, #downsideStats) div {*/
/*    padding: 5px;*/
/*    border-radius: 5px;*/
/*    min-width: 200px;*/
/*}*/
#statsFilter {
    display: flex;
    justify-content: space-between;
    height: 100px;
    padding: 10px;
    box-sizing: border-box;
}
#statsFilter label, #statsFilter input[type="button"] {
    max-width: 250px;
    margin: auto;
}
#advancedSearch, #dateUserFilter, #newCenter {
    font-family: FontAwesome;
    margin-left: 20px;
}
#advancedSearchOptions, #statChartModal {
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    max-width: 1200px;
    min-width: 800px;
    margin: 100px auto;
    height: fit-content; /*600px;*/
    border-radius: 20px;
    box-shadow: 6px 6px 40px grey;
    padding: 20px;
}
#advancedSearchOptions form {
    display: grid;
    width: 100%;
    height: 100%;
}
#advancedSearchOptions form #searchOptions {
    display: flex;
    width: 100%;
}
#advancedSearchOptions form button {
    margin: auto;
    width: 200px;
}
#advancedSearchOptions label {
    display: none;
}
#advancedSearchOptions section {
    padding: 5px;
}
#advancedSearchBetweenOptions {
    width: 50%;
    border-right: 1px solid black;
}
#advancedSearchSelectOptions {
    width: 100%;
    margin-left: 40px;
}
.betweenOptions {
    display: flex;
}
.betweenOptions input {
    width: 40%;
}
.chooseOptions {
    display: flex;
    width: 100%;
}
.chooseOption {
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    height: 50px;
    border: 1px solid grey;
    color: grey;
    box-sizing: border-box;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.selected {
    border: none !important;
    color: white;
}
.hidden {
    display: none;
}




.user-card {
    /*width: 30%;
    min-width: 400px;
    max-width: 450px;*/
    background-color: white;
    box-sizing: border-box;
    padding: 15px;
    /*height: 200px;*/
    margin: 10px;
    box-shadow: 3px 3px 5px grey;
}
.user-card section {
    display: flex;
}
.user-identification {
    width: 80%;
}
.user-sdk-list {
    min-width: 30%;
    align-content: center;
}
.user-identification h3, .user-identification p {
    margin: 0 0 5px 0 !important;
}
.user-card i {
    background-color: lightgray;
    padding: 10px;
    color: white;
    border-radius: 10px;
    margin: 1px;
}

.user-card:hover {
    box-shadow: 1px 1px 20px lightgray;
    cursor: pointer;
}
.user-picture {
    font-size: 4em;
}
.user-data {
    width: 100%;
    background-color: lightcoral;
    display: flex;
    flex-wrap: wrap;
    margin-left: 10px;
}
.user-data h1 {
    width: 33%;
    text-align: center;
    margin: 5px 0 5px 0 !important;
    align-content: center;
}
.user-card p {
    color: var(--secondary-color-text);
}

.dashboardStat {
    margin: 10px;
    background-color: white;
    padding: 20px;
    max-height: 320px;
}
.doughnut {
    display: grid;
    grid-template-columns: repeat(2, auto);
}
.dashboardStat h3 {
    margin-top: 0;
}
#userCountStat {
    /*height: 400px;*/
}

.dashboardStat.superCenter {
    max-height: 100%;
}
.superCenter hr {
    margin: 2rem 0;
}
.superCenter input[type="button"] {
    width: 100%;
}


#rightContentTitle {
    display: flex;
    justify-content: space-between;
}
#rightContentTitle > div {
    display: flex;
    align-items: center;
}
#rightContentTitle a {
    align-content: center;
}
#rightContentTitle a i {
    font-size: 1.6em;
    padding-right: 10px;
}
#rightContentTitle h4 {
    color: var(--secondary-color-text);
}
:is(#rightContentTitle) h4, h2 {
    margin: 0;
}


#rightContent form > div {
    display: grid;
    grid-template-columns: repeat(2, auto);
}
form #report {
    grid-template-columns: repeat(7, auto) !important;
}

#rightContent form input {
    width: 100%;
    background-color: #eeeeee;
}
#rightContent form input[type="checkbox"] {
    width: 20px;
    background-color: white;
}

#rightContent form > div div {
    margin: auto;
    width: 80%;
}

#rightContent form > div div label {
    text-align: left !important;
    padding-bottom: 5px;
}

form[name="comments"] > div {
    width: 100%;
}
form[name="comments"] {
    /*position: relative;*/
    height: 100%;
    padding: 0 20px 50px;
}
form[name="comments"] label {
    display: none;
}
form[name="comments"] textarea {
    width: 100%;
}
form[name="comments"] button {
    width: 300px;
    /*position: absolute;
    right: 20px;
    bottom: 10px;*/
    border-radius: 20px;
}
div#comments {
    display: flex !important;
}
#nutritionProfiler div {
    grid-template-columns: repeat(2, 50%) !important;
}
.nutritionProfilerSection {
    display: flex;
    flex-wrap: wrap;
}
.nutritionProfilerIcon {
    height: 40px;
    width: 300px !important;
    border-radius: 20px;
    border: 1px solid grey;
    font-size: 1em;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    align-content: center;
    margin: 2px auto !important;
    cursor: pointer;
    background-color: #e3e3e3;
}
.nutritionProfilerIcon p {
    width: 100%;
    margin: auto;
}

#flags {
    position: fixed;
    bottom: 20px;
    margin: auto;
    left: 0;
    right: 0;
    width: 50%;
    text-align: center;
}
#flags section {
    height: auto;
    min-height: 30px;
    border-radius: 10px;
    align-content: center;
    margin-bottom: 2px;
    color: white;
}

/*div:has(>select.reportDataBlock) {
    background-color: red;
}*/
.reportDataBlock {
    margin: 20px;
}
.reportDataBlock section div {
    text-align: center;
}
.reportDataBlock  input {
    width: 50%;
    min-width: 50px;
    max-width: 120px;
}

.btn-main, .btn-secondary {
    text-decoration: none;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    border-radius: 15px;
    align-items: center;
    width: 95%;
    justify-content: center;
    border: none;
    margin: 1rem auto;
}

.btn-main {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--primary-color-text);;
}

.btn-secondary {
    position: relative;
    color: var(--primary-color);
    background: transparent;
}

/* Pseudo-elemento para el borde con degradado */
.btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px; /* Grosor del borde */
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color)) !important;
    -webkit-mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0) !important;
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-secondary:hover, .btn-main:hover {
    opacity: 0.8;
}
.action-buttons {
    /*display: flex;*/
    justify-content: space-between;
    margin-top: 2rem;
    position: sticky;
    bottom: 20px;
}
