/* --- Base Styles and Variables --- */
:root {
    --primary: #6e57e0;
    --primary-light: #8c7ae6;
    --primary-dark: #5541d7;
    --secondary: #30e3ca;
    --dark: #2d3436;
    --dark-light: #636e72;
    --light: #f5f6fa;
    --light-alt: #dfe6e9;
    --success: #00b894;
    --danger: #e17055;
    --warning: #fdcb6e;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.highlight {
    color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary);
}

.cta-button {
    background-color: var(--primary);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, rgba(110, 87, 224, 0.1) 0%, rgba(48, 227, 202, 0.1) 100%);
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--dark-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
}

/* --- About Section --- */
.about-section {
    padding: 5rem 0;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
}

/* --- Features Section --- */
.features-section {
    padding: 5rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--light);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    min-width: 3rem;
    text-align: center;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- Tutor Section --- */
.tutor-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(110, 87, 224, 0.1) 0%, rgba(48, 227, 202, 0.1) 100%);
}

.tutor-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.tutor-content {
    flex: 1;
}

.tutor-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tutor-content p {
    margin-bottom: 2rem;
}

.tutor-features {
    list-style: none;
    margin-bottom: 2rem;
}

.tutor-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tutor-features i {
    color: var(--success);
}

.tutor-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tutor-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* --- Community Section --- */
.community-section {
    padding: 5rem 0;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.community-feature {
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.community-feature .feature-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

/* --- Chat Section --- */
.chat-section {
    padding: 5rem 0;
    background-color: #fff;
}

.chat-interface {
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 500px;
}

.chat-sidebar {
    width: 280px;
    background-color: var(--light);
    padding: 1.5rem;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-alt);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.user-progress {
    width: 100%;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-value {
    font-weight: 600;
    color: var(--primary);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-item.active {
    background-color: var(--primary);
    color: white;
}

.sidebar-item.locked {
    color: var(--dark-light);
    cursor: not-allowed;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    margin-bottom: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background-color: var(--light);
    padding: 1rem;
    border-radius: var(--radius);
    max-width: 80%;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background-color: var(--primary-light);
    color: white;
}

.chat-input {
    display: flex;
    gap: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--light-alt);
    border-radius: var(--radius);
    outline: none;
    font-size: 1rem;
}

.chat-input button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    width: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: var(--primary-dark);
}

/* --- CTA Section --- */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background-color: white;
    color: var(--primary) !important;
}

.cta-section .cta-button:hover {
    background-color: var(--light);
}

/* --- Footer --- */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-logo p {
    margin-top: 1rem;
    color: var(--light-alt);
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.link-group {
    min-width: 120px;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--light-alt);
    margin-bottom: 0.8rem;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .tutor-section .container {
        flex-direction: column;
    }
    
        .chat-interface {
            flex-direction: column;
        }
    }
    /* Content container styles */
.content-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-alt);
}

.content-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.content-body {
    flex: 1;
    overflow-y: auto;
}

/* Empty state styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: var(--dark-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-alt);
}

/* Button styles */
.action-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.action-btn:hover {
    background-color: var(--primary-dark);
}

.action-btn-sm {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.action-btn-sm:hover {
    background-color: var(--primary-dark);
}

.action-btn-sm.danger {
    background-color: var(--danger);
}

.action-btn-sm.danger:hover {
    background-color: #d05a43;
}

/* Goal item styles */
.goal-item {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.goal-item.completed {
    border-left-color: var(--success);
    opacity: 0.8;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.goal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
}

.goal-actions button {
    background: none;
    border: none;
    color: var(--dark-light);
    cursor: pointer;
    transition: var(--transition);
}

.goal-actions button:hover {
    color: var(--primary);
}

.goal-delete-btn:hover {
    color: var(--danger) !important;
}

.goal-meta {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
    font-size: 0.8rem;
}

.goal-category {
    background-color: var(--light);
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.goal-progress-container {
    height: 8px;
    background-color: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.goal-progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.goal-progress-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.8rem;
}

.goal-progress-input input {
    flex: 1;
}

/* Progress view styles */
.progress-summary {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-light);
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.progress-percent {
    font-weight: 700;
    color: var(--primary);
}

.progress-bar-container {
    height: 8px;
    background-color: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

.progress-category {
    background-color: var(--light);
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.status-ok {
    color: var(--success);
}

.status-urgent {
    color: var(--warning);
}

.status-overdue {
    color: var(--danger);
}

/* Journal styles */
.journal-wrapper {
    display: flex;
    height: 100%;
}

.journal-sidebar {
    width: 250px;
    background-color: var(--light);
    border-radius: var(--radius) 0 0 var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.journal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-alt);
}

.journal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.journal-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.journal-item {
    padding: 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    border-left: 3px solid transparent;
}

.journal-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.journal-item.active {
    background-color: rgba(110, 87, 224, 0.1);
    border-left-color: var(--primary);
}

.journal-item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.journal-item-date {
    font-size: 0.75rem;
    color: var(--dark-light);
}

.journal-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: white;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.journal-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-alt);
}

.journal-title-input {
    flex: 1;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.5rem 0;
    outline: none;
}

.journal-actions {
    display: flex;
    gap: 0.5rem;
}

.journal-content-input {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Leaderboard styles */
.user-rank {
    background-color: var(--primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

.leaderboard-item.user-item {
    background-color: rgba(110, 87, 224, 0.1);
    border-left: 4px solid var(--primary);
}

.rank {
    width: 40px;
    font-weight: 700;
    font-size: 1.1rem;
}

.character-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.character-name {
    flex: 1;
    font-weight: 600;
}

.character-points {
    font-weight: 700;
    color: var(--primary);
}

/* Settings styles */
.settings-section {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.personality-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.personality-btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    background-color: var(--light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.personality-btn:hover {
    background-color: var(--light-alt);
}

.personality-btn.active {
    background-color: var(--primary);
    color: white;
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin-right: 1rem;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-alt);
    border-radius: 34px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius);
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--light-alt);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-alt);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(110, 87, 224, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--light-alt);
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    z-index: 1100;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.notification-success .notification-icon {
    color: var(--success);
}

.notification-error .notification-icon {
    color: var(--danger);
}

.notification-info .notification-icon {
    color: var(--primary);
}

.notification-message {
    font-weight: 500;
}

/* Content animation */
.content-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Make the sidebar navigation work better on mobile */
@media (max-width: 992px) {
    .chat-interface {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-item {
        flex-shrink: 0;
    }
    
    .user-profile {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .user-avatar {
        margin-bottom: 0;
    }
    
    .journal-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .journal-sidebar {
        width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 200px;
    }
    
    .journal-editor {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    
    .progress-summary .summary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .personality-options {
        flex-direction: column;
    }
}