* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 40px;
    color: #222;
}

.topo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.topo h1 {
    position: absolute;
    left: 0;
    font-size: 24px;
    color: #222;
    margin: 0;
}

.botao-adicionar {
    background: #0B4EA2;
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}
.botao-adicionar:hover { background: #093c80; }

.grade-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    width: 220px;
    height: 90px;
    border-radius: 8px;
    background: linear-gradient(180deg, #7B5CFA 0%, #63E1E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card-adicionar span { font-size: 28px; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.escondido { display: none; }

.modal {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h2 { margin-top: 0; }
.modal label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #444;
}
.modal input, .modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.linha-url { display: flex; align-items: center; }
.prefixo-url {
    background: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.linha-url input {
    border-radius: 0 6px 6px 0;
}

.mensagem-erro {
    color: #c0392b;
    font-size: 13px;
    margin-top: 10px;
}

.linha-botoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.botao-primario {
    background: #0B4EA2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.botao-secundario {
    background: #eee;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.rodape {
    margin-top: 60px;
    text-align: center;
}
.rodape a {
    color: #999;
    font-size: 12px;
    text-decoration: none;
}
.rodape a:hover { color: #666; }

@media (max-width: 600px) {
    body { padding: 20px; }
    .topo { flex-direction: column; align-items: flex-start; gap: 14px; }
    .topo h1 { position: static; }
    .card { width: 100%; }
}
