/*
 * Shared visual polish layered on top of the Bootstrap 5.3.3 CDN theme.
 * Keeps existing Bootstrap classes/markup untouched; only refines spacing,
 * color cohesion, typography and focus states.
 */

:root {
    --iost-bg: #f4f5f9;
    --iost-border: #e3e5ec;
    --iost-console-bg: #14161b;
    --iost-console-border: #2c2f38;
}

body {
    background-color: var(--iost-bg);
}

/* Top navigation */
.app-nav {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--iost-border);
}

.app-nav-user {
    font-weight: 600;
}

/* Login page */
.login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #eef1f8 0%, #e3e7f3 100%);
}

.login-card {
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--iost-border);
    border-radius: 0.75rem;
}

/* Cards */
.card {
    border-color: var(--iost-border);
}

/* Buttons: subtle hover/focus feedback without changing Bootstrap's palette */
.btn {
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    filter: brightness(0.96);
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #6ea8fe;
    outline-offset: 2px;
}

/* Story list rows */
.list-group-item {
    transition: background-color 0.15s ease;
}

.list-group-item-action:hover {
    background-color: #f8f9fc;
}

/* Story reading area: larger, calmer type for long-form content */
#storyContent {
    font-size: 1.05rem;
    line-height: 1.7;
}

#storyContent::-webkit-scrollbar {
    width: 10px;
}

#storyContent::-webkit-scrollbar-track {
    background: transparent;
}

#storyContent::-webkit-scrollbar-thumb {
    background-color: #c7cad3;
    border-radius: 6px;
}

/* Narrator label above each turn's text: reads as metadata, not part of the prose.
   Rendered as a flex row so a trailing rule (::after) fills the rest of the line. */
.story-line-narrator {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-line-narrator::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background-color: currentColor;
    opacity: 0.35;
}

/* Dark "console" controls bar: consistent rounded edges + spacing rhythm */
.story-controls {
    background-color: var(--iost-console-bg) !important;
    border-color: var(--iost-console-border) !important;
}

.generation-status-strip {
    border-radius: 0.35rem;
}

.retro-status-bar {
    border-radius: 0.35rem;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
