/* UtzIt – UZIN-Anpassungen auf Basis von Bootswatch "Superhero" */

/* Instanzfarben: Standard = UtzIt, überschrieben durch /theme.css aus config/config.php */
:root {
    --app-background: linear-gradient(15deg, #999, #333 100%);
    --app-navbar: #000;
    --app-accent: #000;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    padding-top: 72px;
    padding-bottom: 40px;
    background: var(--app-background);
    background-attachment: fixed;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.app-navbar {
    background: var(--app-navbar);
}

.app-navbar .dropdown-menu {
    background-color: var(--app-accent);
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
    color: #ebebeb;
    background-color: #4c7fb3;
}

.content-panel {
    padding: 2rem;
    background-color: rgba(43, 62, 80, 0.92);
    border-radius: 0.5rem;
}

.content-panel-large {
    padding: 4rem 2rem;
    text-align: center;
}

.shorten-form {
    max-width: 720px;
    margin: 0 auto;
}

.custom-ending-group,
.result-group {
    max-width: 560px;
}

.site-url-field {
    color: #f0ad4e;
    font-weight: bold;
}

/* QR-Code: weißer Rand (Ruhezone), damit Scanner ihn auf dunklem Hintergrund erkennen */
.qr-code {
    display: inline-block;
    padding: 16px;
    background-color: #fff;
    line-height: 0;
}

.link-table thead,
.table thead {
    background-color: var(--app-accent);
}

.table thead th {
    background-color: var(--app-accent);
}

.long-url-cell {
    max-width: 420px;
    word-break: break-all;
}

.edit-link summary,
.api-details summary,
.new-user summary {
    list-style: none;
}

.edit-link summary::-webkit-details-marker,
.api-details summary::-webkit-details-marker,
.new-user summary::-webkit-details-marker {
    display: none;
}

.edit-link form {
    min-width: 320px;
}

.api-panel {
    min-width: 260px;
}

.link-disabled td {
    opacity: 0.6;
}

/* Diagramme (IBCS: Ist-Werte einfarbig, direkte Beschriftung, keine Dekoration) */
.chart-title {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
}

.chart {
    display: block;
    width: 100%;
    height: auto;
}

.bar-actual {
    fill: #dfe3e8;
}

.chart-value,
.chart-axis-label {
    fill: #dfe3e8;
    font-size: 11px;
}

.chart-axis {
    stroke: #dfe3e8;
    stroke-width: 1;
}

.bar-table {
    max-width: 760px;
}

.bar-label {
    width: 35%;
    max-width: 240px;
}

.bar-cell {
    width: 55%;
    vertical-align: middle;
}

.bar-svg {
    display: block;
    width: 100%;
    height: 14px;
}

.bar-value {
    width: 10%;
    font-variant-numeric: tabular-nums;
}
