
/* styles.css */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: linear-gradient(145deg, #1a1a1a, #000000);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 165, 0, 0.3);
    border: 2px solid #ff6b00;
    width: 600px;
    max-width: 90vw;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 2em;
}

h1 i {
    margin-right: 10px;
    color: #ff6b00;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffcc00;
}

label i {
    margin-right: 8px;
    color: #ff6b00;
    width: 16px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 93%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #ff6b00;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #ffcc00;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b00, #ffcc00);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #ffcc00, #ff6b00);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

/* Estilos para a lista de contatos */
h2 {
    text-align: center;
    margin: 30px 0 20px 0;
    color: #ffcc00;
    font-size: 1.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h2 i {
    margin-right: 10px;
    color: #ff6b00;
}

#contactTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff6b00;
}

#contactTable thead {
    background: linear-gradient(135deg, #ff6b00, #ffcc00);
    color: #000;
}

#contactTable th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#contactTable th i {
    margin-right: 8px;
    color: #000;
}

#contactTable tbody tr {
    background-color: #1a1a1a;
    border-bottom: 1px solid #ff6b00;
    transition: all 0.3s ease;
}

#contactTable tbody tr:nth-child(even) {
    background-color: #0f0f0f;
}

#contactTable tbody tr:hover {
    background: linear-gradient(90deg, #1a1a1a, #2a1500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

#contactTable td {
    padding: 15px 12px;
    font-size: 14px;
    color: #ffcc00;
    border-bottom: 1px solid #ff6b00;
}

#contactTable tbody tr:last-child td {
    border-bottom: none;
}

/* Botão de deletar */
.delete-btn {
    background: linear-gradient(135deg, #ff3300, #ff6b00);
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #ff6b00, #ffcc00);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.5);
}

.delete-btn:active {
    transform: scale(0.95);
}

.delete-btn i {
    font-size: 14px;
}

/* Animação para novas linhas */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-contact {
    animation: slideIn 0.5s ease-out;
}

/* Estado vazio da tabela */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #ff6b00;
    font-style: italic;
}

.empty-state::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6b00'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsividade */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 15px;
    }
    
    #contactTable {
        font-size: 12px;
    }
    
    #contactTable th,
    #contactTable td {
        padding: 10px 8px;
    }
}
