/* ===== Global ===== */
.mainPage {
    background-color: #f5f6fa !important;
}

.mainLayout {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Hero Section ===== */
.heroSection {
    background: linear-gradient(135deg, #354A5F 0%, #0A6ED1 100%);
    padding: 2.5rem 2rem !important;
    border-radius: 0 0 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.heroContent {
    align-items: center !important;
    gap: 1.5rem;
}

.heroAvatar {
    font-size: 4.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 6rem;
    height: 6rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.heroText {
    gap: 0.25rem;
}

.heroName .sapMTitle {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
}

.heroTitle .sapMLabel {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
}

.heroSubtitle .sapMLabel {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
}

.heroLocation .sapMLabel {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem !important;
}

/* ===== Info Tiles ===== */
.tilesSection {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    padding: 0 0.5rem 1.5rem 0.5rem !important;
    flex-wrap: wrap;
}

.infoTile {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem !important;
    text-align: center;
    min-width: 180px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center !important;
}

.infoTile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tileIcon {
    font-size: 1.75rem !important;
    color: #0A6ED1 !important;
    margin-bottom: 0.5rem;
}

.tileValue .sapMLabel {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #354A5F !important;
}

.tileLabel .sapMLabel {
    font-size: 0.8rem !important;
    color: #6A6D70 !important;
}

/* ===== Chat Section ===== */
.chatSection {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.chatTitle .sapMTitle {
    color: #354A5F !important;
    font-size: 1.3rem !important;
    margin-bottom: 0.25rem;
}

.chatDescription .sapMLabel {
    color: #6A6D70 !important;
    font-size: 0.85rem !important;
    margin-bottom: 1rem;
}

/* ===== Suggested Questions ===== */
.suggestedQuestions {
    gap: 0.5rem;
    margin-bottom: 1rem !important;
    flex-wrap: wrap;
}

.suggestedBtn {
    border: 1px solid #0A6ED1 !important;
    border-radius: 1.5rem !important;
    color: #0A6ED1 !important;
    font-size: 0.8rem !important;
    transition: all 0.2s;
}

.suggestedBtn:hover {
    background-color: #0A6ED1 !important;
    color: #ffffff !important;
}

.suggestedBtn .sapMBtnInner {
    border-radius: 1.5rem !important;
}

/* ===== Chat Messages ===== */
.chatMessages {
    background: #f8f9fc;
    border-radius: 0.75rem;
    border: 1px solid #e8e8e8;
    margin-bottom: 1rem;
}

.chatContainer {
    padding: 1rem !important;
    gap: 0.75rem;
}

.messageBubble {
    max-width: 85%;
    gap: 0.5rem;
    align-items: flex-start !important;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.userMessage {
    margin-left: auto !important;
    flex-direction: row-reverse;
}

.botMessage {
    margin-right: auto !important;
}

.messageIcon {
    font-size: 1.5rem !important;
    min-width: 2rem;
    margin-top: 0.25rem;
}

.botIcon {
    color: #0A6ED1 !important;
}

.userIcon {
    color: #354A5F !important;
}

.messageContent {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem 1rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.userMessage .messageContent {
    background: #0A6ED1;
    border-radius: 1rem 1rem 0.25rem 1rem;
}

.botMessage .messageContent {
    border-radius: 1rem 1rem 1rem 0.25rem;
}

.userMessage .messageText .sapMText {
    color: #ffffff !important;
}

.messageText .sapMText {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #333333 !important;
    white-space: pre-wrap !important;
}

.userMessage .messageText .sapMText {
    color: #ffffff !important;
}

/* ===== Typing Indicator ===== */
.typingText .sapMText {
    color: #6A6D70 !important;
    font-style: italic !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.typingIndicator {
    animation: pulse 1.5s infinite;
}

/* ===== Input Area ===== */
.inputArea {
    gap: 0.5rem;
    align-items: center !important;
}

.chatInputField {
    flex: 1;
}

.chatInputField .sapMInputBaseInner {
    border-radius: 1.5rem !important;
    padding: 0.5rem 1rem !important;
    border: 2px solid #e8e8e8 !important;
    transition: border-color 0.2s;
}

.chatInputField .sapMInputBaseInner:focus {
    border-color: #0A6ED1 !important;
}

.sendButton {
    border-radius: 50% !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
}

.sendButton .sapMBtnInner {
    border-radius: 50% !important;
}

/* ===== Footer ===== */
.footerSection {
    text-align: center;
    padding: 1.5rem 0 2rem 0 !important;
    align-items: center !important;
}

.footerText .sapMLabel {
    color: #6A6D70 !important;
    font-size: 0.8rem !important;
}

.footerLink {
    font-size: 0.8rem !important;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .heroSection {
        padding: 1.5rem 1rem !important;
    }

    .heroAvatar {
        font-size: 3rem !important;
        width: 4rem;
        height: 4rem;
    }

    .heroName .sapMTitle {
        font-size: 1.5rem !important;
    }

    .heroTitle .sapMLabel {
        font-size: 1rem !important;
    }

    .tilesSection {
        gap: 0.5rem;
    }

    .infoTile {
        min-width: 140px;
        padding: 1rem !important;
    }

    .chatMessages {
        height: 300px !important;
    }

    .messageBubble {
        max-width: 95%;
    }

    .suggestedBtn {
        font-size: 0.75rem !important;
    }
}
