/**
 * Leitura - Folha de Estilos Administrativa Simplificada
 * Alinhado com a identidade visual sóbria e minimalista de financas e contas
 */

:root {
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333333;
    font-family: var(--bs-body-font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Reduzir peso e tamanho dos títulos */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #212529;
}

/* Capas de Livros - Layout Limpo */
.book-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
}

/* Fallback de Capa Administrativo Sóbrio (Fundo Escuro Neutro) */
.book-cover-fallback {
    width: 100%;
    aspect-ratio: 2/3;
    background-color: #212529;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.book-cover-fallback .fallback-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.book-cover-fallback .fallback-letter {
    font-size: 3.5rem;
    font-weight: 700;
    opacity: 0.15;
    line-height: 1;
}

.book-cover-fallback .fallback-title {
    font-size: 0.8rem;
    font-weight: 500;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

/* Star Rating System */
.star-rating i {
    color: #dee2e6;
    font-size: 0.95rem;
}

.star-rating i.filled {
    color: #ffc107;
}

/* Interactive Star Rating in Modals */
.star-select {
    display: inline-flex;
    gap: 0.4rem;
}

.star-select i {
    color: #ced4da;
    font-size: 1.5rem;
    cursor: pointer;
}

.star-select i.active, .star-select i.active ~ i {
    /* Combinado com JS no app.js */
}

/* Diário de Bordo / Notas Pessoais Textarea */
.notes-textarea {
    width: 100%;
    min-height: 160px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

.notes-textarea:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
