/* Definições básicas */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('bg.webp') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

/* Container principal */
.container {
    display: flex;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* Overlay para escurecer a imagem */
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(0, 194, 217, 0.9);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 24px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar ul li a:hover {
    background: #00A0B7;
}

/* Conteúdo principal */
.content {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 20px;
    color: #333;
    overflow-y: auto;
    position: relative;
}

/* Botão Criar Nova URL */
.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-create {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #00C2D9;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-create i {
    margin-right: 5px;
    font-size: 18px;
}

.btn-create:hover {
    background: #009EB8;
}

/* Formulário de login */
.login-form {
    width: 300px;
    margin: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00C2D9;
}

.login-form label {
    display: block;
    margin: 10px 0 5px;
}

.login-form input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: #00C2D9;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background: #009EB8;
}

/* Estilo da tabela */
.table-container {
    margin: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #00C2D9;
    color: #fff;
    text-align: center;
}

td {
    border-bottom: 1px solid #ddd;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

a {
    color: #00C2D9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilo da paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    color: #00C2D9;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 5px;
}

.pagination a.active {
    background-color: #00C2D9;
    color: white;
}

.pagination a:hover {
    background-color: #ddd;
}

/* Botões de ação */
.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 18px; /* Aumentar o tamanho dos ícones */
    transition: background 0.3s ease;
}

.btn-edit {
    background: #00C2D9;
}

.btn-edit:hover {
    background: #009EB8;
}

.btn-delete {
    background: #ff4d4d;
}

.btn-delete:hover {
    background: #e60000;
}

.btn-download {
    background: #8a2be2;
}

.btn-download:hover {
    background: #6a0dad;
}

.btn-back {
    background: #cccccc;
    color: #333;
}

.btn-back:hover {
    background: #aaaaaa;
}

.btn-ping {
    background: #28a745; /* Cor verde para indicar teste de ping */
}

.btn-ping:hover {
    background: #218838;
}

/* Estilo do formulário de cadastro */
.form-container {
    width: 600px;
    margin: auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
}

.form-container h1 {
    color: #00C2D9;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-container .form-table {
    width: 100%;
}

.form-container .form-table td {
    padding: 10px;
    vertical-align: middle;
}

.form-container input[type="text"],
.form-container input[type="url"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.form-container input[type="text"]:focus,
.form-container input[type="url"]:focus {
    border-color: #00C2D9;
    box-shadow: 0 0 5px rgba(0, 194, 217, 0.5);
}

.form-container .form-actions {
    text-align: right; /* Alinhar o botão de ação à direita */
}

.form-container button {
    padding: 10px 20px;
    background: #00C2D9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form-container button:hover {
    background: #009EB8;
}
