/* ==================================================================
   COMBINED CSS FILE
   (Removed all dark-mode references and preserved only light-mode styling)
   ==================================================================*/

/* ------------------------------------------------------------------
   1. CUSTOM CARD & MODE VARIABLES (originally contained dark-mode)
   Cleaned up to remove dark-mode references.
-------------------------------------------------------------------*/
:root { 
    --bg-light: #d5e8d4;
    --card-bg-light: #fff;
    --text-light: #333;
    --shadow-light: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    background: #ffff;
    color: var(--text-light);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.custom-card {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease-in-out, background 0.3s, color 0.3s;
}


.custom-card .icon {
    width: 50px;
    height: 50px;
    background: var(--card-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: var(--shadow-light);
}

.custom-card .icon img {
    width: 30px;
    height: 30px;
}

/* Make top text bold, subtext normal in cards */
.custom-card .content h6 {
    font-size: 14px;
    font-weight: bold;
    color: #2e2e2e;
    margin-bottom: 2px;
}

.custom-card .content p {
    font-size: 16px;
    font-weight: normal;
    color: #2e2e2e;
    margin: 0;
}

/* Responsive Adjustments for Custom Card */
@media (max-width: 768px) {
    .custom-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .custom-card .icon {
        margin-bottom: 5px;
    }
}

/* ------------------------------------------------------------------
   2. GENERAL STYLES & COMPONENTS
-------------------------------------------------------------------*/

/* CONTAINER & CHAT */
.container {
    max-width: 600px;
    margin-top: 50px;
}

#metadataContainer .metadata-field {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.metadata-key, .metadata-value {
    flex: 1;
}

.chat-body {
    height: 400px;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.user-message {
    background-color: #dcf8c6 !important;
    color: black;
    text-align: right;
}

.bot-message {
    background-color: #ece5dd !important;
    color: black;
}

.loading {
    color: gray;
    text-align: center;
}

/* LAYOUT OVERVIEW */
.layout-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: 250px;
    min-width: 250px;
    background-color: #E8F3E8;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    width: 80px;
    min-width: 80px;
}

/* Off-canvas for mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
}

/* SIDEBAR HEADER */
.sidebar-header {
    padding: 1rem;
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    color: #064f03;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-header h2 {
text-align: center;
    opacity: 1!important;
}
/* SIDEBAR NAVIGATION LINKS */
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #064f03;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0;
    width: 4px;
    background-color: transparent;
    border-radius: 4px;
    transition: height 0.3s, background-color 0.3s;
}

.nav-link.active::before {
    height: 100%;
    background-color: #064f03;
}

.nav-link.active {
    background-color: #cbe2cb;
    font-weight: 600;
}

.nav-link i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.sidebar .nav-link:hover {
    text-decoration: none;
    background-color: #d8e7d8;
}

/* Hide text label when sidebar is collapsed */
.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
}
.sidebar.collapsed .nav-link i {
    margin-right: 0;
}
.user-avatar-img {
  background-size: cover;
  background-position: center;
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 50%;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.navbar i {
  border-radius: 50%;
  padding: 0.3rem;
  color: #064f03;
  font-size: 1.2rem;
}

a {
    color: #064f03;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 998;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toggle-sidebar-btn {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: #064f03;
    margin-right: 1rem;
    cursor: pointer;
}

.brand-title {
    color: #6c757d;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icons i {
    font-size: 1.2rem;
    cursor: pointer;
    color: #7c7c7c;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background-color: #f7dbdb;
    border-radius: 50%;
    cursor: pointer;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    padding: 1rem;
}

.card h5 {
    margin-bottom: 1rem;
    color: #064f03;
}

.nav-link:focus, .nav-link:hover {
    color: #064f03;
}

.navbar-expand-lg {
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
}

.main-content {
    padding: 15px;
}

.user-dropdown {
    min-width: 250px;
    margin-top: 1.9rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #fff;
}

.user-dropdown.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dropdown-item {
    transition: background-color 0.2s ease;
}

/* Additional Responsive Media Queries */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
}

@media (max-width: 992px) {
    .layout-wrapper {
        flex-direction: column;
    }
  
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-icons {
        margin-top: 10px;
    }
    .card,
    .custom-card {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 1rem;
    }
    .toggle-sidebar-btn {
        font-size: 1rem;
    }
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .user-avatar {
        width: 35px;
        height: 35px;
    }
}



   /* Hide all text and links within the translate gadget */
    #google_translate_element .goog-te-gadget {
        font-size: 0 !important;
    }

    /* Restore font size for the language select dropdown */
    #google_translate_element .goog-te-gadget select {
        font-size: 14px !important;
    }

    /* Alternatively, you can also hide the specific "Powered by" span and logo link */
    #google_translate_element .goog-te-gadget span,
    #google_translate_element .goog-te-gadget a {
        display: none !important;
    }

      