@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}

body {
    background-color: #F2F3F1;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #5A9428;
}

.invalid {
    outline: 1px solid #d32f2f;
}

.validation-message {
    color: #d32f2f;
}

.button-link {
    text-decoration: none;
}

#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;
}

/* ── Enterprise page header ─────────────────────────── */

.eco-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #5A9428;
    flex-wrap: wrap;
}

.eco-page-title {
    font-weight: 600 !important;
    color: #2D2D2D;
}

.eco-page-subtitle {
    color: #737373;
    margin-top: 2px;
}

.eco-user-tag {
    color: #5A9428;
}

.eco-page-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Empty state ─────────────────────────────────────── */

.eco-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem;
    gap: 0.5rem;
    color: #9E9E9E;
}

.eco-empty-icon {
    font-size: 3rem !important;
    width: 3rem !important;
    height: 3rem !important;
    color: #BDBDBD;
    margin-bottom: 0.5rem;
}

.eco-empty-title {
    font-weight: 600;
    color: #737373;
}

.eco-empty-subtitle {
    color: #9E9E9E;
}

/* ── Shared layout helpers ───────────────────────────── */

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

.title.title-secondary {
    padding-top: 0.313rem;
    padding-bottom: 0;
    color: rgba(45, 45, 45, 0.65);
}

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.9rem;
    letter-spacing: 0;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.block-content {
    width: 100%;
    max-width: 36rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.or {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.3125rem 0;
}

.or .or-line {
    border-bottom: 1px solid rgba(45, 45, 45, 0.2);
    width: 100%;
}

.or .or-text {
    padding: 0 0.625rem 0 0.625rem;
    font-size: 0.75rem;
    line-height: 1.125rem;
    color: rgba(45, 45, 45, 0.6);
}

.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;
    flex-wrap: wrap;
}

.links-container .dot {
    height: 0.3125rem;
    width: 0.3125rem;
    margin: 0 0.1875rem;
    border-radius: 50%;
    background-color: rgba(45, 45, 45, 0.5);
}

.manage-layout,
.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-message::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: #5A9428;
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-message.info-panel {
    margin-bottom: 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;
    flex-wrap: wrap;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.mud-checkbox-wrapper {
    display: flex;
    align-items: center;
}

/* ── Calculator ──────────────────────────────────────── */

.calculator-preview {
    min-height: 100%;
}

.calculator-shape {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

/* ── XML Viewer ──────────────────────────────────────── */

.xml-viewer-shell {
    width: 100%;
}

.xml-viewer-actions {
    display: flex;
    align-items: end;
}

.xml-output {
    margin: 0;
    padding: 1rem;
    border-radius: 6px;
    background: #1E2024;
    color: #d4f0b8;
    overflow-x: auto;
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.xml-editor textarea,
.xml-editor input,
.xml-editor .mud-input-slot {
    font-family: "Cascadia Code", "Consolas", monospace;
}

.xml-editor .mud-input > textarea.mud-input-slot {
    min-height: 28rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}
