:root {
    --primary-color: #5F959A;
    --primary-light: #7AACB1;
    --primary-dark: #4A7A7F;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --background-light: #F0F4F5;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.container {
    background-color: var(--text-light);
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
    box-sizing: border-box;
}

.portfolio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsividade */
    gap: 1rem;
    padding: 1rem;
}

.portfolio-item {
    background-color: var(--text-light);
    border: 1px solid var(--primary-light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(95, 149, 154, 0.2);
}

.thumbnail {
    width: 100%;
    height: auto; /* Mantém a proporção da imagem */
    object-fit: cover; /* Cobre o espaço do contêiner */
}

.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--text-light);
    margin: 8% auto;
    padding: 24px;
    border: 1px solid var(--primary-light);
    width: 80%;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-thumbnail {
    width: 25%;
    height: auto;
    margin-bottom: 10px;
}

/* Estilos para os Inputs */
.inputs-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.input-row {
    display: flex;
    flex-direction: row;
    gap: 16px; /* Espaço entre inputs */
    width: 100%;
}

.modal-input {
    padding: 1rem;
    border-radius: 9999px;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 1rem;
    border: 1px solid var(--primary-light);
    margin-bottom: 1rem;
    width: 48%;
    box-sizing: border-box; /* Inclui padding e border na largura */
    height: 40px;
}

.modal-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.75rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    width: 100%;
    margin-top: 16px; /* Adiciona espaço entre os inputs e o botão */
}

.modal-button:hover {
    background-color: var(--primary-light);
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .modal-content {
        width: 90%; /* Ajusta largura do modal */
    }

    .modal-input {
        width: 100%; /* Define a largura dos inputs para 100% */
    }

    .input-row {
        flex-direction: column; /* Organiza inputs em colunas */
        gap: 8px; /* Espaçamento menor em telas menores */
    }
}

/* Estilos para o campo de pesquisa */
.search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #007BFF; /* Cor de destaque ao focar */
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-update-thumbs{
    height: 50px;
    border-radius: 16px; 
    background-color: #4A7A7F;
    color: white;
    border-color: transparent;
    margin-top: 16px; /* Adiciona espaço acima do botão */
    width: fit-content; /* Ajusta a largura do botão */
}
.btn-update-thumbs:hover{
    background-color: #61a7af;
    cursor: pointer;
}

#btnImportCsv{
    height: 50px;
    margin-left: 30px;
    border-radius: 16px; 
    background-color: #4A7A7F;
    color: white;
    border-color: transparent;
    margin-top: 16px; /* Adiciona espaço acima do botão */
    width: fit-content; /* Ajusta a largura do botão */
}

/* Estilos para o grupo de input */
.input-group {
    display: flex;
    flex-direction: column; /* Define a direção do input-group como coluna */
    align-items: flex-start; /* Alinha os itens no início */
    margin-left: 16px;
    margin-bottom: 16px;
}

.text-container {
    margin: 16px 16px; /* Margem lateral de 16px */
}

.close-add:hover{
    cursor: pointer;
}

#addItemForm {
    margin: 16px;
    padding: 24px;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    background-color: var(--text-light);
}

#addItemForm h2 {
    margin-bottom: 16px;
}

#addItemForm .modal-input {
    margin-bottom: 12px;
}

#btnAddNewItem{
    width: 250px;
    height: 50px;
    border-radius: 16px; 
    background-color: #003a41;
    color: white;
    border-color: transparent;
    margin-top: 16px; /* Adiciona espaço acima do botão */
}

.button-group {
    display: flex;
    align-items: center; /* Alinha os botões verticalmente */
    justify-content: flex-start; /* Alinha os botões à esquerda */
}

.modal-button {
    /* ... (estilos existentes) ... */
    width: fit-content; /* Define a largura do botão como o conteúdo */
    margin-right: 16px; /* Adiciona espaço entre os botões */
}

.btn-update-thumbs{
    height: 50px;
    border-radius: 16px; 
    background-color: #4A7A7F;
    color: white;
    border-color: transparent;
    margin-top: 16px; /* Adiciona espaço acima do botão */
    width: fit-content; /* Ajusta a largura do botão */
}

/* Estilos para o Modal de Importação */
#importModal .modal-content {
    max-width: 600px; /* Ajuste a largura conforme necessário */
}

#columnMapping {
    margin-top: 1rem;
}

#columnMapping label {
    display: block;
    margin-bottom: 0.5rem;
}

#columnMapping select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--primary-light);
    margin-bottom: 1rem;
}