/*
PLACEHOLDERS IN THIS FILE:
- None
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Header */
.header {
    text-align: center;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
}

/* Chat Container */
.chat-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #667eea;
}

.message-content {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 16px;
    border-top-left-radius: 4px;
}

.message.user .message-content {
    background: #667eea;
    color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.message-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Quick Options */
.quick-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px;
    animation: fadeIn 0.4s ease 0.2s both;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-btn:hover {
    border-color: #667eea;
    background: #f8f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.quick-btn:active {
    transform: translateY(0);
}

.quick-icon {
    font-size: 20px;
}

.quick-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* Action Buttons (for recommendations) */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.action-btn:hover {
    background: #667eea;
    color: white;
}

.action-btn.primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.action-btn.primary:hover {
    background: #5a6fd6;
    border-color: #5a6fd6;
}

.action-btn-icon {
    font-size: 20px;
}

.action-btn-content {
    flex: 1;
}

.action-btn-title {
    font-size: 14px;
    font-weight: 600;
}

.action-btn-desc {
    font-size: 11px;
    opacity: 0.8;
}

.action-btn-arrow {
    font-size: 18px;
}

/* Urgency Badge */
.urgency-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.urgency-badge.high {
    background: #ffe0e0;
    color: #d32f2f;
}

.urgency-badge.medium {
    background: #fff3e0;
    color: #f57c00;
}

.urgency-badge.low {
    background: #e8f5e9;
    color: #388e3c;
}

/* Input Area */
.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-button {
    width: 44px;
    height: 44px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.send-button:hover {
    background: #5a6fd6;
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    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(-4px);
    }
}

/* Footer */
.footer {
    text-align: center;
    color: white;
    font-size: 12px;
    opacity: 0.8;
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.inline-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #667eea;
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: #5a6fd6;
    border-bottom-color: #5a6fd6;
}

/* Make urgency badge optional (only shows when needed) */
.message-content .urgency-badge {
    margin-bottom: 6px;
}
/* Responsive */
@media (max-width: 480px) {
    .quick-options {
        grid-template-columns: 1fr;
    }
    
    .quick-btn {
        padding: 14px 16px;
    }
}