* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5efe8;  /* earthy background */
    color: #2c3e2f;  /* deep forest green */
    height: 100vh;
    overflow: hidden;
}

.app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2c3e2f;  /* deep forest */
    color: #f5efe8;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid #4a5e4d;
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-tagline {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.journey-section {
    padding: 24px;
    border-bottom: 1px solid #4a5e4d;
}

.journey-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 16px;
}

.phase-indicator {
    margin-bottom: 20px;
}

.phase {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.phase.active {
    opacity: 1;
}

.phase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5efe8;
    margin-right: 12px;
}

.phase.active .phase-dot {
    background: #d4b68a;  /* warm earth */
    box-shadow: 0 0 10px #d4b68a;
}

.phase span {
    font-size: 14px;
}

.day-counter {
    font-size: 24px;
    font-weight: 300;
    text-align: center;
    padding: 12px;
    background: #1e2b20;
    border-radius: 8px;
}

.evidence-section {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.evidence-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 16px;
}

.evidence-list {
    font-size: 13px;
}

.empty-evidence {
    opacity: 0.5;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.evidence-item {
    background: #1e2b20;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.evidence-item .evidence-text {
    margin-bottom: 6px;
    line-height: 1.4;
}

.evidence-item .evidence-meta {
    font-size: 11px;
    opacity: 0.6;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid #4a5e4d;
    text-align: center;
}

.new-journey-btn {
    background: transparent;
    border: 1px solid #f5efe8;
    color: #f5efe8;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.new-journey-btn:hover {
    background: #f5efe8;
    color: #2c3e2f;
}

.institute {
    font-size: 12px;
    opacity: 0.5;
}

/* Main Chat Area */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f5efe8;
}

.chat-header {
    padding: 24px 32px;
    border-bottom: 1px solid #d9cfc0;
    position: relative;
}

.menu-toggle {
    display: none;
    position: absolute;
    left: 16px;
    top: 24px;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e2f;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-content {
        margin-left: 30px;
    }
}

.header-content h1 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #2c3e2f;
}

.header-scripture {
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.user {
    margin-left: auto;
}

.message.guide {
    margin-right: auto;
}

.message-content {
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.message.user .message-content {
    background: #d4b68a;  /* warm earth */
    color: #1e2b20;
    border-bottom-right-radius: 5px;
}

.message.guide .message-content {
    background: white;
    color: #2c3e2f;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.message-footnote {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 8px;
    font-style: italic;
}

.chat-input-container {
    display: flex;
    padding: 20px 32px;
    background: white;
    border-top: 1px solid #d9cfc0;
}

#user-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #d9cfc0;
    border-radius: 30px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    background: #f5efe8;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: #d4b68a;
}

#send-button {
    margin-left: 12px;
    padding: 0 30px;
    background: #2c3e2f;
    color: #f5efe8;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

#send-button:hover {
    background: #1e2b20;
}

#send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.typing-indicator {
    display: none;
    padding: 0 32px 20px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #d4b68a;
    border-radius: 50%;
    margin-right: 6px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.tool-badge {
    display: inline-block;
    background: #1e2b20;
    color: #f5efe8;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 8px;
    opacity: 0.7;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f5efe8;
}

::-webkit-scrollbar-thumb {
    background: #d4b68a;
    border-radius: 3px;
}