﻿/* --- ReviCall app shell (Blazor) --- */
html, body {
    height: 100%;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #edf7f0 0%, #f7fbf8 100%);
}

/* MudBlazor: nenech layout přemalovat pozadí do bíla */
.mud-layout,
.mud-main-content {
    background: transparent !important;
}

/* Root */
.rc-app {
    min-height: 100vh;
}

/* === TOPBAR === */
.rc-topbar {
    /* Dense bývá nízký, dáme tomu jistou výšku */
    min-height: 64px !important;
    padding: 0 !important;
    overflow: visible !important;
}

    /* MudBlazor má toolbar uvnitř appbaru – vynutíme výšku a vertikální centrování */
    .rc-topbar .mud-toolbar,
    .rc-topbar .mud-toolbar-root,
    .rc-topbar .mud-appbar-content {
        min-height: 64px !important;
        height: 64px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
    }

/* topbar: držet pravý blok v 1 řádku a vertikálně uprostřed */
.rc-topbar-right {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    gap: 10px;
    height: 64px;
}

/* jazyk jako "pill" – hlavně vertikálně centrovat */
.rc-lang-pill,
.rc-lang-pill:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.92);
    /* pojistka proti "uříznutí" */
    margin: 0;
    position: relative;
    top: 0;
}

    .rc-lang-pill:hover {
        background: rgba(255,255,255,0.26);
        border-color: rgba(255,255,255,0.36);
    }

/* tlačítko: pryč s "mlhou" (focus/active) */
.rc-login-btn .mud-button-root,
.rc-login-btn .mud-button-root:focus,
.rc-login-btn .mud-button-root:active,
.rc-login-btn .mud-button-root:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.rc-login-btn .mud-button-root {
    color: #fff !important;
}
    /* některé verze MudBlazor kreslí overlay jako pseudo-element */
    .rc-login-btn .mud-button-root::before,
    .rc-login-btn .mud-button-root::after {
        box-shadow: none !important;
        filter: none !important;
        opacity: 0 !important;
    }

/* layout spacing pod appbarem */
.rc-body {
    display: flex;
    gap: 16px;
    padding: 16px;
    padding-top: 80px; /* 64px appbar + mezera */
}


/* když není sidebar (anon) */
.rc-body-anon .rc-main {
    width: 100%;
}


.rc-sidebar {
    width: 260px;
    flex: 0 0 260px;
}

.rc-main {
    flex: 1 1 auto;
    min-width: 0;
}

.rc-content {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* nav */
.rc-nav {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 10px;
}

.rc-nav-section {
    padding: 8px 12px 4px 12px;
    opacity: 0.65;
}

.rc-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #6a5af9; /* nebo barva tvého theme */
    cursor: default;
}


/* Přihlášení / Odhlásit – bílé písmo na AppBaru */
.rc-login-btn .mud-button-root {
    color: #fff !important;
    border-color: rgba(255,255,255,0.6);
}

    /* hover – jen lehce */
    .rc-login-btn .mud-button-root:hover {
        background-color: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.85);
    }

    /* aktivní / focus bez mlhy */
    .rc-login-btn .mud-button-root:focus,
    .rc-login-btn .mud-button-root:active,
    .rc-login-btn .mud-button-root:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }
/* jen text "Přihlásit se" */
.rc-login-btn-login .mud-button-label {
    color: #fff !important;
}

/* někdy je text i přímo na rootu – pojistka */
.rc-login-btn-login .mud-button-root {
    color: #fff !important;
}


.rc-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.rc-footer-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.rc-footer-links a {
    text-decoration: none;
}

.rc-footer-sep {
    margin: 0 8px;
    opacity: .6;
}

.rc-page {
    padding-top: 16px;
    padding-bottom: 24px;
}

.rc-surface {
    background: var(--mud-palette-surface);
}

.rc-muted {
    opacity: .8;
}

.rc-list {
    margin: 0;
    padding-left: 18px;
}

    .rc-list li {
        margin: 6px 0;
    }

/* responsivní */
@media (max-width: 1000px) {
    .rc-sidebar {
        width: 220px;
        flex-basis: 220px;
    }
}

@media (max-width: 800px) {
    .rc-body {
        flex-direction: column;
    }

    .rc-sidebar {
        width: 100%;
        flex-basis: auto;
    }
}
