﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.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, var(--DS-color-content-neutral-default-rest));
}

.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%;
}

.icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-color: currentcolor;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--icon-mask-image);
    mask-image: var(--icon-mask-image);
}

.or {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.3125rem 0;
}

.or .or-line {
    border-bottom: 1px solid var(--bs-body-color, var(--DS-color-content-neutral-default-rest));
    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, var(--DS-color-content-neutral-default-rest));
    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, var(--DS-color-content-neutral-default-rest));
    opacity: 0.7;
}

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary, var(--DS-primary-90));
    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;
}

.gridlayout-item {
    background-color: var(--bs-body-bg, #fff);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gridlayout-header {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.gridlayout-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gridlayout-left-side-bar,
.gridlayout-right-side-bar,
.gridlayout-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gridlayout-footer p,
.gridlayout-left-side-bar p,
.gridlayout-right-side-bar p {
    margin-bottom: 0;
}

.update-button {
    min-width: 7rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: var(--icon-provider-width);
    height: var(--icon-provider-height);
    background-image: var(--icon-provider-background-image);
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

.legal-page {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    width: 100%;
    max-width: 960px;
    overflow-y: auto;
}

.legal-document {
    background-color: var(--bs-body-bg, #fff);
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--bs-body-color, #212529);
}

    .legal-document header h1 {
        margin-bottom: 0.75rem;
    }

    .legal-document section h2 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .legal-document ul {
        padding-left: 1.5rem;
    }

    .legal-document a {
        word-break: break-word;
    }
.footer-separator {
    width: 100%;
    border-top: 1px solid #ccc;
    margin: 0.5rem 0;
    opacity: 0.5;
}


.landing-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;  
    color: var(--footer-text, #555);
    gap: 0.5rem;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-button {
    font-size: 0.9rem;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Accessible, Bootstrap-ish accordions for <details class="accordion"> */
details.accordion {
    border-top: 1px solid rgba(0,0,0,.08);
}

    details.accordion + details.accordion {
        border-top: none;
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    /* Summary header */
    details.accordion > summary {
        list-style: none;
        display: flex;
        align-items: center;
        gap: .75rem;
        width: 100%;
        padding: 1rem 1.25rem;
        margin: 0;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
        outline: none;
        background: #f8f9fa; /* light */
        color: #212529;
        border-radius: .5rem;
    }

        /* Remove default marker */
        details.accordion > summary::-webkit-details-marker {
            display: none;
        }

        /* Focus states */
        details.accordion > summary:focus-visible {
            box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
        }

        /* Chevron */
        details.accordion > summary::after {
            content: "▸";
            margin-left: auto;
            transition: transform .2s ease;
            font-size: 1.1rem;
            line-height: 1;
            opacity: .7;
        }

    /* Open state */
    details.accordion[open] > summary {
        background: #e9ecef;
    }

        details.accordion[open] > summary::after {
            transform: rotate(90deg);
            opacity: 1;
        }

    /* Panel body */
    details.accordion > .panel {
        padding: 0 1.25rem 1rem 1.25rem;
        margin-top: .25rem;
        border-left: 3px solid rgba(13,110,253,.35); /* Bootstrap primary tint */
        border-radius: 0 0 .5rem .5rem;
        overflow: clip; /* modern safe overflow hiding */
    }

        /* Tables inside panels align with padding */
        details.accordion > .panel .table {
            margin-bottom: 0;
        }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    details.accordion > summary::after {
        transition: none;
    }
}