* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {*/
/*    overflow-y: hidden;*/
/*}*/


/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.logo-text {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #2c2c2c;
}

.logo-by {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #E87B7A;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: #f5f5f5;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: #fafafa;
    border-right: 1px solid #e5e5e5;
    padding: 24px 20px;
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-top: 40px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sara-icon-small {
    width: 32px;
    height: 32px;
    background-color: #CBDD75;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 1px;
}

.close-btn {
    background: none !important;
    border: none !important;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666 !important;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #2c2c2c;
}

.new-chat-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.new-chat-btn:hover {
    background-color: #f5f5f5;
    border-color: #d5d5d5;
}

.plus-icon {
    font-size: 20px;
    font-weight: 300;
}

.help-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
    text-align: left;
}

.help-btn:hover {
    background-color: #f0f0f0;
}

.sidebar-section {
    margin-top: 20px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.recent-item:hover {
    background-color: #f0f0f0;
}

.recent-text {
    font-size: 14px;
    color: #4a4a4a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover svg {
    stroke: #E87B7A;
}

/* Main Content Styles */
.main-content {
    margin-top: 0px;
    padding: 90px 40px 40px 40px;
    min-height: calc(100vh - 100px);
    transition: margin-left 0.3s ease;
}

.main-content.shifted {
    margin-left: 180px;
}

.hamburger-btn {
    position: fixed;
    left: 20px;
    top: 140px;
    background-color: transparent;
    border: none !important;
    cursor: pointer;
    padding: 10px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: opacity 0.3s ease;
    background: none !important;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background-color: #2c2c2c;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.hamburger-btn:hover span {
    background-color: #B04790;
}

.hamburger-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* SARA Logo */
.sara-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0px;
}

.sara-icon {
    width: 60px;
    height: 60px;
    background-color: #CBDD75;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: 700;
}

.sara-text {
    font-size: 54px;
    font-weight: 300;
    color: #2c2c2c;
    letter-spacing: 4px;
}

/* Greeting */
body h1.greeting {
    font-size: 48px;
    font-weight: 300;
    color: #B04790;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Description */
.description {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 10px;
}

.examples-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 30px;
}

/* Example Cards */
.examples-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 120px;
}

.example-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.example-card:hover {
    background-color: #f5f5f5;
    border-color: #d5d5d5;
    transform: translateY(-2px);
}

.example-text {
    font-size: 15px;
    color: #4a4a4a;
    flex: 1;
    line-height: 1.5;
}

.arrow-btn {
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E87B7A;
    transition: transform 0.3s ease;
    border: 0px !important;
}

.arrow-btn svg {
    stroke: #B04790;
}

.example-card:hover .arrow-btn {
    transform: translateX(4px);
}

/* Input Container */
.input-container {
    position: fixed;
    bottom: 0px;
    left: 0;
    transform: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 30px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: margin-left 0.3s ease;
    justify-content: center;
}

body h1 {
    color: #000;
}

.inner-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    gap: 20px;
}

.input-container.shifted {
    margin-left: 140px;
}

body .chat-input {
    flex: 1;
    outline: none;
    font-size: 15px;
    padding: 12px 20px;
    background-color: transparent;
    color: #2c2c2c;
    border-radius: 8px !important;
    border: 1px solid #fff !important;
}

.chat-input:active,
.chat-input:focus {
    border: 1px solid #CBDD75 !important;
}

.chat-input::placeholder {
    color: #999;
}

.send-btn {
    width: 48px;
    height: 48px;
    background-color: #CBDD75 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    background-color: #d86968;
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #c5c5c5;
}

body.page-id-14334 footer,
body.page-id-14334 .page-header {
    display: none;
}

/* Conversation Area */
.conversation {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 110px;
}

/* Search Results */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;

}

.delete-convo {
    background: none !important;
    color: #000 !important;
    border: 0px !important;
}

.message.assistant.search-results {
    max-width: 100% !important;
}
.message.assistant h3,
.message.assistant h4,
.message.assistant h2{
    margin-bottom:10px;
    font-weight: 600;
}
.message.assistant table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px;
    font-size: 0.9em;
    border-radius: 0px;
    overflow: hidden; /* Clips the corners of the table */
    background: #ffffff;
    border-radius:8px;
}
.message.assistant ul:has(li h4) {
    list-style-type: none;
    padding-left: 0; /* Optional: removes default indentation */
}

/* If you want to target only the specific 'li' that has the 'h4' */
.message.assistant li:has(h4) {
    list-style-type: none;
}
.message.assistant tbody tr:nth-of-type(2n) {
  background: #dbdbdb;
}
.message.assistant th {
  background-color: #000;
  color: #fff;
  text-align: left;
  font-weight: bold;
  padding: 12px 15px;
  border: 0px;
}

.message.assistant td {
    padding: 10px 15px;
    border: 0px !important;
    color: #555;
}

/* Zebra striping for readability */
.message.assistant tr:nth-child(even) {
    background-color: #fafafa;
}

/* Hover effect to help the eye track rows */
.message.assistant tr:hover {
    background-color: #f1f5ff;
}
.message.assistant {
    margin-bottom:10px;
}
.message.assistant ul {
    padding-left: 30px;
    margin-bottom: 20px;
}

.message.assistant ul li {
    margin-bottom: 10px;
}

.search-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 18px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.search-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.search-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #2c2c2c;
    font-weight: 600;
}

.search-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Message base */
.message {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.message.assistant {
    width: auto;
    max-width: 75%;
}
.message.assistant + .message.assistant {
  max-width: 100%;
  width: 100%;
}
.message.assistant.assistant-intro,
.message.assistant.thinking {
    max-width: 75%;
    width: auto;
}

/* User message */
.message.user {
    align-self: flex-end;
    background-color: #D9EE728A;
    color: #000;
    border-radius: 24px 24px 4px 24px;
}

/* Ensure main-content uses viewport height */
.main-content {
    height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.message.assistant.thinking {
    font-style: italic;
    color: #777;
    opacity: 0.9;
}

/* Make chat area scrollable */
.content-wrapper {
    flex: 1;
    overflow-y: auto;

    /* space for fixed input */
    padding-bottom: 70px;
}

/* Ensure conversation never hides */
.conversation {
    margin-bottom: 0 !important;
}

/* Chrome, Edge, Safari */
.content-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Firefox */
.content-wrapper {
    scrollbar-width: none;
    /* hides scrollbar */
}

/* IE / old Edge */
.content-wrapper {
    -ms-overflow-style: none;
}

/* Mobile safety */
@media (max-width: 768px) {
    .content-wrapper {
        padding-bottom: 180px;
    }
}

/* Assistant message */
.message.assistant {
    align-self: flex-start;
    background-color: #f5f5f5;
    color: #2c2c2c;
    border-bottom-left-radius: 4px;
}

/* ===============================
   DELETE LOADING STATE
================================ */

.recent-item.deleting {
    opacity: 0.5;
    pointer-events: none;
}

.recent-item.deleting .delete-convo {
    position: relative;
}

.recent-item.deleting .delete-convo::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #B04790;
    border-radius: 50%;
    animation: sara-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes sara-spin {
    to {
        transform: rotate(360deg);
    }
}

search-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.search-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   HISTORY SKELETON LOADER
================================ */

.message.skeleton {
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e6e6e6 37%,
            #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    opacity: 0.8;
}

.message.skeleton.assistant {
    align-self: flex-start;
}

.message.skeleton.user {
    align-self: flex-end;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.feedback-wrapper {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.feedback-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.feedback-btn {
    background: transparent !important;
    border: 1px solid #ddd !important;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.feedback-box {
    width: 100% !important;
    min-width: 720px;
}

.feedback-btn.active {
    background: #CBDD75 !important;
    border-color: #CBDD75 !important;
}

.feedback-btn {
    margin-left: 5px;
}

.feedback-btn.inactive {
    opacity: 0.4;
}

.feedback-btn:disabled {
    cursor: default;
}

.feedback-thanks {
    margin-top: 16px;
    color: green;
}

.feedback-thankyou {
    margin-top: 6px;
    font-size: 12px;
    color: #4a4a4a;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
    }


    .main-content {
        padding: 40px 20px;
    }

    .sara-logo {
        margin-bottom: 0px;
    }

    .sara-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .sara-text {
        font-size: 48px;
    }

    .greeting {
        font-size: 36px;
    }

}