/*
 * Arquivo CSS Mesclado
 * Contém regras do "menor" e do "maior" código, sem remoção de duplicatas,
 * para evitar erros de compatibilidade e manter a estrutura original.
 */

/* ========================================================================= */
/* --- SEÇÃO DO CÓDIGO MENOR --- */
/* ========================================================================= */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f1f1; /* Mantendo fundo do seu styles.css */
    color: #121212;
    display: flex;
    margin: 0;
}

div {
    display: block;
    unicode-bidi: isolate;
}


/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 30px;
    margin-left: 250px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

#collectionsTitle {
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    color: #0447AC; /* cor do styles.css */
    font-weight: 500;
    margin: 0;
}

#btnNovaColecao {
    background-color: #0447AC; /* cor do styles.css */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

#btnNovaColecao:hover {
    background-color: #0f61db;
    transform: scale(1.05);
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus {
    border-color: #0447AC;
    box-shadow: 0 0 8px rgba(4, 71, 172, 0.2);
    outline: none;
}

/* Cards de Coleção */


.collection-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(4,71,172,0.3); /* sombra azul do styles.css */
}

.collection-card h3 {
    font-size: 20px;
    color: #0447AC; /* título azul */
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-pill {
    background-color: #e0f2f1;
    color: #004d40;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.item-count {
    font-size: 14px;
    color: #555;
}

.view-collection-button {
    background-color: #0447AC;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.2s;
}

.view-collection-button:hover {
    background-color: #0f61db;
    transform: scale(1.05);
}


/* ========================================================================= */
/* --- SEÇÃO DO CÓDIGO MAIOR --- */
/* ========================================================================= */

#texto-SuaFicha {
    position: absolute;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    color: #0447AC;
    left: 50%;
    transform: translateX(-50%);
    top:10px;
}

#Menu {
    position: absolute;
    top:20px;
    left: 20px;
    width: 40px;
    height: 40px;
    transition: 200ms ease-in-out;
}

#Menu:hover {
    transform: scale(1.05);
}

#pppic {
    position: absolute;
    top: 20px;
    left: 95%;
    object-fit: cover;
    transition: 200ms ease-in-out;
}

#pppic:hover {
    transform: scale(1.05);
}

#pppic2 {
    position: absolute;
    top: 8px;
    left: 0.5%;
    object-fit: cover;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #f1f1f1;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    z-index: 1000;
    padding-top: 60px;
}

#sidebar.visible {
    transform: translateX(0);
}

#sidebar.hidden {
    transform: translateX(-100%);
}

#texto-Perfil {
    position: absolute;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    color: #0447AC;
    left: 50%;
    transform: translateX(-50%);
    top:10px;
}

#caixa-infoPessoal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 60%;
    border: 2px solid #E0E0E0;
    background-color: white;
    border-radius: 12px;
}

#pill-Pessoal {
    position: absolute;
    top: 15%;
    left: 12.5%;
    width: 270px;
    height: 32px;
    border: 2px solid #121212;
    border-radius: 12px;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
}

#info-pessoalTexto {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: white;
    font-weight: bold;
}

#pill-Medica {
    position: absolute;
    top: 15%;
    left: 67.5%;
    width: 270px;
    height: 32px;
    border: 2px solid #F6F6F6;
    border-radius: 12px;
    background-color: #F6F6F6;
    display: flex;
    justify-content: center;
    align-items: center;
}

#info-medicaTexto {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #121212;
    font-weight: bold;
}

#btnRegistrar,
#btnSalvarItem,
#btnContinuarColecao,
#btnNovaColecao,
#btnAvatar,
#imagediv,
#btnConfigProximo,
.view-collection-button,
.add-item-button,
.edit-collection-button,
.delete-collection-button {
    background-color: #0447AC;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    position: relative; /* Mantém a posição relativa para o ::before */
    overflow: hidden; /* Mantém o overflow para o efeito ::before */
}

#btnRegistrar:hover,
#btnSalvarItem:hover,
#btnContinuarColecao:hover,
#btnNovaColecao:hover,
#btnAvatar:hover,
#imagediv:hover,
#btnConfigProximo:hover,
.view-collection-button:hover,
.add-item-button:hover,
.edit-collection-button:hover,
.delete-collection-button:hover {
    background-color: #0f61db;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(4, 71, 172, 0.3); /* Adicionado box-shadow para um efeito mais completo */
}

#btnRegistrar::before,
#btnSalvarItem::before,
#btnContinuarColecao::before,
#btnNovaColecao::before,
#btnAvatar::before,
#imagediv::before,
#btnConfigProximo::before,
.view-collection-button::before,
.add-item-button::before,
.edit-collection-button::before,
.delete-collection-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease;
}

#btnRegistrar:hover::before,
#btnSalvarItem:hover::before,
#btnContinuarColecao:hover::before,
#btnNovaColecao:hover::before,
#btnAvatar:hover::before,
#imagediv:hover::before,
#btnConfigProximo:hover::before,
.view-collection-button:hover::before,
.add-item-button:hover::before,
.edit-collection-button:hover::before,
.delete-collection-button:hover::before {
    left: 100%;
}

#btnRegistrar:hover::before,
#btnSalvarItem:hover::before,
#btnContinuarColecao:hover::before,
#btnNovaColecao:hover::before,
#btnAvatar:hover::before,
#imagediv:hover::before,
#btnConfigProximo:hover::before,
.view-collection-button:hover::before,
.add-item-button:hover::before,
.edit-collection-button:hover::before,
.delete-collection-button:hover::before {
    left: 100%;
}

#bodyAddItem,
#bodyViewCollection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    font-family: 'Inter', sans-serif;
    background-color: #f1f1f1;
}

#addItemH1,
#viewCollectionH1 {
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    color: #0447AC;
    font-weight: 500;
    margin-bottom: 20px;
}

#ppic {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 10px;
    left: 1%;
}

#nome {
    font-size: 20px;
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: medium;
    left: 9%;
    top: -3px;
}

#emailText {
    font-size: 20px;
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: medium;
    left: 9%;
    top: 25px;
    color: #828282;
}

#perfilEditar {
    font-size: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: medium;
    text-align: center;
    color: #0447AC;
}

#perfilh3 {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: medium;
    text-align: center;
    color: #000000;
}

#pergunta1 {
    font-size: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: medium;
    text-align: center;
    color:darkslateblue;
    top: 100px;
}

#btnAvatar {
    display: inline-block;
    padding: 12px 25px;
    background: #0447AC;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: white;
    text-align: center;
    transition: all 0.3s ease-in-out;
    border: none;
    position: relative;
    margin: 20px auto;
}

#avatarForm {
    text-align: center;
}

#imageinput {
    display: none;
}

#imagediv {
    position:relative;
    display: inline-block;
    padding: 12px 25px;
    background: #0447AC;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: white;
    text-align: center;
    transition: all 0.3s ease-in-out;
    justify-content: center;
    margin: 20px auto;
}

#avatarPreview {
    display: block;
    margin: 20px auto;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid #000000;
}

#btnConfigProximo {
    position:absolute;
    display: inline-block;
    padding: 12px 25px;
    background: #0447AC;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: white;
    text-align: center;
    transition: all 0.3s ease-in-out;
    justify-content: center;
    right: 20px;
    top: auto;
    bottom: 20px;
    width: 150px;
    height: 50px;
    border: none;
}

.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: #0d6efd;
    border-radius: 50%;
    animation: bubble-rise 15s linear forwards;
    z-index: -1;
}

@keyframes bubble-rise {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-110vh); opacity: 1; }
}

#btnContinuarColecao {
    padding: 10px 20px;
    background-color: #0447AC;
    color: white;
    font-weight: bold;
    border: 2px solid #0447AC;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    margin-right: 10px;
}

#btnContinuarColecao:hover {
    background-color: #0f61db;
    border-color: #0f61db;
    transform: scale(1.05);
}


#addItemParagraph {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
}

#addItemForm {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1.5px solid #e0e0e0;
}

#addItemForm label {
    display: block;
    text-align: left;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #121212;
}

#formContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    #formContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

#formContainer label,
#formContainer input,
#formContainer select {
    width: 100%;
}

#collectionsTitle {
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    color: #0447AC;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

#noCollectionsMessage {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #555;
    text-align: center;
}
.view-collection-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0447AC;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.back-button {
    background-color: #f1f1f1;
    color: #0447AC;
    border: 2px solid #0447AC;
}

.back-button:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.add-item-button {
    background-color: #0447AC;
    color: white;
    border: 2px solid #0447AC;
}

.edit-collection-button {
    background-color: #0447AC;
    color: white;
    border: 2px solid #0447AC;
}

.delete-collection-button {
    background-color: #ff3333;
    color: white;
    border: 2px solid #ff3333;
}

.delete-collection-button:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    transform: scale(1.05);
}

.collection-tags {
    margin-top: 10px;
}

.tag-pill {
    display: inline-block;
    background-color: #e0f2f1;
    color: #004d40;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 5px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
}

#formGrid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
    width: 100%;
}

#imageAndNameSection {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#imagePreviewContainer {
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

#itemImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#nome_do_item {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

#itemNameDisplay {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #0447AC;
    margin-top: 10px;
    min-height: 25px;
}

.item-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.item-card h3 {
    font-size: 20px;
    color: #0447AC;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.item-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.item-card li {
    font-size: 14px;
    margin-bottom: 8px;
}

.item-card strong {
    color: #121212;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(4, 71, 172, 0.05),
        transparent 50%,
        rgba(4, 71, 172, 0.05) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.item-card:hover::before {
    opacity: 1;
}

#noItemsMessage {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #555;
    text-align: center;
}

.action-buttons {
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-buttons a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #121212;
}

.item-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    width: 60%;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.item-image-container {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 0.1875rem solid #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#itemsGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    padding: 1.25rem;
}

.item-card:hover {
    transform: translateY(-0.3125rem);
}

@media (max-width: 900px) {
    .item-card {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .item-card {
        width: 95%;
    }
}