/* Decision Sphere look for the Radicale page on dav.decisionsphere.ia.br (omni/odoo_sso TS-016, 2026-11-19).
   Served by Caddy instead of Radicale's own css/main.css, which is loaded first (as radicale-main.css)
   so Radicale upgrades keep working; only colours, type and the login header are changed. */
@import url("radicale-main.css");
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(ds-PublicSans-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap; src: url(ds-SourceSerif4-600-latin.woff2) format('woff2'); }

:root, :root:root {
    --ds-blue: #1d4ed8; --ds-deep: #0f2f74; --ds-navy: #0a1838; --ds-light: #f1f5ff; --ds-accent: #93b4ff; --ds-line: #c9d4ec;
    --body-bg-color: #0a1838; --body-color: #1f2a44;
    --container-bg-color: #ffffff; --container-border-color: transparent; --container-box-shadow-color: rgba(2, 8, 23, .38);
    --container-h1-color: #0a1838; --tr-border-bottom-color: #e2e8f6; --details-border-color: #e2e8f6; --details-bg-color: #ffffff;
    --summary-hover-color: #1d4ed8; --loginscene-infcloudlink-color: #5b6478; --th-color: #5b6478;
    --logoutview-bg-color: #ffffff; --logoutview-color: #5b6478; --logoutview-border-bottom-color: #e2e8f6;
    --collectionsscene-article-border-color: #e2e8f6; --collectionsscene-article-box-shadow-color: rgba(15, 47, 116, .06);
    --input-select-border-color: #c9d4ec; --input-select-bg-color: #ffffff; --input-focus-visible-border-color: #1d4ed8;
    --button-color: #ffffff; --button-bg-color: #1d4ed8;
    --button-green-a-green-bg-color: #1d4ed8; --button-green-a-green-border-color: #1d4ed8;
    --button-green-hover-a-green-hover-bg-color: #0f2f74; --button-green-active-a-green-active-bg-color: #0f2f74;
    --button-blue-a-blue-bg-color: #1d4ed8; --button-blue-a-blue-border-color: #1d4ed8;
    --button-blue-hover-a-blue-hover-bg-color: #0f2f74; --button-blue-active-a-blue-active-bg-color: #0f2f74;
    --copy-btn-color: #1d4ed8; --copy-btn-hover-bg-color: #f1f5ff; --copy-btn-hover-color: #0f2f74;
    --loadingscene-bg-color: #0a1838;
}
@media (prefers-color-scheme: dark) { :root, :root:root { color-scheme: light; } }

body {
    font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 13pt;
    background:
        radial-gradient(circle at 85% 0%, rgba(59, 130, 246, .35), transparent 45%),
        radial-gradient(circle at 5% 100%, rgba(147, 180, 255, .16), transparent 40%),
        linear-gradient(160deg, #0f2f74 0%, #0a1838 100%) fixed;
}
.container { border-radius: 16px; box-shadow: 0 24px 60px rgba(2, 8, 23, .38); position: relative; padding: 2rem 2rem 1.5rem; }
.container::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #1d4ed8, #93b4ff); }
.container h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; letter-spacing: -.01em; }

/* Login header: sphere + "Decision Sphere" + DAV badge instead of the Radicale logo */
#loginscene .logocontainer { text-align: center; color: #5b6478; font-size: .9rem; }
#loginscene .logocontainer img, #loginscene .logocontainer br { display: none; }
#loginscene .logocontainer::before {
    content: ""; display: block; width: 76px; height: 74px; margin: 0 auto .6rem;
    background: url(ds-sphere.png) center / contain no-repeat; filter: drop-shadow(0 8px 18px rgba(15, 47, 116, .25));
}
#loginscene .logocontainer { font-size: 0; }
#loginscene .logocontainer::after {
    content: "Decision Sphere  ·  Calendars & Contacts"; display: block; margin-bottom: 1rem;
    font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem; font-weight: 600; color: #0a1838; white-space: pre;
}
#loginscene h1 { font-size: 1.1rem; font-family: 'Public Sans', system-ui, sans-serif; color: #5b6478; font-weight: 600; }

input, select, textarea { border-radius: 10px !important; font-family: inherit; }
input:focus-visible, select:focus-visible { box-shadow: 0 0 0 3px rgba(29, 78, 216, .18); }
button, a.green, a.blue, a.red, .fabcontainer a { border-radius: 10px; font-family: inherit; font-weight: 600; }
#logoutview { box-shadow: 0 1px 3px rgba(15, 47, 116, .08); }
