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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #1e1e1e 50%, #262626 75%, #1a1a1a 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

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

/* Header */
.header {
    padding: 20px 0;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 45px;
    width: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-link:hover {
    color: #8b5cf6;
}

.assessment-link {
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    padding: 8px 16px !important;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.assessment-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Main Content */
.main {
    padding: 60px 0;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
    color: white;
}

.highlight {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chat Container */
.chat-container {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out;
}

/* Assessment Modal Styles */
.assessment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.assessment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.assessment-content {
    width: 95%;
    height: 95%;
    max-width: 1200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-assessment {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.close-assessment:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#assessmentFrame {
    border-radius: 15px;
}

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

.message.user-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.bot-avatar {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
}

.user-avatar {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.message-content {
    background: rgba(60, 60, 60, 0.7);
    padding: 15px 20px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-message .message-content {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
}

/* Chat Input */
.chat-input-container {
    position: relative;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 25px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: white;
    font-size: 16px;
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-button {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: white;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.send-button:active {
    transform: scale(0.95);
}

/* Suggestion Section */
.suggestion-section {
    margin-top: 30px;
}

.suggestion-text {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.suggestion-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-btn {
    background: rgba(80, 80, 80, 0.6);
    border: 1px solid rgba(120, 120, 120, 0.5);
    padding: 12px 24px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.suggestion-btn:hover {
    background: rgba(100, 100, 100, 0.8);
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Assessment Styles */
#app {
    width: 100%;
}

.assessment-header {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.assessment-header h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.progress-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.progress-bar-background {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
    width: 0%;
}

.screen {
    display: none;
    width: 100%;
}

.screen.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 700;
    color: white;
}

.instructions {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instructions h3, .instructions h4 {
    color: #a855f7;
    margin-bottom: 15px;
    font-weight: 600;
}

.instructions ul {
    list-style: none;
    margin-bottom: 20px;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.instructions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: bold;
}

.privacy-notice {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8b5cf6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.question-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
}

.question-container {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.question-container h3 {
    font-size: 22px;
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 500;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.option.selected {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.option input[type="radio"], .option input[type="checkbox"] {
    accent-color: #8b5cf6;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    cursor: pointer;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    border: 2px solid transparent;
}

.likert-option:hover {
    background: rgba(139, 92, 246, 0.2);
}

.likert-option.selected {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a855f7;
}

.likert-circle {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.likert-option.selected .likert-circle {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border-color: #a855f7;
    color: white;
}

.likert-label {
    font-size: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.textarea-container textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.textarea-container textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.report-content {
    max-width: 900px;
    margin: 0 auto;
}

.report-content h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.report-section h3 {
    color: #a855f7;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.level-indicator {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    display: inline-block;
    color: white;
}

.level-beginner { background: linear-gradient(45deg, #ff6b6b, #ee5a6f); }
.level-intermediate { background: linear-gradient(45deg, #feca57, #ff9ff3); }
.level-expert { background: linear-gradient(45deg, #48dbfb, #1dd1a1); }

.report-list li {
    margin-bottom: 10px;
}

.recommendations p {
    margin-bottom: 15px;
}

.recommendations {
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #8b5cf6;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .chat-container {
        padding: 20px;
        margin: 0 10px 40px;
    }
    
    .suggestion-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .message-content {
        max-width: 90%;
        font-size: 14px;
    }
    
    .assessment-header h1 {
        font-size: 22px;
    }
    .welcome-content h2 {
        font-size: 28px;
    }
    .question-container {
        padding: 25px;
    }
    .likert-scale {
        flex-wrap: wrap;
    }
    .navigation-buttons, .report-actions {
        flex-direction: column;
    }
    .score-display {
        flex-direction: column;
        text-align: center;
    }
}

/* Profile Screen Styles */
.profile-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.profile-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.profile-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: #888;
}

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .profile-content {
        padding: 20px 15px;
    }
    
    .profile-form {
        padding: 20px;
    }
}
