/* Import a cozy font */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body styling - the warm gradient background */
body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #fab1a0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container for everything */
.container {
    width: 100%;
    max-width: 500px;
}

/* Settings panel at the top */
.settings {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.settings h2 {
    color: #2d3436;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

/* Button groups */
.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* All buttons in settings */
.btn {
    flex: 1;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 203, 110, 0.3);
}

/* Active/selected button */
.btn.active {
    background: linear-gradient(135deg, #fdcb6e 0%, #fab1a0 100%);
    color: white;
}

/* Chat window */
.chat-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat header */
.chat-header {
    background: linear-gradient(135deg, #fdcb6e 0%, #fab1a0 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.chat-header h1 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.chat-header p {
    font-size: 0.9em;
    opacity: 0.95;
}

/* Messages area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual messages */
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #fab1a0 0%, #fd79a8 100%);
    color: white;
    border-radius: 20px 20px 5px 20px;
}

.message.bot {
    align-self: flex-start;
    background: #fff5e6;
    color: #2d3436;
    border-radius: 20px 20px 20px 5px;
}

/* Typing animation */
.typing {
    align-self: flex-start;
    background: #fff5e6;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #fdcb6e;
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* Input area */
.chat-input {
    display: flex;
    padding: 20px;
    gap: 10px;
    background: white;
    border-top: 1px solid rgba(253, 203, 110, 0.2);
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ffe0b2;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Quicksand', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: #fdcb6e;
    box-shadow: 0 0 10px rgba(253, 203, 110, 0.2);
}

.send-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #fab1a0 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(253, 203, 110, 0.4);
}

/* Quick reply suggestions */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion {
    background: rgba(253, 203, 110, 0.15);
    color: #e17055;
    border: 1px solid rgba(253, 203, 110, 0.3);
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion:hover {
    background: #fdcb6e;
    color: white;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #fff5e6;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #fdcb6e;
    border-radius: 3px;
}

/* Disabled input styling */
.chat-input input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}
