/*
====================================================
 Sistema Laboratório de Extensão – UniMB
 Desenvolvido por: Thalia Justino
 Ano: 2026
====================================================
*/

/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: #f6f7f9;
    color: #1f2937;
}

/* =========================
   HEADER GLOBAL
========================= */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeIn .25s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* logo + texto */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.header-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #7a0c0d;
}

.header-subtitle {
    font-size: 12px;
    color: #6b7280;
}

/* =========================
   NAV
========================= */
.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    position: relative;
    padding: 6px 0;
    transition: color .2s ease;
}

.header-nav a:hover {
    color: #7a0c0d;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7a0c0d;
    transition: width .2s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.nav-highlight {
    font-weight: 600;
    color: #7a0c0d;
}

/* =========================
   CONTAINER (RESOLVE O PROBLEMA DO TEXTO COLADO NA LATERAL)
========================= */
.container {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 32px; /* 👈 padding lateral correto */
    animation: fadeSlideUp .35s ease-out;
}

/* =========================
   TÍTULOS
========================= */
h1 {
    font-size: 26px;
    color: #7a0c0d;
    margin-bottom: 24px;
}

h2 {
    font-size: 20px;
    color: #7a0c0d;
    margin-bottom: 18px;
}

h3 {
    font-size: 17px;
    color: #7a0c0d;
    margin-bottom: 16px;
}

/* =========================
   CARDS
========================= */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
    animation: fadeSlideUp .4s ease-out;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

/* =========================
   BOTÕES
========================= */
.button,
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #7a0c0d;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.button:hover,
button:hover,
.btn:hover {
    background: #5e090a;
    transform: translateY(-1px);
}

.button.secondary {
    background: #e5e7eb;
    color: #111827;
}

.button.secondary:hover {
    background: #d1d5db;
}

/* =========================
   FORMULÁRIOS
========================= */
label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7a0c0d;
    box-shadow: 0 0 0 3px rgba(122, 12, 13, 0.12);
}

/* =========================
   TABELAS
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th {
    background: #f3f4f6;
    font-weight: 600;
}

table th,
table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* =========================
   FOTOS DO RELATÓRIO (AGORA PEQUENAS 😌)
========================= */
.thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin: 6px 6px 6px 0;
    display: inline-block;
    vertical-align: top;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-size: 13px;
}

/* =========================
   ANIMAÇÕES
========================= */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .header-nav {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid #e5e7eb;
    }

    .container {
        margin: 24px auto;
        padding: 0 16px;
    }

    .card {
        padding: 22px;
    }

    .button,
    button,
    .btn {
        width: 100%;
    }
}

/* =========================
   TABELAS GRANDES (ESCALA)
========================= */

.table-compact table {
    font-size: 13px;
}

.table-compact th,
.table-compact td {
    padding: 8px 10px; /* antes era 12+ */
    vertical-align: top;
}

.table-compact th {
    background: #f1f3f5;
    font-weight: 600;
}

/* linhas mais próximas */
.table-compact tr {
    line-height: 1.25;
}

/* =========================
   BOTÕES COMPACTOS (LISTAS)
========================= */

.btn-sm,
.button-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* links de ação */
.action-link {
    font-size: 12px;
    color: #7a0c0d;
    text-decoration: none;
}

.action-link:hover {
    text-decoration: underline;
}

/* botão excluir discreto */
.action-danger {
    color: #dc2626;
    font-size: 12px;
}

/* =========================
   INPUTS COMPACTOS
========================= */

.input-sm {
    padding: 6px 8px;
    font-size: 12px;
    margin-bottom: 0;
}

/* =========================
   TURMAS DENTRO DA TABELA
========================= */

.turma {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
}

.turma .desv {
    font-size: 11px;
    color: #dc2626;
}

/* =========================
   BOTÕES COMPACTOS (TABELAS)
========================= */
.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    line-height: 1;
}

.btn-sm:hover {
    transform: none; /* evita pulo em tabelas */
}
