@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
body,html{
    margin:0;
    padding:0;
    height:auto;
    font-family:Inter,sans-serif;
    box-sizing:border-box;
    overflow-y:auto
}
.page-title-container{
    margin-top:-12px!important;
    position:relative;
    top:-8px;
    text-align:center;
    z-index:1000;
    margin:0;
    pointer-events:none
}
/* Restrict Gmail icon size inside chat bubbles */
.chat-bubble img[src*="gmail"] {
  width: 18px !important;
  height: 18px !important;
  max-width: 100%;
  object-fit: contain;
}


.smart-suggestions-box {
  background-color: #f8f9fc;
  border: 1px solid #dee2e6;
}
.smart-suggestions-box h6 {
  font-size: 1rem;
}
.smart-suggestions-box ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}
.smart-suggestions-box li {
  margin-bottom: 0.25rem;
}


.mb-5 {
    margin-bottom: -1rem !important;
}
.chat-row {
  margin-bottom: -0.5rem;
}
.chat-bubble {
  max-width: 75%;
  border-radius: 12px;
}
.chat-bubble.furobox-reply {
    max-width: 540px;
    width: 100%;
    margin-left: -20px;
    margin-right: auto;
}
@media (max-width: 768px) {
  .chat-bubble.furobox-reply {
    max-width: 100%;
    padding: 16px;
  }
}
.email-body p:first-child {
  text-align: left !important;
}

.email-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #fff;
}

.toolbar .btn {
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.toolbar .btn-outline-dark {
  background-color: #fff;
  color: #333;
  border-color: #ccc;
}

.toolbar .btn-outline-dark:hover {
  background-color: #f4f4f4;
}

.btn-copy,
.edit-email-btn {
  transition: all 0.2s ease;
}

.bubble.assistant-bubble {
  background: #fff;
  border-left: 4px solid #0071e3;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.email-body {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}

.email-action-bar button,
.email-action-bar a {
  transition: all 0.2s ease;
}

.email-action-bar button:hover,
.email-action-bar a:hover {
  background-color: #eef2f7;
}

.page-title-container .page-title{
    font-size:2rem;
    font-weight:500;
    margin:0
}
.fullchat-page{
    display:flex;
    padding-top:0!important;
    gap:24px;
    padding:24px;
    height:auto!important
}
.ai-tool-container{
    flex:0 0 50%;
    padding:24px;
    padding-right:24px;
    border-right:1px solid rgba(0,0,0,.1);
    border-radius:8px;
    overflow-y:auto;
    box-sizing:border-box
}
.chat-panel-wrapper{
    flex:1 1 75%;
    position:relative;
    padding-top:4px;
    box-sizing:border-box
}
.live-chat-label{
    display:flex;
    align-items:center;
    padding:0 0 9px;
    font-weight:500;
    font-size:1rem
}
.live-chat-icon{
    width:12px;
    height:12px;
    margin-right:8px
}
.live-chat-text{
    font-size:1rem;
    font-weight:500;
    color:#0f172a
}
.ai-tool-container .form-label{
    font-weight:500;
    margin-bottom:4px
}
.ai-tool-container .form-control,.ai-tool-container .form-select{
    width:100%;
    padding:8px 12px;
    font-size:1rem;
    margin-bottom:16px;
    border:1px solid rgba(68,167,225,.8);
    border-radius:4px;
    transition:border-color .2s,box-shadow .2s
}
.ai-tool-container .form-control:focus,.ai-tool-container .form-select:focus{
    border-color:rgba(68,167,225,.8);
    box-shadow:0 0 0 2px rgba(68,167,225,.2)
}
.btn-generate,.btn-submit-glow{
    display:block;
    width:100%;
    height:34px;
    line-height:34px;
    background-color:#44a7e1;
    color:#fff;
    font-weight:500;
    font-size:1rem;
    border:none;
    border-radius:999px;
    cursor:pointer;
    transition:opacity .2s
}
.btn-generate:hover,.btn-submit-glow:hover{
    opacity:.9
}
.advanced-toggle{
    display:flex;
    align-items:center;
    gap:8px
}
.toggle-label,.toggle-text{
    font-size:.9rem
}
.switch{
    position:relative;
    display:inline-block;
    width:40px;
    height:20px
}
.switch input{
    opacity:0;
    width:0;
    height:0
}
.chat-container{
    flex:0 0 55%;
    display:flex;
    flex-direction:column;
    background:#e8f2fc;
    border-radius:12px;
    padding:15px;
    box-sizing:border-box;
    height:calc(80vh - 80px)!important;
    overflow:hidden;
    min-width:600px;
    resize:horizontal
}
.chat-container .chat-header{
    display:none!important
}
.chat-conversation{
    flex:1 1 auto;
    overflow-y:auto;
    padding:0;
    gap:1px;
    display:flex;
    flex-direction:column
}
.chat-conversation::-webkit-scrollbar{
    width:6px
}
.chat-conversation::-webkit-scrollbar-thumb{
    background:rgba(0,0,0,.2);
    border-radius:3px
}
.start-placeholder{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#333;
    font-weight:500;
    width:100%;
    text-align:center
}
.chat-input-bar{
    padding:12px 16px;
    background:#e8f4fc;
    border-top:1px solid #dde7ef
}
.chat-input-bar form{
    display:flex;
    gap:8px
}
.followup-input{
    flex:1;
    padding:10px 14px;
    border:1px solid rgba(68,167,225,.8);
    border-radius:999px;
    font-size:1rem
}
.btn-send{
    padding:10px 16px;
    background:#44a7e1;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
    transition:opacity .2s
}
.btn-send:hover{
    opacity:.9
}
.bubble{
    max-width:88%;
    padding:13px 11px;
    border-radius:12px;
    background: #fff;
    line-height:1.5
}
.user-bubble{
    align-self:flex-end;
    background:#e8f4fc
}
.user-bubble .sender{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:.85rem;
    margin-bottom:4px;
    color:#333
}
.user-bubble .message{
    padding-left:24px;
    word-wrap:break-word;
    white-space:pre-wrap
}
.assistant-bubble{
    align-self:flex-start;
    background:#fff;
    border:1px solid #dde7ef
}
.chat-message-card{
    background:#fff;
    border-radius:12px;
    padding:24px;
    margin-bottom:16px;
    position:relative;
    box-shadow:0 2px 6px rgba(0,0,0,.05)
}
.chat-message-card .email-header{
    margin-bottom:16px
}
.chat-message-card .email-header .field{
    margin-bottom:6px
}
.chat-message-card .email-header .label,.chat-message-card .email-header .value{
    font-size:.9rem;
    font-weight:600
}
.chat-message-card .email-action-bar{
    display:flex;
    align-items:center;
    gap:24px;
    margin-top:24px
}
.chat-message-card .email-action-bar a,.chat-message-card .email-action-bar button{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:.85rem;
    color:#2563eb;
    background:0 0;
    border:none;
    cursor:pointer;
    text-decoration:none;
    padding:4px 0
}
.chat-message-card .email-action-bar a:hover,.chat-message-card .email-action-bar button:hover{
    text-decoration:underline
}
.btn-copy{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    padding:4px 13px!important;
    background:0 0!important;
    color:#333!important;
    cursor:pointer!important;
    font-size:.8rem!important;
    user-select:none!important;
    border:none!important;
    box-shadow:none!important
}
.btn-copy:focus-visible{
    outline:2px solid rgba(68,167,225,.8)!important;
    outline-offset:2px!important
}
.btn-copy .copy-icon{
    width:20px!important;
    height:20px!important;
    object-fit:contain!important;
    flex-shrink:0!important;
    image-rendering:-moz-crisp-edges!important;
    image-rendering:crisp-edges!important;
    image-rendering:pixelated!important;
    pointer-events:none!important;
    user-select:none!important
}
.email-action-bar{
    display:block;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    margin-top:16px
}
.email-action-bar .btn-copy,.email-action-bar a{
    display:inline-flex;
    align-items:center;
    gap:0;
    padding:6px 12px;
    font-size:.9rem;
    text-decoration:none;
    background:0 0;
    border:1px solid transparent;
    border-radius:4px;
    color:#2563eb;
    cursor:pointer;
    transition:background-color .2s,border-color .2s
}
.email-action-bar img{
    width:20px;
    height:20px;
    object-fit:contain;
    flex-shrink:0;
    image-rendering:-moz-crisp-edges;
    image-rendering:crisp-edges;
    image-rendering:pixelated;
    user-select:none;
    pointer-events:none
}
.email-action-bar .btn-copy:focus-visible,.email-action-bar .btn-copy:hover,.email-action-bar a:focus-visible,.email-action-bar a:hover{
    background-color:rgba(37,99,235,.1);
    border-color:rgba(37,99,235,.3)
}
.followup-prompt{
    width:100%;
    margin:6px 262px 40px calc(-4% + 24px);
    display: none;
}
.followup-prompt label{
    display:block;
    margin-bottom:8px;
    font-weight:500;
    font-size:.9rem;
    color:#0f172a
}
.followup-form{
    width:100%
}
.followup-input-wrapper{
    position:relative;
    width:100%
}
.followup-input-wrapper input{
    width:100%;
    padding:10px 56px 10px 14px;
    border:1px solid rgba(68,167,225,.8);
    border-radius:999px;
    font-size:1rem;
    box-sizing:border-box
}
.followup-input-wrapper .send-button{
    position:absolute;
    top:50%;
    right:16px;
    transform:translateY(-50%);
    background:0 0;
    border:none;
    cursor:pointer;
    padding:0
}
.followup-input-wrapper .send-icon{
    width:24px;
    height:24px;
    display:block
}
@media (max-width:1024px){
    .fullchat-page{
        flex-direction:column;
        gap:16px;
        padding:16px
    }
    .ai-tool-container,.chat-container{
        flex:1 1 auto;
        width:100%;
        min-width:auto;
        height:auto!important;
        resize:none;
        margin:0
    }
    .chat-container{
        height:50vh!important
    }
    .followup-prompt{
        margin:16px 0 32px 0!important
    }
}
.scroll-btn{
    position:absolute;
    bottom:140px;
    right:13px;
    background:0 0;
    border:none;
    box-shadow:none;
    color:rgba(68,167,225,.6);
    font-size:1.4rem;
    line-height:1;
    cursor:pointer;
    transition:color .2s,transform .2s;
    z-index:100
}
.scroll-btn:hover{
    color:#44a7e1;
    transform:scale(1.2)
}
.scroll-btn:active{
    transform:scale(1)
}
.fullchat-page{
    display:flex;
    gap:24px;
    padding:24px;
    align-items:stretch
}
.chat-panel-wrapper{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    padding-top:4px;
    box-sizing:border-box
}
.chat-container{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    background:#e8f2fc;
    border-radius:12px;
    padding:15px;
    overflow:hidden;
    box-sizing:border-box;
    min-width:600px;
    resize:horizontal
}
.chat-conversation{
    flex:1 1 auto;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:1px;
    padding:0
}
.user-bubble{
    position:relative;
    padding:13px 33px 8px 11px
}
.user-bubble .sender{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);
    line-height:1;
    white-space:nowrap
}

/* ─── Responsive Layout for Full Chat Page ─── */
@media (max-width: 768px) {
  .fullchat-page {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .ai-tool-container,
  .chat-panel-wrapper {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;                /* allow shrinking below 600px */
    border-right: none;          /* remove right border on narrow screens */
    padding: 16px;
  }
  .chat-container {
    min-width: auto;
    height: 50vh !important;
  }
  .scroll-btn {
        bottom: 172px !important;
        right: 35px !important;
    }
  .container {
    margin: 14px auto !important;
  }
  .start-placeholder {
    width: 84%;
  }
}

/* ─── Demo Banner Guest (mobile tweaks) ─── */
@media (max-width: 576px) {
  #demoBannerBox {
    padding: 16px !important;
  }
  #demoBannerBox h5 {
    font-size: 1rem;
  }
  #demoBannerBox .bonus-points {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
  }
  #demoBannerBox .btn {
    width: 48%;
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  #demoBannerBox .features-list {
    max-width: 100%;
    padding: 0;
  }
  #demoBannerBox .features-list li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    text-align: left;
  }
  .ai-tool-container .form-control,
  .ai-tool-container .form-select {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  .ai-tool-container .form-label {
    font-size: 0.9rem;
  }
  .btn-submit-glow {
    font-size: 0.9rem;
    height: 32px;
  }
    /* Make the toggle button slightly bigger for touchscreen */
  #sidebarToggle {
    width: 44px;
    height: 44px;
  }

  /* Reduce form padding & font‐sizes */
  .ai-tool-container {
    padding: 12px;
  }
  .ai-tool-container .form-control,
  .ai-tool-container .form-select {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}


/* ─── Off-canvas sidebar on tablets & phones ─── */
@media (max-width: 1024px) {
  /* Hide the sidebar by default */
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    z-index: 1000;
  }
  /* Bring it back when “open” class is added by your toggle script */
  #sidebar.expanded {
    transform: translateX(0);
  }

  /* Remove any forced left‐margin on the nav and main content */
  #mainNav.expanded,
  #mainContent.open {
    margin-left: 0 !important;
  }
  #mainContent {
    margin-left: 0 !important;
    transition: margin-left 0.3s ease;
  }

  /* Keep the toggle button above everything */
  #sidebarToggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1100;
  }

  /* (Optional) hide the backdrop if you don’t want a shaded layer */
  #sidebarBackdrop {
    display: none !important;
  }
}
