:root {
    --app-page-bg: #f5f7fa;
    --app-border: #e5e9ef;
    --app-muted: #6c757d;
}

html, body { min-height: 100%; }
body {
    background: var(--app-page-bg);
    color: #212529;
}

.app-navbar {
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.app-navbar .navbar-brand svg { width: 20px; height: 20px; }
.app-navbar .nav-link svg,
.app-navbar .btn svg { width: 16px; height: 16px; }
.app-navbar .nav-link.active { font-weight: 600; }
.app-user-nav .nav-link { text-decoration: none; }
.app-user-nav .nav-link:hover { color: #fff !important; }

.app-main { padding-top: 1.5rem; padding-bottom: 2.5rem; }

.card {
    border-color: var(--app-border);
    border-radius: .75rem;
}
.card-header {
    background: #fff;
    border-bottom-color: var(--app-border);
    font-weight: 600;
}
.shadow-sm { box-shadow: 0 .125rem .5rem rgba(0,0,0,.06) !important; }

.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th {
    color: #495057;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.page-heading h1 { margin-bottom: .2rem; }

.btn svg { width: 16px; height: 16px; vertical-align: -3px; }
.badge { font-weight: 600; }

.form-control, .form-select { border-color: #ced4da; }
.form-label { font-weight: 500; }

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.auth-card { width: 100%; max-width: 520px; margin: 0 auto; }

@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse { padding-top: .75rem; padding-bottom: .5rem; }
    .app-user-nav { padding-top: .75rem; border-top: 1px solid rgba(255,255,255,.12); }
    .page-heading { flex-direction: column; align-items: stretch; }
}


/* Feedback / návrhy změn */
.feedback-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.2);
}
.feedback-launcher svg { width: 21px; height: 21px; }
.feedback-frame { width: 100%; height: min(72vh, 760px); border: 0; display: block; background: var(--app-page-bg); }
.feedback-thread-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    background: #fff;
}
.feedback-thread-filters .btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.feedback-thread-list {
    max-height: min(56vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.feedback-messages { max-height: 50vh; overflow-y: auto; background: #f8f9fa; }
.feedback-message {
    max-width: 88%;
    margin: 0 0 .8rem 0;
    padding: .75rem .9rem;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid var(--app-border);
}
.feedback-message-admin { margin-left: auto; background: #eef5ff; }
.feedback-message-body { white-space: normal; overflow-wrap: anywhere; }
.feedback-attachments { display: flex; flex-wrap: wrap; gap: .5rem; }
.feedback-screenshot {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border-radius: .5rem;
    border: 1px solid var(--app-border);
    background: #fff;
}
.feedback-embed { background: #fff; }
.feedback-embed .app-main { padding: 0; }

@media (max-width: 575.98px) {
    .feedback-launcher { right: .85rem; bottom: .85rem; }
    .feedback-frame { height: 78vh; }
    .feedback-message { max-width: 96%; }
}
