/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    height: 100vh;
    overflow-y: auto;
}

/* Main content styles */
main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

/* Chat container styles */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Message styles */
.message {
    margin-bottom: 20px;
    max-width: 80%;
    clear: both;
}

.user-message {
    float: right;
    background-color: #007bff;
    color: white;
    border-radius: 18px 18px 0 18px;
    padding: 12px 18px;
}

.ai-message {
    float: left;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 18px 18px 18px 0;
    padding: 12px 18px;
}

.message-content {
    word-wrap: break-word;
}

/* Welcome message styles */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.welcome-message h3 {
    margin-bottom: 20px;
    color: #343a40;
}

.welcome-message ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

/* Input area styles */
.input-area {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    position: sticky;
    bottom: 0;
}

#chat-form {
    max-width: 100%;
}

/* Loading spinner styles */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    main {
        margin-top: 20px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Clear chat button hover effect */
#clear-chat:hover {
    background-color: #dc3545;
    color: white;
}

/* Formatting for AI responses */
.ai-message ul, .ai-message ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.ai-message p {
    margin-bottom: 10px;
}

.ai-message strong {
    font-weight: 600;
}

.ai-message a {
    color: #007bff;
    text-decoration: underline;
} 