/* Estilo Geral */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
    overflow-x: hidden; /* Evita rolagem horizontal */
}

/* Index.php */
.gif-container {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.gif-container img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.gif-container img:hover {
    transform: scale(1.05);
}

/* Painel.php */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px; /* Reduzido pra caber melhor no celular */
}
.total-visitas {
    font-size: 28px;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    font-weight: 600;
    color: #2c3e50;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
th, td {
    padding: 15px;
    text-align: left;
}
th {
    background: #ecf0f1;
    color: #2c3e50;
    font-weight: 600;
}
tr {
    transition: background 0.3s ease;
}
tr:hover {
    background: #f9fbfc;
}
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.btn-edit { background: #3498db; color: #fff; }
.btn-delete { background: #e74c3c; color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.add-btn {
    width: 50px;
    height: 50px;
    background: #2ecc71;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 20px; /* Espaço acima */
}
.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%; /* Largura ajustável */
    max-width: 400px;
    animation: slideIn 0.3s ease;
}
.popup h2 {
    margin: 0 0 20px;
    color: #2c3e50;
    font-size: 22px;
}
.popup input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}
.popup button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.popup button:first-of-type { background: #2ecc71; color: #fff; }
.popup .cancel { background: #e74c3c; color: #fff; }
.popup button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .total-visitas {
        font-size: 20px;
        padding: 15px;
    }
    th, td {
        padding: 10px;
        font-size: 14px;
    }
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .gif-container img {
        max-width: 200px; /* Reduz o GIF no celular */
    }
    .add-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    table {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    th, td {
        display: block;
        width: 100%;
        text-align: center;
    }
    tr {
        margin-bottom: 10px;
        padding: 10px 0;
    }
    .btn {
        display: inline-block;
        margin: 5px auto;
    }
    .total-visitas {
        font-size: 18px;
    }
}
/* Adicionar ao final do style.css */
.gif-section {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}
.gif-section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin: 0 0 15px;
}
.gif-section select, .gif-section input[type="file"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.gif-section button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #2ecc71;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.gif-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Adicionar ao final do style.css */
.interval-section {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}
.interval-section h2 {
    color: #2c3e50;
    font-size: 22px;
    margin: 0 0 15px;
}
.interval-section input[type="number"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.interval-section button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #2ecc71;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.interval-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.interval-section p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #7f8c8d;
}