@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&display=swap');

/* ========================================== */
/* FREEZE FRAME: CSS LOGO INJECTION           */
/* ========================================== */
div.step:first-of-type {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background-color: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    
    /* Inject the logo as a CSS background paint layer */
    background-image: url('/logo') !important;
    background-repeat: no-repeat !important;
    background-position: left 20px top 12px !important;
    background-size: auto 38px !important;

    /* Top padding ensures the text starts BELOW the logo */
    padding: 55px 20px 12px 20px !important;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 12px 12px !important;
}

/* 1. Safely hide the avatar */
div.step:first-of-type .cl-avatar {
    display: none !important;
}

/* 2. Safely hide the timestamp text */
div.step:first-of-type .text-xs,
div.step:first-of-type .text-muted-foreground {
    display: none !important;
}

/* 3. Style the "Assistant" Header with Oswald */
div.step:first-of-type h3 {
    font-family: 'Oswald', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px !important;
}

/* 4. Strip Chainlit's default margins for standard text */
div.step:first-of-type .leading-7 {
    margin-top: 0 !important; 
    line-height: 1.4 !important;
}
div.step:first-of-type p {
    margin: 4px 0 !important;
}

/* 5. Ensure inline file links (Vault downloads) render properly */
.cl-element-inline {
    display: inline-block !important;
    margin: 0 !important;
}
