* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    color: #764ba2;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-container {
    background: #333;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 8px;
    border-radius: 50px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: -25px;
    color: #764ba2;
    font-size: 0.9rem;
    font-weight: 500;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.video-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container iframe,
.video-container #player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.current-phrase {
    margin: 20px 0;
    text-align: center;
}

.phrase-display {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.phrase-translation {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.controls-section {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #667eea;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.phrases-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: fit-content;
}

.phrases-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.phrases-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.practice-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.practice-btns-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.skip-icon {
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 4px;
}

.phrases-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    max-height: 70vh;
}

.phrase-item {
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.phrase-item:hover {
    background: #f8f9fa;
}

.phrase-item.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    transform: scale(1.02);
}

.phrase-item.completed {
    background: #e8f5e8;
    border-color: #4CAF50;
}

.phrase-en {
    font-weight: 600;
    margin-bottom: 5px;
}

.phrase-pt {
    font-size: 0.9rem;
    opacity: 0.8;
}

.phrase-item.current .phrase-pt {
    opacity: 0.9;
}

.mic-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(103, 126, 234, 0.1);
    border-radius: 12px;
    border: 2px dashed #667eea;
    cursor: pointer;
}

.mic-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
    background: #ee5a52;
}

.status-text {
    color: #667eea;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .phrases-panel {
        order: 1;
        max-height: 300px;
    }

    .video-section {
        padding: 15px;
    }

    .phrase-display {
        font-size: 1.4rem;
    }

    .phrase-translation {
        font-size: 1rem;
    }

    .controls-section {
        gap: 10px;
    }

    .control-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .phrases-list {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .phrases-panel {
        padding: 15px;
    }

    .practice-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .phrase-item {
        padding: 12px;
    }

    .controls-section {
        justify-content: center;
    }

    .phrases-list {
        max-height: 120px;
    }
}

.phrases-list::-webkit-scrollbar {
    width: 6px;
}

.phrases-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.phrases-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 6px;
}

.phrases-list::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Modal de incentivo para usuários não logados */
.login-incentive-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    text-align: center;
    background: white;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 1s ease-in-out infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-10px); }
}

.main-message {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.benefits-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.benefits-list {
    text-align: left;
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    background: #e8f4f8;
}

.benefit-icon {
    font-size: 20px;
    margin-right: 12px;
    min-width: 30px;
}

.benefit-item span:last-child {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.humor-message {
    font-size: 14px;
    color: #7b68ee;
    font-style: italic;
    background: rgba(123, 104, 238, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #7b68ee;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 30px 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: white;
    color: #667eea;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-text {
    background: transparent;
    color: #999;
    padding: 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Responsive design para o modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .main-message {
        font-size: 18px;
    }
    
    .modal-actions {
        padding: 0 20px 20px;
    }
    
    .benefit-item span:last-child {
        font-size: 13px;
    }
}