/* Resetando estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo da página */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
}

/* Cabeçalho */
header {
    background-color: #6200ea;
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
}

/* Formulário */
.form-section h2 {
    text-align: center;
    font-size: 2em;
    color: #6200ea;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.input-group {
    width: 100%;
    max-width: 600px;
}

.input-group label {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}

input[type="text"], input[type="url"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button.btn-submit {
    padding: 12px 25px;
    background-color: #6200ea;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.btn-submit:hover {
    background-color: #3700b3;
}

/* Tabelas */
.links-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.column {
    width: 48%; /* Cada coluna ocupa 48% da largura */
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.column h3 {
    font-size: 1.5em;
    color: #6200ea;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #6200ea;
    color: white;
    font-size: 1.1em;
}

td a {
    color: #6200ea;
    text-decoration: none;
    word-wrap: break-word; /* Quebra de linha para links longos */
    max-width: 250px; /* Limita o tamanho máximo do link visível */
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Exibe "..." quando o texto ultrapassa o limite */
}

td a:hover {
    color: #3700b3;
}

/* Botões de ação */
button.btn-edit, button.btn-delete {
    padding: 6px 12px;
    margin: 2px;
    background-color: #6200ea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

button.btn-edit:hover, button.btn-delete:hover {
    background-color: #3700b3;
}

button.btn-delete {
    background-color: #e60000;
}

button.btn-delete:hover {
    background-color: #b30000;
}

/* Responsividade */
@media (max-width: 768px) {
    .links-container {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }

    form input[type="url"] {
        width: 80%;
    }
}
