/* Base Styles */
:root {
    --primary-100:#6c35de;
    --primary-200:#a364ff;
    --primary-300:#ffc7ff;
    --accent-100:#cb80ff;
    --accent-200:#373737;
    --text-100:#ffffff;
    --text-200:#e0e0e0;
    --bg-100:#241b35;
    --bg-200:#342a45;
    --bg-300:#4d425f;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-100);
    background-color: var(--bg-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23a364ff' fill-opacity='0.15' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

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

/* Background Patterns */
.notebook-pattern {
    background-color: var(--bg-200);
    background-image: linear-gradient(var(--bg-300) 1.5px, transparent 1.5px), linear-gradient(to right, var(--bg-300) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

.grid-pattern {
    background-color: var(--bg-100);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a364ff' fill-opacity='0.15' fill-rule='evenodd'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/svg%3E");
}

.dots-pattern {
    background-color: var(--bg-100);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a364ff' fill-opacity='0.15' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.book-pattern {
    background-color: var(--bg-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a364ff' fill-opacity='0.15'%3E%3Cpath d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.edu-icons-pattern {
    background-color: var(--bg-100);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a364ff' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Navigation */
header {
    background-color: var(--bg-200);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.logo-icon {
    color: var(--primary-200);
    margin-right: 6px;
    font-size: 1.3rem;
}

.logo-edu {
    color: var(--primary-200);
    font-weight: 800;
}

.logo-path {
    background: linear-gradient(90deg, var(--primary-200), var(--primary-300));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--primary-200);
    border-radius: 4px;
    background-color: transparent;
    color: var(--primary-200);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn:hover {
    background-color: rgba(163, 100, 255, 0.2);
}

.btn.primary {
    background-color: var(--primary-200);
    color: var(--text-100);
}

.btn.primary:hover {
    background-color: var(--primary-100);
}

.btn.primary.inverted {
    background-color: var(--text-100);
    color: var(--primary-200);
    border: 1px solid var(--text-100);
}

.btn.primary.inverted:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.btn.large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn.danger {
    background-color: #FF6B6B;
    color: var(--text-100);
    border-color: #FF6B6B;
}

.btn.danger:hover {
    background-color: #E95757;
    border-color: #E95757;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#auth-section, #user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-section {
    background-color: rgba(203, 128, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

#user-section:hover {
    background-color: rgba(203, 128, 255, 0.2);
}

#username-display {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-200);
}

#username-display i {
    margin-right: 8px;
    color: var(--primary-200);
}

#logout-btn {
    border: none;
    background: transparent;
    color: var(--text-200);
    padding-left: 15px;
    position: relative;
}

#logout-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: var(--bg-300);
}

#logout-btn:hover {
    color: #FF6B6B;
    background: transparent;
}

#username-display {
    margin-right: 10px;
}

/* Hero Section */
.hero {
    background-color: var(--bg-200);
    color: var(--text-100);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 53, 222, 0.92) 0%, rgba(203, 128, 255, 0.85) 100%), 
                url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 0 30px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-200);
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a364ff' fill-opacity='0.07'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.features h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-100);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-200);
    font-size: 1.1rem;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card-icon {
    background-color: rgba(163, 100, 255, 0.2);
    color: var(--primary-300);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 30px;
}

.card {
    background-color: var(--bg-300);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
    text-align: center;
}

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

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-300);
}

.card p {
    color: var(--text-200);
}

/* Popular Paths Section */
.popular-paths {
    padding: 80px 0;
    background-color: var(--bg-100);
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zm33.414-6l5.95-5.95L45.95.636 40 6.586 34.05.636 32.636 2.05 38.586 8l-5.95 5.95 1.414 1.414L40 9.414l5.95 5.95 1.414-1.414L41.414 8zM40 48c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm0-2c3.314 0 6-2.686 6-6s-2.686-6-6-6-6 2.686-6 6 2.686 6 6 6zM9.414 40l5.95-5.95-1.414-1.414L8 38.586l-5.95-5.95L.636 34.05 6.586 40l-5.95 5.95 1.414 1.414L8 41.414l5.95 5.95 1.414-1.414L9.414 40z' fill='%23cb80ff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.paths-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.path-card {
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
    text-align: left;
    border-top: 4px solid var(--primary-200);
}

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

.path-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    background-position: center;
    background-size: cover;
}

.path-icon.web-dev {
    background-color: var(--primary-200);
    background-image: url('https://cdn-icons-png.flaticon.com/512/1005/1005141.png');
}

.path-icon.data-science {
    background-color: var(--primary-300);
    background-image: url('https://cdn-icons-png.flaticon.com/512/2103/2103665.png');
}

.path-icon.ai-ml {
    background-color: var(--accent-100);
    background-image: url('https://cdn-icons-png.flaticon.com/512/2103/2103633.png');
}

.path-highlights {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.path-highlights li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
    color: var(--text-200);
}

.path-highlights li::before {
    content: "✓";
    color: var(--accent-100);
    position: absolute;
    left: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-100);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-300);
    border: 1px solid var(--bg-300);
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-100);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-200);
    color: var(--text-100);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close {
    color: var(--text-200);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

close:hover {
    color: var(--text-100);
}

#login-form, #register-form {
    margin-top: 20px;
}

#login-form p, #register-form p {
    margin-top: 20px;
    text-align: center;
    color: var(--text-200);
}

#login-form a, #register-form a {
    color: var(--primary-300);
}

/* Onboarding */
.onboarding-container {
    background-color: var(--bg-200);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 40px auto;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20L0 20z' fill='%23a364ff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.onboarding-container h1 {
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-100);
}

.onboarding-container p {
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-200);
}

#preferences-form button {
    margin-top: 20px;
    width: 100%;
}

/* Dashboard */
.dashboard-container {
    padding: 40px 0;
}

.dashboard-container h1 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-100);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background-color: var(--bg-200);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.user-profile, .learning-progress {
    padding: 20px 0;
    border-bottom: 1px solid var(--bg-300);
}

.user-profile h3, .learning-progress h3 {
    margin-bottom: 15px;
    color: var(--primary-200);
}

#update-preferences {
    margin-top: 15px;
    width: 100%;
}

.progress-stats {
    margin-top: 20px;
}

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

.progress-label {
    margin-bottom: 5px;
    color: var(--text-200);
}

.progress-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-300);
}

.progress-bar-container {
    background-color: var(--bg-100);
    border-radius: 20px;
    height: 10px;
    position: relative;
}

.progress-bar {
    background-color: var(--primary-200);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -20px;
    font-weight: bold;
}

.learning-paths {
    background-color: var(--bg-200);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

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

#loading-recommendations {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-200);
}

.loader {
    border: 3px solid var(--bg-300);
    border-top: 3px solid var(--primary-300);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.learning-path-item {
    border: 1px solid var(--bg-300);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
    background-color: var(--bg-300);
}

.learning-path-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.learning-path-item.completed {
    border-left: 4px solid var(--primary-200);
    background-color: rgba(163, 100, 255, 0.15);
}

.learning-path-item.completed .item-title::after {
    content: '✓';
    color: var(--primary-300);
}

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

.item-title {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-200);
}

.item-type {
    background-color: rgba(163, 100, 255, 0.2);
    color: var(--primary-200);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.item-description {
    margin-bottom: 15px;
    color: var(--text-200);
}

.item-link {
    display: inline-block;
    margin-right: 15px;
    color: var(--primary-200);
    text-decoration: none;
}

.item-link:hover {
    text-decoration: underline;
}

.completion-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.completion-toggle label {
    cursor: pointer;
}

/* AI Info Section */
.ai-info-simple {
    background-color: var(--bg-200);
    padding: 60px 0;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a364ff' fill-opacity='0.15'%3E%3Cpath d='M41 16.67c0-.92-.459-1.334-1-1.334-.49.006-.922.384-1 .852-.078-.496-.55-.898-1-.898-.918 0-1 .448-1 1.546v2.17h-1v-3.35c0-.73-.289-1-1-1-.711 0-1 .27-1 1v3.35h-1v-4.77h1v.643c.223-.398.542-.569 1-.569.823 0 1.151.278 1.271.868.475-1.038 2.271-.85 2.729.071.35-.703.825-.97 1.5-.9.472.048.851.292 1.14.732.046-.364.245-.58.598-.651.53-.107 1.069.207 1.137.743l.003.047c.297-.208.622-.311.975-.311.759 0 1.377.617 1.377 1.377 0 .621-.439 1.165-1.08 1.31l-.474.095v1.385h-1v-1.24l.456-.093c.262-.054.448-.282.448-.548 0-.265-.215-.48-.48-.48-1.464 0-1.304 2.293-2.72 2.293-.103 0-.204-.01-.3-.029-.182-.032-.595-.116-.595-.669 0-.332.304-.618.71-.688.33-.058.742.012.962.31.03-.237.038-.478.036-.723-.091.275-.253.507-.5.685-.248.178-.554.273-.915.273-.708 0-1.349-.411-1.349-1.33zm16 4.33c-2.208 0-4-1.792-4-4v-2c0-2.208 1.792-4 4-4s4 1.792 4 4v2c0 2.208-1.792 4-4 4zm0-9c-1.654 0-3 1.346-3 3v2c0 1.654 1.346 3 3 3s3-1.346 3-3v-2c0-1.654-1.346-3-3-3zm-40-5c-2.208 0-4-1.792-4-4V1c0-2.21 1.79-4 4-4 2.208 0 4 1.792 4 4v.997c0 2.208-1.792 4-4 4zm0-7.994c-1.653 0-3 1.345-3 3v1c0 1.653 1.345 3 3 3 1.653 0 3-1.345 3-3V3c0-1.653-1.345-3-3-3zM16 16.67c0-.92-.46-1.334-1-1.334-.544 0-1 .414-1 1.334 0 .92.456 1.33 1 1.33.54 0 1-.41 1-1.33zm-3 0c0-1.277.816-2.334 2-2.334 1.184 0 2 1.057 2 2.334 0 1.276-.816 2.33-2 2.33-1.184 0-2-1.054-2-2.33zm30 1.33v-5.5h1v5.5h-1zM30 5h1v1h-1V5zm-15-1h-1v4h-5v1h5v4h1v-4h5V8h-5V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ai-info-simple h2 {
    color: var(--primary-300);
}

.ai-info-simple p {
    color: var(--text-200);
}

/* Footer */
footer {
    background-color: var(--accent-200);
    color: var(--text-100);
    padding: 20px 0;
    text-align: center;
    margin-top: 80px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-100) 100%),
                url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-100);
    padding: 80px 0;
    text-align: center;
}

/* Dashboard Updates */
.section-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-box {
    background-color: var(--bg-100);
    border-left: 4px solid var(--primary-200);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-200);
}

.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--bg-300);
    border-radius: 50%;
    border-top-color: var(--primary-300);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Completed Resources */
.learning-path-item.completed {
    border-left: 4px solid var(--primary-200);
    background-color: rgba(163, 100, 255, 0.15);
}

.learning-path-item.completed .item-title::after {
    content: '✓';
    color: var(--primary-300);
}

/* Search and filter styles */
.path-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-container {
    flex: 1;
    min-width: 200px;
}

.search-container input {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--bg-300);
    border: 1px solid var(--bg-300);
    border-radius: 4px;
    color: var(--text-100);
}

.filter-container {
    display: flex;
    gap: 10px;
}

.filter-container select {
    padding: 8px 12px;
    background-color: var(--bg-300);
    border: 1px solid var(--bg-300);
    border-radius: 4px;
    color: var(--text-100);
}

/* API Key Dropdown Styles */
.api-key-container {
    position: relative;
    display: inline-block;
}

.api-key-dropdown {
    display: none;
    position: absolute;
    right: 0;
    z-index: 100;
    background-color: var(--bg-200);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    width: 350px;
    top: 40px;
}

.api-key-dropdown p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-200);
}

.api-key-dropdown a {
    color: var(--primary-300);
    text-decoration: none;
}

.api-key-dropdown a:hover {
    text-decoration: underline;
}

.api-key-form .form-group {
    margin-bottom: 0;
}

.api-key-form input {
    background-color: var(--bg-300);
    border: 1px solid var(--bg-300);
    color: var(--text-100);
}

.api-key-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.api-key-dropdown.active {
    display: block;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#api-key-btn i {
    margin-right: 5px;
}

/* API Key Help Button & Modal */
.help-btn {
    padding: 8px;
    border: none;
    background: transparent;
    margin-left: 5px;
    color: var(--primary-200);
}

.help-btn:hover {
    background: transparent;
    color: var(--primary-100);
}

.api-help-content {
    max-width: 500px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--bg-200);
}

.help-steps {
    margin: 20px 0;
}

.help-step {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-200);
    color: var(--text-100);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 13px;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 5px;
    color: var(--primary-200);
    font-size: 16px;
}

.step-content p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-200);
}

.important-note {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
    padding: 10px;
    background-color: rgba(203, 128, 255, 0.2);
    border-left: 4px solid var(--primary-200);
    border-radius: 4px;
}

.important-note i {
    color: var(--primary-200);
    margin-right: 8px;
    font-size: 16px;
    margin-top: 2px;
}

.important-note p {
    margin: 0;
    font-size: 13px;
}

.api-help-footer {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid var(--bg-300);
    padding-top: 15px;
}

.api-help-footer p {
    margin-bottom: 10px;
    color: var(--text-200);
    font-size: 14px;
}

.api-help-footer .btn {
    padding: 8px 25px;
}

/* Modal responsiveness */
@media (max-width: 576px) {
    .api-help-content {
        width: 90%;
        padding: 15px;
        margin: 15% auto;
    }
    
    .help-step {
        margin-bottom: 15px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .ai-info-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-info h2, .ai-info p {
        text-align: center;
    }

    .feature-cards, .paths-grid {
        gap: 20px;
    }
    
    .card {
        min-width: 220px;
    }
    
    .path-card {
        min-width: 220px;
    }
    
    .api-key-dropdown {
        width: 280px;
        right: -70px;
    }
    
    .api-key-dropdown:after {
        content: '';
        position: absolute;
        top: -10px;
        right: 85px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--bg-200);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 90%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        justify-content: space-between;
        padding: 12px 15px;
    }
    
    #auth-section, #user-section {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--bg-200);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    #auth-section.active, #user-section.active {
        right: 0;
    }
    
    #auth-section .btn, #user-section .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    #user-section {
        background-color: var(--bg-200);
        border-radius: 0;
    }
    
    #username-display {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 4px;
        background-color: rgba(203, 128, 255, 0.1);
        width: 100%;
    }
    
    #logout-btn::before {
        display: none;
    }
    
    .onboarding-container {
        padding: 25px 15px;
    }
    
    .api-key-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .api-key-actions .btn {
        width: 100%;
    }
    
    .path-controls {
        flex-direction: column;
    }
    
    .filter-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-container select {
        flex: 1;
    }
    
    .section-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .card, .path-card {
        padding: 20px 15px;
    }
    
    .learning-path-item {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px 15px;
        margin: 15% auto;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .item-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .reliability-badge, .platform-badge {
        margin-left: 0;
    }
    
    .learning-paths {
        padding: 20px 15px;
    }
    
    .dashboard-sidebar {
        padding: 15px;
    }
    
    .api-key-dropdown {
        width: 100%;
        right: 0;
        left: 0;
        position: fixed;
        top: auto;
        bottom: 0;
        border-radius: 8px 8px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .api-key-dropdown:after {
        display: none;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .button-group .btn {
        width: 100%;
    }
}

@media (hover: none) {
    .btn:hover, .card:hover, .path-card:hover {
        transform: none;
    }
    
    .item-link, .btn {
        padding: 10px 16px;
    }
    
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    .dropdown {
        cursor: default;
    }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-200);
    cursor: pointer;
    z-index: 1000;
}
