:root {
    --kkm-blue: #003366;
    --kkm-light-blue: #eef4fb;
    --success-green: #28a745;
    --accent-red: #d9534f;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f9;
    color: var(--text-dark);
}

/* Official Banner */
.official-banner {
    background: #eee;
    padding: 8px 20px;
    font-size: 0.8rem;
    border-bottom: 1px solid #ddd;
}

.official-banner a { color: var(--kkm-blue); text-decoration: underline; }

/* Main Container */
.main-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    text-align: center;
    padding-bottom: 30px;
}

.assistant-avatar {
    width: 70px;
    height: 70px;
    background: var(--kkm-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.welcome-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--kkm-blue);
}

/* Large Triage Button */
.btn-large-triage {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: var(--kkm-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-large-triage:hover { transform: translateY(-2px); background: #004080; }

/* Pulse Animation */
.pulse {
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s infinite;
}

.btn-back {
    background: none;
    border: none;
    color: #003366;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.btn-back::before {
    content: '←';
    margin-right: 8px;
    transition: transform 0.2s;
}

.btn-back:hover::before {
    transform: translateX(-4px);
}


@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(20); opacity: 0; }
}

/* Style for the Plus (+) button */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #e8f0fe; /* Very light blue */
    color: #003366; /* KKM Blue */
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevents the button from squishing */
}

/* Hover effect */
.icon-btn:hover {
    background-color: #d0e1fd;
    transform: rotate(90deg); /* Subtle animation for fun */
    color: #0044cc;
}

/* Active/Click effect */
.icon-btn:active {
    transform: scale(0.9);
}

/* Chat Bubbles */
.chat-container {
    margin: 20px 0;
    min-height: 200px;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 15px;
    max-width: 85%;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat-bubble.ai {
    background: var(--kkm-light-blue);
    color: var(--kkm-blue);
    border-bottom-left-radius: 2px;
}

.chat-bubble.user {
    background: var(--kkm-blue);
    color: #fff;
    border-bottom-right-radius: 2px;
    margin-left: auto;
}

/* Input Hub */
.smart-input-container {
    display: flex;
    gap: 10px;
    background: #f0f2f5;
    padding: 10px;
    border-radius: 30px;
    align-items: center;
}

input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    outline: none;
}

.voice-btn {
    background: var(--kkm-blue);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.voice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Makes body full screen height */
}

.main-container {
    flex: 1; /* Pushes the footer to the bottom if content is short */
}

/*Footer Styling */
.site-footer {
    background: #002244; /* Darker blue for contrast */
    color: #ffffff;
    padding: 40px 20px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
    font: Roboto;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #6fb1fc; /* Light blue accent */
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    font: Roboto;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font: Roboto;
    font-size: 0.8rem;
    color: #888;
}
