:root {
    --primary-color: #FFB347; 
    --secondary-color: #00BCD4; 
    --accent-color: #FF6B7A; 
    --text-color: #1A237E; 
    --background-color: #E3F2FD; 
    --coral-accent: #d81b60;
    --coral-secondary: #FFB74D; 
}

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

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background: transparent;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: 
        linear-gradient(120deg, rgba(179, 229, 252, 0.6) 0%, rgba(227, 242, 253, 0.6) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.3) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(3, 169, 244, 0.3) 0%, transparent 60%);
    background-size: 400% 400%;
    animation: subtle-waves 15s ease-in-out infinite;
    will-change: background-position;
}

@keyframes subtle-waves {
    0% {
        background-position: 0% 50%;
        opacity: 0.7;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.5;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.7;
    }
}

header {
    text-align: center;
    padding: 4rem 1rem;
}

h1, h2 {
    font-family: 'Baloo 2', cursive;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.book-cover {
    max-width: 700px;
    margin: 2rem auto;
}

.book-cover-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.book-cover-image:hover {
    transform: scale(1.02);
}

.cta-button {
    display: inline-block;
    background: var(--coral-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: scale(1.05);
    background: var(--coral-secondary);
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#about, #launch{
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 2rem auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 100px;
}

.launch-info p {
    margin: 1rem 0;
    font-size: 1.2rem;
}

.autora-section {
    padding: 4rem 2rem;
    background-color: #e0f7fa; /* Azul claro suave */
  }
  
  .autora-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .autora-text {
    flex: 1 1 400px;
    font-family: 'Quicksand', sans-serif;
    color: #333;
  }
  
  .autora-text h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00796b; /* Verde escuro suave */
  }
  
  .autora-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .autora-image {
    flex: 1 1 300px;
    text-align: center;
  }
  
  .autora-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .pre-registro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
  }
    .preRegisterForm-container {
        flex: 1 1 300px;
        margin-top: -33px;
    }
.pre-registro-text{
    flex: 1 1 400px;
    font-family: 'Quicksand', sans-serif;
    color: #333;
    text-align: left;
    /* align-content: revert-layer; */
    margin-right: 45px;
    font-size: 22px;
}
/* Add media query for small screens */
@media (max-width: 768px) {
    .pre-registro-text {
        font-size: 16px;
        margin-right: 0;
        text-align: center;
    }
    
    .pre-registro-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}
form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
}

input[type="tel"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-family: 'Quicksand', sans-serif;
}

input[type="tel"]:invalid {
    border-color: var(--accent-color);
}

button {
    width: 100%;
    padding: 1rem;
    background: var(--coral-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background: var(--coral-secondary);
}

.hidden {


    display: none !important
}

.form-group {
    margin-bottom: 1rem;
}

#addressGroup {
    display: none;
}

#thankYouMessage {
    text-align: left;
    padding: 2rem;
    background: #E0F7FA;
    border-radius: 10px;
    margin-top: 2rem;
    border: 2px solid var(--secondary-color);
    max-width: 500px;
    margin: 2rem auto;
}

#thankYouMessage h3 {
    color: var(--coral-accent);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Baloo 2', cursive;
}

#thankYouMessage p {
    margin-bottom: 1rem;
}

.payment-info, .delivery-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.delivery-info ul {
    list-style: none;
    padding-left: 1rem;
}

.delivery-info li {
    margin: 0.5rem 0;
}

.confirmation-note {
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--secondary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: white;
    margin-top: 4rem;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--coral-accent);
    text-decoration: none;
    margin: 0 1rem;
}

.social-links a:hover {
    color: var(--coral-secondary);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
    height: 100%; /* garante altura cheia no grid */
    aspect-ratio: 4/3; /* mantém proporção visual nos cards */
}

.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* preenche o espaço cortando o excesso */
    object-position: center;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-caption {
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    margin-top: 1rem;
}

.swimming-fish {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

.fish {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: swim 15s infinite linear;
}

.fish-1 {
    top: 20%;
    animation-delay: 0s;
}

.fish-2 {
    top: 60%;
    animation-delay: -7s;
}

.octopus {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 40%;
    animation: float 8s infinite ease-in-out;
}

@keyframes swim {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

.fish-tail {
    transform-origin: 100% 50%;
    animation: wiggle 1s infinite ease-in-out;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

.octopus path {
    animation: wave 3s infinite ease-in-out;
}

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.1);
    }
}

/* Admin Panel Specific Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background-color);
}

.admin-controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-button {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: var(--coral-accent);
    transform: translateY(-2px);
}

.secondary-button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: var(--coral-secondary);
    transform: translateY(-2px);
}

.registration-list {
    overflow-x: auto;
    background: var(--background-color);
    border-radius: 10px;
    padding: 1rem;
}

#registrationTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#registrationTable th,
#registrationTable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#registrationTable th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
}

#registrationTable tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#registrationTable tr:hover {
    background: #f5f5f5;
}

#registrationTable tr.selected {
    background: var(--background-color);
}

.paid {
    color: #4CAF50;
    font-weight: 600;
}

.unpaid {
    color: #f44336;
    font-weight: 600;
}

/* Admin Panel Button Styles */
.admin-container .button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-container button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#logoutBtn {
    background-color: #ff4757;
    color: white;
}

#logoutBtn:hover {
    background-color: #ff6b81;
    transform: translateY(-2px);
}

#exportCSV {
    background-color: #2ed573;
    color: white;
}

#exportCSV:hover {
    background-color: #7bed9f;
    transform: translateY(-2px);
}

#togglePaid {
    background-color: #1e90ff;
    color: white;
}

#togglePaid:hover {
    background-color: #70a1ff;
    transform: translateY(-2px);
}

.admin-container button:disabled {
    background-color: #b2bec3;
    cursor: not-allowed;
    transform: none;
}

/* Admin Login Form Styles */
#admin-login .admin-container {
    max-width: 400px;
}

#adminLoginForm {
    background: var(--background-color);
}

#adminLoginForm .form-group {
    margin-bottom: 1.5rem;
}

#adminLoginForm input {
    background: white;
}

#adminLoginForm button {
    background: var(--secondary-color);
    margin-top: 1rem;
}

#adminLoginForm button:hover {
    background: var(--coral-accent);
}

.fa-icon-fallback {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-controls {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
    
    #registrationTable {
        font-size: 0.9rem;
    }
    
    #registrationTable th,
    #registrationTable td {
        padding: 0.75rem 0.5rem;
    }
    
    .offer-container {
        flex-direction: column-reverse;
    }
    
    .offer-image img {
        max-width: 200px;
        margin-bottom: 2rem;
    }
}