body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

#logout-btn {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

#main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#sidebar {
    width: 350px;
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    border-right: 2px solid #e2e8f0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

#sidebar h2 {
    color: #2d3748;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#sidebar h3 {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#mood-tracker, #journal, #biodata-link {
    margin-bottom: 2.5rem;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.mood-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.mood-btn {
    background-color: #edf2f7;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.mood-btn:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

#mood-message, #journal-message {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 1rem;
    font-style: italic;
}

#journal-input {
    width: 100%;
    height: 120px;
    resize: vertical;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

#journal-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#save-journal {
    margin-top: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

#save-journal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

#mood-chart {
    margin-bottom: 2.5rem;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#mood-chart canvas {
    max-width: 100%;
    height: auto;
}

#go-to-biodata {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

#go-to-biodata:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3);
}

#chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

#language-selector {
    padding: 1.5rem 2rem;
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#language-selector label {
    font-weight: 600;
    color: #4a5568;
    font-size: 1rem;
}

#language-selector select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #f7fafc;
    transition: all 0.3s ease;
}

#language-selector select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #f8fafc;
}

.message {
    max-width: 75%;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-message {
    background: linear-gradient(135deg, #667eea, #764ba2);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #ffffff;
    align-self: flex-start;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

#input-container {
    display: flex;
    padding: 2rem;
    background-color: #ffffff;
    border-top: 2px solid #e2e8f0;
    gap: 1rem;
}

#input-container textarea {
    flex: 1;
    resize: none;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f7fafc;
}

#input-container textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #ffffff;
}

#input-container button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#input-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
