/* Custom CSS provided by Reinaldo and additions for new layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack children vertically */
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure root takes full viewport height */
}

.main-content {
    flex-grow: 1; /* Allows main content to take available space */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* Alterado para centralizar verticalmente */
}

.container {
 max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Estilos para Content Section */
.content-section {
   max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px; /* Add padding for the header */
}

.header h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #c3f53c, #f7d794);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header p {
    color: #ccc; /* Adjusted for better visibility on dark background */
}

.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.3rem;
    color: #c3f53c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #f7d794;
}

.required {
    color: #ff6b6b;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #c3f53c;
    box-shadow: 0 0 0 3px rgba(195, 245, 60, 0.2);
}
option {color:#333;}
textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    text-align: right;
    font-size: 0.9rem;
    margin-top: 5px;
    color: #888;
}

.char-counter.valid {
    color: #4ade80;
}

.char-counter.invalid {
    color: #ef4444;
}

/* Toggle Item Styles (used for social media and objective selection) */
.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.toggle-item {
    display: flex;
    flex-direction: column; /* Changed to column for better icon/text alignment */
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center; /* Center text within the item */
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-item.active {
    background: linear-gradient(45deg, #c3f53c, #f7d794);
    border-color: #c3f53c;
    box-shadow: 0 0 0 3px rgba(195, 245, 60, 0.2);
}
.toggle-item.active .text-lg, /* For emojis */
.toggle-item.active .toggle-label,
.toggle-item.active .text-xs { /* For chars count */
    color: #1a1a2e; /* Dark text for contrast on light gradient background */
}

.toggle-label {
    font-size: 0.9rem;
    color: #ffffff;
    flex: 1;
    margin-top: 5px; /* Space between icon and text */
}

.toggle-checkbox {
    display: none;
}

/* Novo estilo para o toggle-switch */
.toggle-switch {
    width: 40px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: #c3f53c; /* Cor quando ativo */
}

.toggle-slider {
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px); /* Move para a direita quando ativo */
}

.generate-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, #c3f53c, #f7d794);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(195, 245, 60, 0.3);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results {
    margin-top: 40px;
}

.result-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-title {
    font-size: 1.1rem;
    color: #c3f53c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e5e5e5;
    white-space: pre-wrap;
    min-height: 100px; /* Adjusted min-height for better display of shorter bios */
    max-height: none;
    overflow: visible;
}

.copy-btn {
    background: #4ade80;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #22c55e;
}

.copy-btn.copied {
    background: #10b981;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #c3f53c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 5px;
}

.article-space {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para Content Section */
.content-section {
   max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.content-section span {
    display: inline-block;
    background: linear-gradient(45deg, #c3f53c, #f7d794);
    color: #1a1a2e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.content-section h2 {
    color: #c3f53c;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(195, 245, 60, 0.3);
    padding-bottom: 10px;
}

.content-section h3 {
    color: #f7d794;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #e5e5e5;
}

.content-section ol, .content-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #e5e5e5;
}

.content-section a {
    color: #c3f53c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-section a:hover {
    color: #f7d794;
    text-decoration: underline;
}

.content-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #c3f53c;
    font-size: 0.9rem;
}

.content-section b, .content-section strong {
    color: #f7d794;
    font-weight: 600;
}

.content-body {
    margin-top: 20px;
}

/* FAQ Styles */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    color: #c3f53c;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex; /* Added for arrow positioning */
    justify-content: space-between; /* Added for arrow positioning */
    align-items: center; /* Added for arrow positioning */
}

.faq-question .arrow {
    transition: transform 0.3s ease;
}

.faq-question.active .arrow {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 20px 15px 20px;
    color: #e5e5e5;
    line-height: 1.6;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}


/* Footer Styles */
.footer {
    background: #1a1a2e; /* Dark background from image */
    color: #ffffff;
    padding: 40px 20px 20px; /* Adjusted padding */
    margin-top: auto; /* Pushes footer to the bottom */
    width: 100%;
}

.footer-content {
    max-width: 1200px; /* Wider content area for footer */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    font-size: 1.2rem;
    color: #c3f53c; /* Highlight color for titles */
    margin-bottom: 15px;
}

.footer-section p, .footer-section a, .footer-section li {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover, .footer-section li:hover {
    color: #f7d794;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #c3f53c;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.footer-bottom p, .footer-bottom a {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Navigation Menu Styles */
.navbar {
    background: rgba(26, 26, 46, 0.9); /* Dark background for navbar */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky; /* Make navbar sticky */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c3f53c; /* Highlight color for brand */
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #c3f53c;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    display: none; /* Hidden by default */
    z-index: 100;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Show on hover */
}

.dropdown-item {
    padding: 10px 20px;
}

.dropdown-item a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.dropdown-item a:hover {
    color: #c3f53c;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .toggle-group {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
    }

    .content-section {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .social-icons {
        justify-content: center;
    }

    /* Mobile Navigation */
    .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        background: rgba(26, 26, 46, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 10px 0;
        display: block;
    }

    .dropdown-menu {
        position: static; /* Remove absolute positioning for mobile dropdown */
        width: 100%;
        box-shadow: none;
        background: rgba(26, 26, 46, 0.8); /* Slightly lighter background for sub-menu */
    }

    .menu-toggle {
        display: flex; /* Show toggle button */
    }
}





/* Estilos para o removedor de fundo */
.upload-area {
    border: 2px dashed #c3f53c;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    background-color: rgba(195, 245, 60, 0.05);
}

.upload-area:hover {
    background-color: rgba(195, 245, 60, 0.1);
}

.upload-area.active {
    border-color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: #c3f53c;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 12px 24px;
    background-color: #c3f53c;
    color: #1a1a2e;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-label:hover {
    background-color: #b0e04a;
    transform: translateY(-2px);
}

.preview-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.preview-box {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.preview-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #c3f53c;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.process-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.process-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.process-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.loading-process {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.loading-spinner {
    border: 4px solid rgba(195, 245, 60, 0.2);
    border-radius: 50%;
    border-top: 4px solid #c3f53c;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background-color: rgba(26, 115, 232, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 36px;
    color: #c3f53c;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.error-message {
    color: #ff6b6b;
    margin-top: 10px;
    font-size: 14px;
}

.success-message {
    color: #c3f53c;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
}