* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #5E6C8A;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; /* Espaço para a navbar fixa */
}

/* Barra de Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(94, 108, 138, 0.95), rgba(114, 9, 189, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #D2709B, #7209BD);
    box-shadow: 0 4px 15px rgba(210, 112, 155, 0.3);
}

.nav-link.nav-external {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.nav-link.nav-external:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-text {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Menu Hamburger para Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animação do menu hamburger */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Corações animados de fundo */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.6;
    animation: floatUp 8s infinite linear;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.heart-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.0' width='80px' height='80px' viewBox='0 0 1280.000000 1189.000000' preserveAspectRatio='xMidYMid meet'%3E%3Cmetadata%3ECreated by potrace 1.15, written by Peter Selinger 2001-2017%3C/metadata%3E%3Cg transform='translate(0.000000,1189.000000) scale(0.100000,-0.100000)' fill='%23D2709B' stroke='none'%3E%3Cpath d='M2980 11763 c-848 -26 -1656 -457 -2177 -1163 -739 -1002 -839 -2418 -277 -3927 742 -1992 2563 -4072 5324 -6084 234 -171 529 -379 545 -385 18 -7 441 293 890 630 1976 1483 3442 3004 4339 4499 570 950 892 1837 993 2742 21 188 24 685 5 855 -52 462 -163 855 -343 1214 -166 330 -337 565 -602 823 -215 209 -424 359 -687 492 -449 228 -892 322 -1410 299 -991 -43 -1937 -632 -2597 -1618 -171 -255 -391 -672 -513 -972 -35 -87 -67 -155 -71 -150 -4 4 -35 77 -70 162 -82 201 -255 547 -362 727 -626 1046 -1484 1677 -2483 1828 -114 17 -375 32 -504 28z'/%3E%3C/g%3E%3C/svg%3E");
}

.heart-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.0' width='80px' height='80px' viewBox='0 0 1280.000000 1189.000000' preserveAspectRatio='xMidYMid meet'%3E%3Cmetadata%3ECreated by potrace 1.15, written by Peter Selinger 2001-2017%3C/metadata%3E%3Cg transform='translate(0.000000,1189.000000) scale(0.100000,-0.100000)' fill='%237209BD' stroke='none'%3E%3Cpath d='M2980 11763 c-848 -26 -1656 -457 -2177 -1163 -739 -1002 -839 -2418 -277 -3927 742 -1992 2563 -4072 5324 -6084 234 -171 529 -379 545 -385 18 -7 441 293 890 630 1976 1483 3442 3004 4339 4499 570 950 892 1837 993 2742 21 188 24 685 5 855 -52 462 -163 855 -343 1214 -166 330 -337 565 -602 823 -215 209 -424 359 -687 492 -449 228 -892 322 -1410 299 -991 -43 -1937 -632 -2597 -1618 -171 -255 -391 -672 -513 -972 -35 -87 -67 -155 -71 -150 -4 4 -35 77 -70 162 -82 201 -255 547 -362 727 -626 1046 -1484 1677 -2483 1828 -114 17 -375 32 -504 28z'/%3E%3C/g%3E%3C/svg%3E");
}

.heart-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.0' width='80px' height='80px' viewBox='0 0 1280.000000 1189.000000' preserveAspectRatio='xMidYMid meet'%3E%3Cmetadata%3ECreated by potrace 1.15, written by Peter Selinger 2001-2017%3C/metadata%3E%3Cg transform='translate(0.000000,1189.000000) scale(0.100000,-0.100000)' fill='%23454545' stroke='none'%3E%3Cpath d='M2980 11763 c-848 -26 -1656 -457 -2177 -1163 -739 -1002 -839 -2418 -277 -3927 742 -1992 2563 -4072 5324 -6084 234 -171 529 -379 545 -385 18 -7 441 293 890 630 1976 1483 3442 3004 4339 4499 570 950 892 1837 993 2742 21 188 24 685 5 855 -52 462 -163 855 -343 1214 -166 330 -337 565 -602 823 -215 209 -424 359 -687 492 -449 228 -892 322 -1410 299 -991 -43 -1937 -632 -2597 -1618 -171 -255 -391 -672 -513 -972 -35 -87 -67 -155 -71 -150 -4 4 -35 77 -70 162 -82 201 -255 547 -362 727 -626 1046 -1484 1677 -2483 1828 -114 17 -375 32 -504 28z'/%3E%3C/g%3E%3C/svg%3E");
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.heart:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.heart:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.heart:nth-child(4) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.heart:nth-child(5) {
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.heart:nth-child(6) {
    left: 80%;
    animation-delay: 4s;
    animation-duration: 8.5s;
}

.heart:nth-child(7) {
    left: 90%;
    animation-delay: 2.5s;
    animation-duration: 7.5s;
}

.heart:nth-child(8) {
    left: 40%;
    animation-delay: 5s;
    animation-duration: 6s;
}

@keyframes floatUp {
    0% {
        bottom: -50px;
        transform: translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateX(20px) rotate(180deg);
    }
    100% {
        bottom: 100vh;
        transform: translateX(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* Container principal */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Seções */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card de cadastro */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Formulário */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.preview-container {
    margin-top: 15px;
    text-align: center;
}

#image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(116deg, #D27070, #C778FF);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 112, 155, 0.4);
}

/* Cabeçalho da galeria */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    background: linear-gradient(116deg, #D27070, #C778FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contadores de tempo */
.time-counters {
    margin: 20px 0;
}

.time-counters h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    line-height: 1.4;
}

.time-counters span {
    color: #D2709B;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.gallery-header p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: justify;
    overflow-y: auto;
    max-height: 200px;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
}

/* Container de busca */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Abas de navegação */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(45deg, #D2709B, #7209BD);
    box-shadow: 0 4px 15px rgba(210, 112, 155, 0.3);
}

/* Grid da galeria - Design totalmente responsivo */
.photo-grid {
    display: grid;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
    /* Desktop: 4 cards por linha */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    transition: all 0.3s ease;
}

/* Tablet grande (1024px - 1200px): 4 cards */
@media (max-width: 1200px) and (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

/* Tablet médio (768px - 1023px): 3 cards */
@media (max-width: 1023px) and (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 15px 0;
    }
}

/* Tablet pequeno (600px - 767px): 2 cards */
@media (max-width: 767px) and (min-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 15px 0;
    }
}

/* Mobile (até 599px): 1 card por linha */
@media (max-width: 599px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 0;
    }
}

.photo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
}

/* Responsividade para photo-card */
@media (max-width: 1023px) {
    .photo-card {
        max-width: 100%;
    }
}

@media (max-width: 599px) {
    .photo-card {
        max-width: 320px;
        margin: 0 auto;
    }
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: center;
    background: rgba(0, 0, 0, 0.1);
}

.photo-info {
    padding: 15px;
}

.photo-info h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.photo-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.empty-state p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Botão flutuante */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #D2709B, #7209BD);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(210, 112, 155, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(210, 112, 155, 0.6);
}

.btn-text {
    display: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.floating-btn.rotate .btn-icon {
    transform: rotate(45deg);
}

/* Estilos para gerenciamento de memórias */
.management-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.filter-group input {
    flex: 2;
}

.filter-group select {
    flex: 1;
}

.management-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.memories-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.memory-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.memory-item:hover {
    background-color: #f8f9fa;
}

.memory-item:last-child {
    border-bottom: none;
}

.memory-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.memory-info {
    flex: 1;
    min-width: 0;
}

.memory-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.memory-category {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.memory-category.passado {
    background-color: #e3f2fd;
    color: #1976d2;
}

.memory-category.presente {
    background-color: #e8f5e8;
    color: #388e3c;
}

.memory-category.futuro {
    background-color: #fff3e0;
    color: #f57c00;
}

.memory-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.memory-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #2196f3;
    color: white;
}

.btn-edit:hover {
    background-color: #1976d2;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    font-size: 14px;
    color: #666;
}

/* Contador de caracteres */
.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.error {
    color: #f44336;
}

/* Botões flutuantes múltiplos */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn .btn-text {
    font-size: 10px;
    margin-top: 2px;
}

.floating-btn .btn-icon {
    font-size: 16px;
}

/* Modal para edição */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.modal .close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal .close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.char-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

.warning-text {
    color: #e74c3c;
    font-size: 0.9rem;
    margin: 10px 0;
    font-style: italic;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions button {
        width: 100%;
    }
}

/* Responsividade para gerenciamento */
@media (max-width: 768px) {
    /* Navbar responsiva */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(94, 108, 138, 0.98), rgba(114, 9, 189, 0.98));
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 5px 0;
    }

    .nav-link {
        padding: 15px 30px;
        margin: 0 20px;
        border-radius: 15px;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .nav-container {
        padding: 0 15px;
    }

    body {
        padding-top: 80px;
    }
    
    .management-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
        flex-direction: column;
    }
    
    .management-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .memory-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .memory-thumbnail {
        margin-right: 0;
        align-self: center;
    }
    
    .memory-actions {
        align-self: stretch;
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

/* Responsividade adicional para telas muito pequenas */
@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 12px 20px;
        margin: 0 10px;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    .nav-icon {
        font-size: 1.1rem;
    }
    
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .nav-menu {
        top: 70px;
    }
}

/* Estilo personalizado da barra de rolagem */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(94, 108, 138, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #D2709B, #7209BD);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b9d, #9d4edd);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #c5608a, #5f0899);
}

::-webkit-scrollbar-corner {
    background: rgba(94, 108, 138, 0.3);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #D2709B rgba(94, 108, 138, 0.3);
}

/* Estilo específico para o elemento .gallery-header p */
.gallery-header p::-webkit-scrollbar {
    width: 6px;
}

.gallery-header p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.gallery-header p::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #D2709B, #7209BD);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gallery-header p::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b9d, #9d4edd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Estilos do Relatório de Memórias */
.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-card .stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #D2709B;
    margin-bottom: 10px;
    display: block;
}

.stat-card .stat-label {
    color: #fff;
    font-size: 0.9em;
    opacity: 0.8;
}

.advanced-filters {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    color: #fff;
    margin-bottom: 5px;
    font-size: 0.9em;
    opacity: 0.9;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.filter-group select option {
    background: #2c3e50;
    color: #fff;
}

.bulk-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bulk-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bulk-btn.export {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.bulk-btn.delete {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.bulk-btn.clear {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.bulk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bulk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.memory-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.memory-card.selected {
    border-color: #D2709B;
    box-shadow: 0 0 20px rgba(210, 112, 155, 0.3);
}

.memory-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.memory-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.memory-content {
    padding: 15px;
}

.memory-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    cursor: pointer;
}

.memory-title:hover {
    color: #D2709B;
}

.memory-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.memory-category {
    background: linear-gradient(135deg, #D2709B, #7209BD);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
}

.memory-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.memory-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.memory-btn.edit {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.memory-btn.delete {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.memory-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pagination-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.items-per-page select {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, #D2709B, #7209BD);
    border-color: #D2709B;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-state-enhanced {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state-enhanced .empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-enhanced h3 {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.empty-state-enhanced p {
    font-size: 0.9em;
    line-height: 1.5;
}

/* Estilos da Tabela de Memórias */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.memories-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    font-size: 0.9rem;
}

.memories-table thead {
    background: linear-gradient(135deg, rgba(210, 112, 155, 0.3), rgba(114, 9, 189, 0.3));
    position: sticky;
    top: 0;
    z-index: 10;
}

.memories-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.memories-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.memories-table tbody tr {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.memories-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.memories-table tbody tr.selected {
    background: rgba(210, 112, 155, 0.2);
    border-left: 4px solid #D2709B;
}

/* Colunas específicas */
.select-column {
    width: 50px;
    text-align: center;
}

.image-column {
    width: 80px;
    text-align: center;
}

.title-column {
    min-width: 150px;
    max-width: 200px;
}

.description-column {
    min-width: 200px;
    max-width: 300px;
}

.category-column {
    width: 100px;
}

.date-column {
    width: 120px;
}

.size-column {
    width: 80px;
}

.actions-column {
    width: 150px;
    text-align: center;
}

/* Imagem na tabela */
.table-memory-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.table-memory-image:hover {
    transform: scale(1.1);
    border-color: #D2709B;
    box-shadow: 0 4px 15px rgba(210, 112, 155, 0.3);
}

/* Título editável */
.table-memory-title {
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
    word-wrap: break-word;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-memory-title:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #D2709B;
}

/* Descrição */
.table-memory-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Categoria */
.table-memory-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.table-memory-category.viagem {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.table-memory-category.familia {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #8e2de2;
}

.table-memory-category.amigos {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #4a00e0;
}

.table-memory-category.trabalho {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.table-memory-category.hobby {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #ff8a80;
}

.table-memory-category.especial {
    background: linear-gradient(135deg, #d299c2, #fef9d7);
    color: #8e2de2;
}

/* Data */
.table-memory-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Tamanho */
.table-memory-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-align: right;
}

/* Botões de ação */
.table-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.table-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #fff;
    min-width: 60px;
    justify-content: center;
}

.table-action-btn.edit {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.table-action-btn.edit:hover {
    background: linear-gradient(135deg, #43a3f5, #00d4ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.table-action-btn.delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.table-action-btn.delete:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.table-action-btn.view {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #4a00e0;
}

.table-action-btn.view:hover {
    background: linear-gradient(135deg, #96e6e1, #fcc5d8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
}

/* Checkbox personalizado */
.table-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #D2709B;
    cursor: pointer;
}

/* Estado vazio da tabela */
.table-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.table-empty-state .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.table-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.table-empty-state p {
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsividade da tabela */
@media (max-width: 1200px) {
    .description-column {
        max-width: 200px;
    }
    
    .table-memory-description {
        max-width: 180px;
        -webkit-line-clamp: 1;
    }
}

@media (max-width: 992px) {
    .memories-table {
        font-size: 0.85rem;
    }
    
    .memories-table th,
    .memories-table td {
        padding: 10px 8px;
    }
    
    .title-column {
        max-width: 150px;
    }
    
    .description-column {
        max-width: 150px;
    }
    
    .table-memory-title {
        max-width: 130px;
    }
    
    .table-memory-description {
        max-width: 130px;
    }
    
    .table-action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .table-action-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
        min-width: 50px;
    }
}

@media (max-width: 768px) {
    .table-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .memories-table {
        font-size: 0.8rem;
    }
    
    .memories-table th,
    .memories-table td {
        padding: 8px 6px;
    }
    
    /* Ocultar colunas menos importantes em mobile */
    .size-column,
    .date-column {
        display: none;
    }
    
    .description-column {
        max-width: 120px;
    }
    
    .table-memory-description {
        max-width: 100px;
        font-size: 0.75rem;
    }
    
    .table-memory-image {
        width: 40px;
        height: 40px;
    }
    
    .table-action-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
        min-width: 45px;
    }
}

@media (max-width: 480px) {
    .table-wrapper {
        border-radius: 8px;
    }
    
    /* Em telas muito pequenas, mostrar apenas informações essenciais */
    .description-column {
        display: none;
    }
    
    .title-column {
        max-width: 120px;
    }
    
    .table-memory-title {
        max-width: 100px;
        font-size: 0.85rem;
    }
    
    .table-action-buttons {
        gap: 2px;
    }
}

/* Animações de carregamento para a tabela */
.table-loading {
    opacity: 0.6;
    pointer-events: none;
}

.table-loading tbody tr {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
}

/* Estilos para edição inline */
.inline-edit-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    width: 100%;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.inline-edit-input:focus {
    border-color: #D2709B;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(210, 112, 155, 0.2);
}

/* Responsividade para o relatório */
@media (max-width: 768px) {
    .report-stats {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions {
        justify-content: center;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-enhanced {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
}