/* === Códigos Relativos ao Diretório Usuario/cadastro === */
/* Estilos gerais cadastro */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Limita a largura máxima para telas grandes */
    margin-top: 20px; /* Espaço no topo */
}

/* Estilos dos rótulos (labels) */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* Estilos dos campos de input e select */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px; /* Espaço entre os campos */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Estilo do botão de submit */
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    form {
        padding: 15px;
        margin-top: 10px;
        width: 90%; /* Ajusta o formulário para 90% da largura na tela pequena */
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select,
    input[type="submit"] {
        padding: 12px; /* Aumenta o padding para facilitar o toque em dispositivos móveis */
    }
}

@media (max-width: 480px) {
    form {
        width: 100%;
        padding: 10px;
    }

    input[type="submit"] {
        font-size: 14px; /* Ajusta o tamanho do botão em telas pequenas */
    }
}





/* === Códigos Relativos ao Diretório Usuario/cadastro === */
/* Estilos gerais para o perfil */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px; /* Aumenta um pouco a largura máxima */
}

h1 {
    text-align: center;
    color: #333;
}

/* Estilos para os rótulos */
label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-top: 15px;
}

/* Estilos gerais para os inputs, selects e textarea */
input, textarea, select, button {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Estilo específico para o botão */
button {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Estilo para o campo de texto (bio) */
textarea {
    resize: none;
    height: 120px;
}

/* Estilo para o campo de upload de foto */
input[type="file"] {
    padding: 5px;
    font-size: 14px;
}

/* Estilos para os campos de número */
input[type="number"] {
    width: 48%;
    display: inline-block;
    margin-right: 4%;
}

/* Adiciona espaço para o último campo de número */
input[type="number"]:last-of-type {
    margin-right: 0;
}

/* Estilo para notas pequenas, se houver */
.note {
    font-size: 12px;
    color: #888;
}

/* Media queries para melhorar a responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 90%;
    }
    
    input[type="number"] {
        width: 100%; /* Faz os campos de número ocuparem 100% em telas menores */
        margin-right: 0;
    }

    button {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 18px; /* Ajusta o título para telas pequenas */
    }

    input, textarea, select, button {
        padding: 12px;
    }
}




/* === Códigos Relativos ao Diretório Usuario/cadastro === */
/* Estilos gerais para o gerenciamento de interesses */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

h1 {
    color: #333;
    text-align: center;
}

/* Estilo do formulário */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Limita a largura do formulário */
}

/* Estilo dos rótulos */
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #555;
}

/* Estilos dos inputs e botões */
input, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Estilo do botão */
button {
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    form {
        padding: 15px;
        width: 90%; /* Ajusta a largura do formulário para dispositivos menores */
    }

    button {
        padding: 12px; /* Aumenta o padding do botão em telas menores */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 18px; /* Ajusta o título para telas pequenas */
    }

    input, button {
        padding: 12px; /* Aumenta o padding para facilitar o toque */
    }
}





/* === Códigos Relativos ao Diretório Usuario/cadastro === */
/* Página: ultimos_cadastros.php */
/* Reset completo de Margens e Padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Garantir que o body e html ocupem toda a altura e removam qualquer margem */
html, body {
    margin: 0; /* Remove qualquer margem extra */
    padding: 0; /* Remove qualquer padding extra */
    height: 100%; /* Garante que o body ocupe toda a altura da tela */
    overflow-x: hidden; /* Evita rolagem horizontal se não for necessária */
}

/* Cabeçalho */
header {
    background-color: #333;
    color: white;
    padding: 20px 0; /* Ajusta o padding do topo */
    text-align: center;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* Ajuste a altura do topo, pode aumentar ou diminuir conforme desejado */
    width: 100%;
    margin: 0; /* Remove qualquer margem extra */
    position: fixed; /* Fixando o topo */
    top: 0; /* Garante que o topo fique fixado no topo da tela */
    left: 0; /* Alinha o topo à esquerda */
    right: 0; /* Alinha o topo à direita */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra opcional */
}

/* Logotipo e navegação do topo */
header .logo {
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    margin-left: 50px; /* Espaço à esquerda da logo */
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 18px;
}

header nav a:hover {
    background-color: #444;
    border-radius: 5px;
}

/* Grid de Perfis */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Para desktops grandes, 4 colunas */
    gap: 20px;
    padding: 40px;
    justify-items: center;
    width: 100%;
}

.profile-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
    width: 100%;
    max-width: 280px;
}

.profile-card img.profile-photo {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 250px;
    border-radius: 10%;
    object-fit: cover;
    border: 3px solid #ddd;
    margin-bottom: 15px;
}

.profile-card h3 {
    font-size: 20px;
    color: #333;
    margin: 10px 0;
}

.profile-card p {
    font-size: 14px;
    color: #666;
}

.profile-card a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.profile-card a:hover {
    background-color: #0056b3;
}

/* Rodapé */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    width: 100%;
}

/* Responsividade para dispositivos menores */

/* Para telas grandes (desktops) */
@media (min-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(4, 1fr); /* Exibe 4 colunas em telas grandes */
    }

    header {
        padding: 20px 40px;  /* Maior padding para telas grandes */
        height: 120px;  /* Aumenta o topo */
    }

    header nav a {
        font-size: 20px; /* Fontes maiores para desktops */
    }
}

/* Para telas médias (tablets, entre 768px e 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    header {
        padding: 15px 20px;  /* Ajustando padding no topo */
    }

    header .logo {
        font-size: 22px;
        position: absolute;
        left: 10px;
    }

    header nav {
        justify-content: space-between;
        width: 100%;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr); /* Exibe 2 colunas para tablets */
    }

    header nav a {
        font-size: 16px;
    }
}

/* Para telas pequenas (celulares, até 767px) */
@media (max-width: 767px) {
    header {
        padding: 15px 20px;  /* Ajuste no padding do topo */
        text-align: left;
    }

    header .logo {
        font-size: 20px;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    header nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .profile-grid {
        grid-template-columns: 1fr; /* Exibe 1 coluna em telas pequenas */
    }

    .profile-card {
        max-width: 100%;
        padding: 15px;
    }

    .profile-card img.profile-photo {
        max-width: 200px;
        max-height: 200px;
    }

    .profile-card h3 {
        font-size: 18px;
    }

    .profile-card p {
        font-size: 12px;
    }

    .profile-card a {
        font-size: 12px;
        padding: 6px 12px;
    }
}
