/* Zákaznický rozcestník účtu */
.account-page { min-width: 0; }
.account-container { width: 100%; margin: 0; }
.account-back { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin-bottom: 1rem; text-decoration: none; }
.account-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 280px)); gap: 1.25rem; }
.account-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem; min-height: 220px; padding: 1.75rem 1.25rem; color: #212529; background: #fff; border: 1px solid #e9ecef; border-radius: .5rem; text-align: center; text-decoration: none; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); transition: transform .2s, box-shadow .2s, border-color .2s; }
.account-tile-icon { font-size: 2.75rem; }
.account-tile { border-radius: 1rem; }
.account-page .card { border-radius: 1rem; overflow: hidden; }
.account-tile-create { order: 1; background: #0d6efd; color: #fff; border-color: #0d6efd; }
.account-tile-create .account-tile-description, .account-tile-create .account-tile-arrow { color: #fff; }
.account-tiles .account-tile-create:hover { background: #0b5ed7; color: #fff; }
.account-tile-applications { order: 2; }
.account-tile-horses { order: 3; }
.account-tile-details { order: 4; }
.account-profile-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.account-tile-title { font-size: 1.25rem; font-weight: 600; }
.account-tile-description { font-size: .875rem; color: #6c757d; }
.account-tile-arrow { color: #0d6efd; }
.account-tile:hover { color: #212529; border-color: #86b7fe; transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }
.account-tile:focus-visible, .account-back:focus-visible, .account-detail-link:focus-visible { outline: 3px solid #0d6efd; outline-offset: 4px; }
.account-application { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem; }
.account-application-info { min-width: 0; overflow-wrap: anywhere; }
.account-application-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
.account-subsystem-name { overflow-wrap: anywhere; min-width: 0; }
.account-detail-link { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.account-empty { border-style: dashed; }
@media (max-width: 767.98px) {
    .content.account-page { padding: 4.5rem 1rem 1.5rem !important; }
    .account-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .account-tile { min-height: 190px; padding: 1.25rem .75rem; }
    .account-tile-title { font-size: 1.125rem; }
    .account-application { align-items: stretch; flex-direction: column; gap: 1rem; }
    .account-application-meta { flex-direction: column; }
}
@media (max-width: 359.98px) {
    .account-tiles { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .account-tile { transition: none; }
    .account-tile:hover { transform: none; }
}

/* Základní rozložení pro sidebar a obsah */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.wrapper {
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.content {
    background-color: #f8f9fa; /* Jemné šedé pozadí pro moderní vzhled */
}

/* === SIDEBAR MOBILE BEHAVIOR === */

.sidebar {
    width: 250px;
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* logo area */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 998;
}

/* toggle button */
.sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

/* desktop default */
@media (min-width: 768px) {
    .sidebar {
        position: relative;
        transform: none !important;
    }

    .sidebar-overlay,
    .sidebar-toggle {
        display: none !important;
    }
}

/* mobile off-canvas */
@media (max-width: 767.98px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }
}

.sidebar.open ~ .sidebar-toggle {
    display: none;
}
body.sidebar-open .sidebar-toggle {
    display: none;
}

/* Plánování prací */
.planning-page {
    min-width: 0;
}

.planning-event-card {
    border-left: 4px solid #0d6efd;
}

.planning-live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #198754;
    box-shadow: 0 0 0 5px rgba(25, 135, 84, .15);
}

.planning-stat {
    border: 1px solid #dee2e6;
    border-left-width: 4px;
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.planning-stat span {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.planning-stat small {
    color: #6c757d;
    margin-top: .4rem;
}

.reward-form {
    min-width: 190px;
    max-width: 250px;
}

.note-form {
    min-width: 220px;
    max-width: 340px;
}

.position-form {
    min-width: 190px;
    max-width: 260px;
}
.sidebar {
    z-index: 1000;
}

.sidebar-toggle {
    z-index: 1100;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    z-index: 999;
}
.sidebar-logo {
    background: #ffffff;
    margin: -1rem -1rem 1rem -1rem; /* natáhne přes padding sidebaru */
    padding: 20px 10px;
    height: 80px; /* +20px oproti defaultu */
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-logo img {
    max-height: 50px;
    width: auto;
}
.sidebar {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    box-sizing: border-box;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar .nav-link > i {
    width: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
}
.sidebar-lang {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.lang-flag img {
    display: block;
    width: 26px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
}
.login-page {
    background: #f8f9fa;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
}

.login-header {
    background: #0d6efd; /* stejná modrá jako sidebar */
}

.login-logo {
    max-height: 50px;
}

.login-card .form-control {
    border-radius: 8px;
}

.login-card .btn {
    border-radius: 8px;
}

.task-description {
    line-height: 1.65;
    white-space: normal;
}

.task-comment {
    background: #f8f9fa;
}

/* Hlasový Kopilot */
.copilot-page {
    min-width: 0;
}

.copilot-call-card {
    min-height: 430px;
    background:
        radial-gradient(circle at 50% 25%, rgba(13, 110, 253, .12), transparent 42%),
        #fff;
}

.copilot-pulse {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    background: rgba(13, 110, 253, .1);
    border: 1px solid rgba(13, 110, 253, .2);
    font-size: 2.2rem;
    position: relative;
}

.copilot-pulse::before,
.copilot-pulse::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid rgba(13, 110, 253, .3);
    opacity: 0;
}

.copilot-pulse.is-active::before,
.copilot-pulse.is-active::after {
    animation: copilot-ring 1.8s ease-out infinite;
}

.copilot-pulse.is-active::after {
    animation-delay: .6s;
}

.copilot-pulse.is-speaking {
    color: #fff;
    background: #0d6efd;
}

@keyframes copilot-ring {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.55); opacity: 0; }
}

.copilot-call-button {
    min-width: 190px;
    border-radius: 999px;
    padding: .8rem 1.4rem;
    font-weight: 600;
}

.copilot-transcript {
    min-height: 430px;
    max-height: 600px;
    overflow-y: auto;
    background: #f8f9fa;
}

.copilot-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: #6c757d;
    text-align: center;
}

.copilot-empty i {
    font-size: 2rem;
    opacity: .55;
}

.copilot-entry {
    max-width: 86%;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-radius: .85rem;
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.copilot-entry-user {
    margin-left: auto;
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

.copilot-entry-system {
    max-width: 100%;
    background: #fff8e1;
    border-color: #ffe69c;
}

.copilot-entry-label {
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 700;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.copilot-entry-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

.copilot-example {
    height: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: .65rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.copilot-example i {
    width: 1.25rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .copilot-call-card,
    .copilot-transcript {
        min-height: 360px;
    }

    .copilot-entry {
        max-width: 94%;
    }
}
