/* ZIPQR - folha de estilos principal */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* NAVBAR */
.navbar {
    width: 100%;
    background: #0089b3ff;
    color: #fff;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.navbar .brand {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 30px;
    color: #fff;
}

.asimovian-regular {
    font-family: "Asimovian", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.navbar .nav-links {
    margin-right: 30px;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1em;
    transition: color 0.2s;
    padding: 6px 12px;
    border-radius: 5px;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background: #17a2b8;
    color: #fff;
}

/* LAYOUT */
.layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto; /* Centraliza o layout principal */
}

.sidebar {
    width: 160px;
    min-height: 600px;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* CONTAINER (card central) */
.container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 0px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
}

/* TIPOGRAFIA BÁSICA */
h2 {
    color: #0056b3;
    margin-bottom: 25px;
}

/* FORMULÁRIOS */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form p {
    margin: 0;
    text-align: left;
    color: #555;
    font-size: 14px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

/* BOTÕES */
button {
    background: linear-gradient(to right, #0056b3, #004080);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform .2s ease, box-shadow .2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* LISTAS */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #f9f9f9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border-left: 5px solid #0056b3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

li strong {
    flex-grow: 1;
    margin-right: 15px;
    text-align: left;
}

.actions a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    color: #fff;
    margin-left: 5px;
    font-size: 14px;
    transition: opacity .3s ease;
}

.actions a:hover {
    opacity: .85;
}

.download-link {
    background-color: #28a745;
}

.qr-link {
    background-color: #17a2b8;
}

/* LINKS AUXILIARES */
.nav-link {
    display: inline-block;
    margin-top: 25px;
    background-color: #6c757d;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s ease;
}

.nav-link:hover {
    background-color: #5a6268;
}

/* DRAG & DROP */
.drop-zone {
    max-width: 100%;
    height: 200px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    color: #cccccc;
    border: 3px dashed #0056b3;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    transition: background-color .2s, border-color .2s;
}

.drop-zone--over {
    border-style: solid;
    background-color: #f0f8ff;
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    color: #888;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        display: none;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar .brand {
        margin-left: 0;
    }

    .navbar .nav-links {
        margin: 10px 0 0 0;
        display: flex;
        width: 100%;
        justify-content: space-around;
    }

    .navbar .nav-links a {
        margin: 0;
    }

    .container {
        max-width: 100%;
        padding: 20px;
    }
}

/* === BLOCO ÚNICO: Benefícios + FAQ (FULL-BLEED) === */
.full-bleed {
    width: 100%;
    background: inherit;
    padding: 28px 0;
    box-sizing: border-box;
}

.full-bleed > .inner {
    width: min(1100px, 96vw);
    margin: 0 auto;
}

/* Evita corte por wrappers que usam overflow:hidden */
main,
.container,
.page,
.content,
.wrapper {
    overflow: visible !important;
}

/* Grid das duas colunas (desktop) / uma coluna (mobile) */
.features-faq {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .features-faq {
        grid-template-columns: 1fr 1fr;
    }
}

.features-faq h2 {
    margin-bottom: 12px;
}

/* Benefícios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 700px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px; /* Alterado para 0 para cantos quadrados */
    padding: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.benefit-emoji {
    font-size: 20px;
    margin-bottom: 6px;
}

.benefit-card h3 {
    font-size: 16px;
    margin: 6px 0 4px;
}

.benefit-card p {
    color: #333;
    line-height: 1.55;
    font-size: 14px;
}

/* FAQ */
.features-faq details {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.features-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.features-faq summary::-webkit-details-marker {
    display: none;
}

.features-faq details[open] {
    background: #f9fafb;
}

.features-faq details div {
    margin-top: 8px;
    line-height: 1.6;
    color: #333;
}
/* Estilos Melhorados para a Página Code Session */
.session-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    transition: box-shadow 0.2s ease;
}

.session-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.session-card h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.session-card p {
    margin: 0;
    text-align: left;
    font-size: 0.9em;
    color: #666;
}

.session-card-body {
    flex-grow: 1;
}

.session-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#joinCode {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    letter-spacing: 3px;
    max-width: 160px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
}
#joinCode:focus {
    border-color: #0056b3;
    outline: none;
}

.join-form {
    flex-grow: 1;
    justify-content: flex-end;
}

#createdCode {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    background: #e0eafc;
    color: #0056b3;
    font-weight: 700;
    font-size: 1.1em;
}

.info-box {
    background-color: #eef8ff;
    border: 1px solid #cce7ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.info-box strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.info-box .pill {
    padding: 6px 12px;
    border-radius: 16px;
    background: #fff;
    color: #0056b3;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid #cce7ff;
    display: inline-block;
}
/* Garante que o botão de gerar sessão não mude de tamanho */
.session-card-body {
    flex-grow: 1;
    flex-shrink: 1; /* Permite que este elemento encolha se não houver espaço */
    min-width: 0;   /* Essencial para que o flex-shrink funcione corretamente com texto */
}

.session-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Impede que a área do botão encolha */
}