/* Reset de estilo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo Geral */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fefce8 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Área de Login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fefce8 100%);
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
}

.logo {
    margin-bottom: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
}

.login-card h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-card p {
    color: #6b7280;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.input-group input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-group button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

#login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

#login-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

#login-btn:active {
    transform: translateY(0);
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: #9ca3af;
}

/* Navegação */
.navigation {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #10b981;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #10b981, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

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

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #10b981;
    background: #f0fdf4;
}

.nav-link.active {
    color: #10b981;
    background: #f0fdf4;
    border-bottom: 2px solid #10b981;
}

/* Seções */
section {
    min-height: calc(100vh - 70px);
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Módulos */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.module-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translateY(0);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.module-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.module-card:hover .module-image img {
    transform: scale(1.1);
}

.module-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.module-card:hover .module-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.play-button {
    background: #10b981;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.module-card:hover .play-button {
    opacity: 1;
    transform: scale(1);
}

.module-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f59e0b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.module-content {
    padding: 25px;
}

.module-content h3 {
    color: #1f2937;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.module-card:hover .module-content h3 {
    color: #10b981;
}

.module-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.module-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-count {
    color: #6b7280;
    font-size: 14px;
}

.module-badge {
    background: #f0fdf4;
    color: #10b981;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Journey Section */
.journey-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.journey-section h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 15px;
}

.journey-section p {
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Suporte */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.support-card, .message-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.support-card h2, .message-card h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-item:nth-child(1) { background: #f0fdf4; }
.contact-item:nth-child(2) { background: #fefce8; }
.contact-item:nth-child(3) { background: #eff6ff; }

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-item h3 {
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #059669;
}

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

.form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #10b981;
}

.message-card button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-card button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.support-tip {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.support-tip h3 {
    color: #1f2937;
    margin-bottom: 10px;
}

.support-tip p {
    color: #6b7280;
    font-size: 14px;
}

/* FAQ */
.search-box {
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #10b981;
}

.faq-list {
    margin-bottom: 50px;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f0fdf4;
}

.faq-question h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-toggle {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid #f3f4f6;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 500px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.faq-contact {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.faq-contact h2 {
    color: #1f2937;
    margin-bottom: 15px;
}

.faq-contact p {
    color: #6b7280;
    margin-bottom: 30px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* Perfil */
.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.profile-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.profile-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
}

.edit-btn, .save-btn, .cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #10b981;
    color: white;
}

.save-btn {
    background: #10b981;
    color: white;
    margin-right: 10px;
}

.cancel-btn {
    background: #6b7280;
    color: white;
}

.edit-btn:hover, .save-btn:hover {
    background: #059669;
}

.cancel-btn:hover {
    background: #4b5563;
}

.profile-form .form-group input[readonly] {
    background: #f9fafb;
    color: #1f2937;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card, .progress-card, .stats-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.profile-card {
    text-align: center;
}

.profile-card h3 {
    color: #1f2937;
    margin-bottom: 5px;
}

.profile-card p {
    color: #6b7280;
    font-size: 14px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

.status-badge {
    background: #fef3c7;
    color: #d97706;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.stat-item span {
    color: #6b7280;
}

.stat-item strong {
    color: #1f2937;
}

.progress-text {
    color: #10b981 !important;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

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

.modal-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1f2937;
}

.modal-body {
    padding: 25px;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: #1f2937;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 30px;
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.video-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.video-placeholder small {
    opacity: 0.7;
}

.module-description {
    margin-bottom: 30px;
}

.module-description h3 {
    color: #1f2937;
    margin-bottom: 10px;
}

.module-description p {
    color: #6b7280;
    line-height: 1.6;
}

.video-list h3 {
    color: #1f2937;
    margin-bottom: 20px;
}

.video-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-item:hover {
    background: #f0fdf4;
}

.video-number {
    background: #10b981;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
}

.video-title {
    flex: 1;
    color: #1f2937;
    font-weight: 500;
}

.video-duration {
    color: #6b7280;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        gap: 15px;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
        padding: 12px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 20px 0;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}