:root {
    --primary-color: #0d6efd;
    --assistant-bg: #f1f0f0;
    --user-bg: var(--primary-color);
    --background-gradient: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    --header-gradient: linear-gradient(135deg, #0d6efd 0%, #0558d1 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #e9ecef;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background: var(--header-gradient);
    border-bottom: 1px solid #dee2e6;
    flex-shrink: 0;
    position: relative;
}

#back-button {
    position: absolute;
    left: 15px;
    text-decoration: none;
    padding: 0;
}
#back-button:focus {
    box-shadow: none;
}

.chat-window {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
}

.bubble {
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    white-space: pre-wrap;
}

.assistant {
    align-self: flex-start;
}
.assistant .bubble {
    background-color: var(--assistant-bg);
    color: #333;
    border-top-left-radius: 4px;
}
.assistant .bubble em {
    color: #6c757d;
}
.assistant .bubble code {
    white-space: pre-wrap;
    word-break: break-all;
}

.user {
    align-self: flex-end;
}
.user .bubble {
    background-color: var(--user-bg);
    color: white;
    border-top-right-radius: 4px;
}

/* Ukrycie starego kontenera */
#default-questions-container {
    display: none;
}

/* Style dla nowego kontenera menu */
#questions-menu-container {
    border-top: 1px solid #dee2e6;
    max-height: 65vh;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

#category-container .category-btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

#category-container .category-btn:hover {
    background-color: #e9ecef;
}

.questions-group {
    display: none; /* Domyślnie ukryte */
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeIn 0.4s ease;
}

.questions-group.active {
    display: flex; /* Pokazuje aktywną grupę */
}

.default-question-btn {
    border-radius: 15px;
    font-size: 0.8em; 
    flex-shrink: 0; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.chat-input-area {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}

#user-input {
    border-radius: 20px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease-in-out;
    resize: none;
    overflow-y: hidden;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.5;
}

#user-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--primary-color);
}

#send-button, #home-button {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
    flex-shrink: 0;
}

.bubble strong {
    font-weight: 500;
    color: #000;
}

.bubble ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.bubble li {
    margin-bottom: 2px;
}