@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
    --app-bg: #eef4fb;
    --app-text: #10243d;
    --app-accent: #0f766e;
}

body {
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    color: var(--app-text);
    background: radial-gradient(circle at top right, #dff4f1 0%, transparent 40%), linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: Poppins, Inter, "Segoe UI", Roboto, sans-serif;
}

.app-main {
    padding-top: 2rem;
    padding-bottom: 6.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 1rem 0.75rem 0.75rem;
    border: 1px solid #d7e4f5;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 251, 255, 0.88) 100%);
    box-shadow: 0 16px 36px rgba(11, 42, 71, 0.08);
    backdrop-filter: blur(3px);
}

.app-card {
    border: 1px solid #d7e4f5;
    box-shadow: 0 10px 24px rgba(11, 42, 71, 0.06);
    border-radius: 1rem;
    background-color: #fff;
}

.app-code {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
}

.navbar-brand {
    letter-spacing: 0.03em;
}

.btn {
    font-weight: 600;
}

.navbar .nav-link.active {
    color: #0d6efd !important;
    font-weight: 700;
    background-color: #e8f1ff;
    border-radius: 0.5rem;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 0.75rem;
    border-color: #ccd9ec;
}

.form-control:focus,
.form-select:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.15);
}

.app-footer-toolbar-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    z-index: 1030;
    pointer-events: none;
}

.app-footer-toolbar {
    width: fit-content;
    margin: 0 auto;
    border-radius: 999px;
    padding: 0.35rem;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.app-footer-btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #1e3a5f;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    transition: all 0.2s ease;
}

.app-footer-btn:hover,
.app-footer-btn:focus {
    background: #e8f1ff;
    color: #0d6efd;
}

.app-footer-icon {
    width: 1rem;
    height: 1rem;
}

.support-info-body .support-info-icons {
    display: none !important;
}

.sendlio-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.35rem;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #0d6efd;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.sendlio-help-trigger:hover,
.sendlio-help-trigger:focus {
    color: #0a58ca;
}

.metric-help-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.35rem;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.metric-help-hint:hover,
.metric-help-hint:focus-visible {
    background: #0b5ed7;
    color: #fff;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.metric-help-hint .bi {
    font-size: 0.7rem;
}

.report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    font-size: 0.85rem;
}

.report-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.report-chart-swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.2rem;
}

.report-chart-frame {
    width: 100%;
    min-width: 0;
}

.report-date-slider {
    border-top: 1px solid #e6edf6;
    padding-top: 0.85rem;
}

.report-date-slider .form-range {
    max-width: 100%;
}

.sendlio-line-chart {
    display: block;
    width: 100%;
    max-width: 100%;
}

.ck-editor__editable_inline {
    min-height: 420px;
}

@media (max-width: 575.98px) {
    .app-main {
        margin: 0.5rem;
        border-radius: 1rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-bottom: 7.25rem;
    }

    .app-footer-toolbar-wrap {
        bottom: 0.5rem;
        padding: 0 0.5rem;
    }

    .app-footer-toolbar {
        width: 100%;
        border-radius: 1rem;
        justify-content: space-between;
    }

    .app-footer-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 0.5rem;
    }
}


/* Template editor */
.sendlio-editor-toolbar {
    position: relative;
    z-index: 2;
}

.sendlio-editor-toolbar .btn.active {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.sendlio-editor-toolbar .sendlio-block-select {
    width: auto;
    min-width: 8.5rem;
}

.sendlio-color-toggle {
    position: relative;
}

.sendlio-color-indicator {
    position: absolute;
    left: 0.45rem;
    right: 1.35rem;
    bottom: 0.2rem;
    height: 3px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.sendlio-color-menu {
    width: 15rem;
}

.sendlio-color-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.3rem;
}

.sendlio-color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.3rem;
    padding: 0;
    cursor: pointer;
}

.sendlio-color-swatch:hover,
.sendlio-color-swatch:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 1px;
}

.sendlio-editor-readonly-banner {
    background: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
}

.sendlio-editor.is-readonly .sendlio-editor-content {
    background: var(--bs-tertiary-bg);
    cursor: default;
}

.sendlio-editor.is-readonly .sendlio-editor-toolbar {
    opacity: 0.55;
}
