@import url('fontawesome-free-6.4.2-web/css/all.css');

ul.text-danger {
    background-color: #ffe7e7;
    padding: 5px;
    border-radius: 3px;
}
    ul.text-danger li {
        padding: 0 5px;
        list-style: none;
        color: #c00;
    }

/* Stili per elenchi puntati */
/* Perché HTMLEditor usa sempre ol con un formato diverso per punti e numeri */
li[data-list="bullet"] {
    list-style-type: disc;
    display: list-item;
    margin-left: 20px;
}

/* Stili per elenchi numerati */
/* Perché HTMLEditor usa sempre ol con un formato diverso per punti e numeri */
li[data-list="ordered"] {
    list-style-type: decimal;
    display: list-item;
    margin-left: 20px;
}

/* Archivia Custom colors */
:root {
    --section-border: 1px dotted #ccc;
    --button-border: 1px solid #ccc;
    /* Colori pastello predefiniti */
    --heading-color-red: #fa9189;
    --heading-color-orange: #fcae7c;
    --heading-color-yellow: #fad689;
    --heading-color-green: #a5d6a7;
    --heading-color-blue: #90caf9;
    --heading-color-purple: #b39ddb;
    --heading-color-brown: #946e61;
    --heading-color-fuchsia: #f48fb1;
    --heading-color-grey: #aaaaaa;
    --heading-color-companycolor: #517cbc;
}

.fa-flip-horizontal {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.break-words {
    word-break: break-word;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "EB Garamond", serif;
}

h3, h6 {
    font-style: italic;
}

.fa-solid,
.fa-regular {
    min-width: 1rem;
    text-align:center;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 1.5rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-x {
    background-image: url("/images/account/providers/x-logo.svg")
}

.icon-folder-rename {
    background-image: url("/images/svgicons/folder-rename.svg")
}
.dxbl-lg .icon-folder-rename {
    width: 16px;
    height: 16px;
}
.dxbl-md .icon-folder-rename {
    width: 14px;
    height: 14px;
}
.dxbl-sm .icon-folder-rename {
    width: 12px;
    height: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

.logo {
    width: 60%;
}

/* Personalizzazioni CSS Bootstrap */
p {
    margin: 0;
}

div.heading {
    border-width: 0;
    border-style: solid;
}
.pastel-color-red {
    background-color: var(--heading-color-red);
}

.pastel-color-orange {
    background-color: var(--heading-color-orange);
}

.pastel-color-yellow {
    background-color: var(--heading-color-yellow);
}

.pastel-color-green {
    background-color: var(--heading-color-green);
}

.pastel-color-blue {
    background-color: var(--heading-color-blue);
}

.pastel-color-purple {
    background-color: var(--heading-color-purple);
}

.pastel-color-brown {
    background-color: var(--heading-color-brown);
}

.pastel-color-fuchsia {
    background-color: var(--heading-color-fuchsia);
}

.pastel-color-grey {
    background-color: var(--heading-color-grey);
}

.pastel-color-company {
    background-color: var(--heading-color-company);
}

.ql-editor.dx-htmleditor-content h1 {
    font-family: "EB Garamond", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 3.6rem;
    filter: brightness(0.7);
    padding-top: 5px;
}

.ql-editor.dx-htmleditor-content h2 {
    font-family: "EB Garamond", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 3rem;
    filter: brightness(0.85);
    padding-top: 5px;
}

.ql-editor.dx-htmleditor-content h3 {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 3rem;
    filter: brightness(0.85);
    padding-top: 5px;
}

.ql-editor.dx-htmleditor-content h4 {
    font-family: "EB Garamond", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 2.4rem;
    padding-top: 5px;
}

.ql-editor.dx-htmleditor-content h5 {
    font-family: "EB Garamond", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 1.8rem;
    filter: brightness(1.15);
    padding-top: 5px;
}

.ql-editor.dx-htmleditor-content h6 {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 1.8rem;
    filter: brightness(1.3);
    padding-top: 5px;
}

/* Gestione modalità di ridimensionto Section */
.unselectable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.resizable {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    border: 1px solid #000;
    margin-bottom: 20px; /* Per separare i div */
}

.resizer {
    display: block;
    width: 20px;
    height: 5px;
    background: white;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
    display: none;
    border-radius: 5px 5px 0 0;
    border: 1px solid #aaa;
    z-index: 500;
}

.section.fixed .resizer {
    display: block;
    background: #c00;
    border: 1px solid #c00;
}

.resizable:hover .resizer {
    display: block;
}

.resizable .resizer:hover {
    background: #aaa;
}

/* END: Gestione modalità di ridimensionto Section */


/* SVG Icons */
.treeview-icon {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    background-size: contain;
    background-position: center center;
}

.treeview-icon-folder {
    background-image: url("/images/svgicons/folder-color.svg");
    background-size: 150% 150%;
    width: 30%;
    height: 100%;
}

.treeview-icon-picture {
    background-image: url("/images/svgicons/image-color.svg");
    background-size: 150% 150%;
    width: 30%;
    height: 100%;
}

.treeview-icon-video {
    background-image: url("/images/svgicons/video-color.svg");
    background-size: 150% 150%;
    width: 30%;
    height: 100%;
}

.treeview-icon-music {
    background-image: url("/images/svgicons/music-color.svg");
    background-size: 150% 150%;
    width: 30%;
    height: 100%;
}

.treeview-icon-document {
    background-image: url("/images/svgicons/document-color.svg");
    background-size: 150% 150%;
    width: 30%;
    height: 100%;
}

.treeview-icon-file {
    background-image: url("/images/svgicons/document-color.svg");
    background-size: 150% 150%;
    width: 30%;
    height: 100%;
}

a {
    color: black;
}

/* Classe necessaria in AreaRecord che non può essere gestita tramite css-isolation */
.record-editsection-popup-body {
    overflow: auto;
}

/* Mappe */
div#marker-list-container {
    min-width: 14px;
    min-height: 14px;
    background-color: black;
    padding: 0;
    border-radius: 8px;
}

ul#marker-list {
    max-width: 300px;
    overflow: auto;
    max-height: 300px;
    display: none;
    margin: 0;
    padding: 5px;
    background-color: white;
    border-radius: 8px;
}

    ul#marker-list li {
        border-bottom: 1px dotted #aaa;
        padding: 3px;
        display: block;
        cursor: default;
    }

    ul#marker-list li:hover {
        background-color: #eee;
    }

    ul#marker-list li a {
        text-decoration: none;
    }

/* Mobile */
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6 {
        font-size: 150%;
    }

    .title-content-text {
        font-size: 100%;
    }

    .ql-editor.dx-htmleditor-content h1 {
        font-size: 2.4rem;
    }

    .ql-editor.dx-htmleditor-content h2 {
        font-size: 2rem;
    }

    .ql-editor.dx-htmleditor-content h3 {
        font-size: 2rem;
    }

    .ql-editor.dx-htmleditor-content h4 {
        font-size: 1.6rem;
    }

    .ql-editor.dx-htmleditor-content h5 {
        font-size: 1.2rem;
    }

    .ql-editor.dx-htmleditor-content h6 {
        font-size: 1.2rem;
    }

    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.dxbl-popup-adaptivity {
        margin: 5px;
    }
}