﻿/* Existing default CSS */
html {
    font-size: 14px;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}

html,
body {
    height: 100%;
    margin: 0;
   
}

/* Local Exo 2 – Regular (400) */
@font-face {
    font-family: 'Exo 2';
    src: url('/fonts/Exo2-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Local Exo 2 – Bold (700) */
@font-face {
    font-family: 'Exo 2';
    src: url('/fonts/Exo2-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@media (max-width: 768px) {
    .table th, .table td {
        font-size: 14px; 
        padding: 6px;
    }

    .header {
        flex-wrap: wrap; 
    }
}

.badge {
    font-size: 0.65rem;
    padding: 4px 6px;
}

.btn.btn-primaryy.custom-no-hover {
    background-color: #4F868E;
    border-color: #4F868E !important;
    color: white !important;
}


.reply-btn {
    font-size: 0.85rem;
    padding: 2px 6px;
    margin-left: 5px;
    color: #0d6efd;
}

    .reply-btn:hover {
        color: #0d6efd;
        text-decoration: underline;
    }

.comment-box {
    padding: 0.50rem 50rem; /* reduced vertical padding */
    margin-bottom: 0.25rem; /* reduced spacing between boxes */
    background-color: #f9f9f9;
   
}

    .comment-box .ps-2 {
        margin-bottom: 0.25rem; /* compress inner padding */
    }

.reply-form {
    margin-top: 0.25rem;
}

.toggle-replies:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.comment-thread:hover {
    background-color: #f8f8f8;
}
.answer-body {
    background-color: #f7fafd;
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.speech-box {
    position: relative;
    background: #f7fafd;
    border: 1px solid #d9e2ef;
    border-radius: 6px;
   
    max-width: 100%;
  
    padding-left: 10px !important;
}

    .speech-box::before {
        content: "";
        position: absolute;
        top: 14px;
        left: -10px;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: #f7fafd;
        z-index: 1;
    }

    .speech-box::after {
        content: "";
        position: absolute;
        top: 13px;
        left: -11px;
        width: 0;
        height: 0;
        border: 9px solid transparent;
        border-right-color: #d9e2ef;
        z-index: 0;
    }
.speech-box {
    white-space: pre-line; /* Converts multiple spaces to one, but keeps line breaks */
}


.icon-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/*  Edit icon hover - green box */
.icon-edit:hover {
    border: 1px solid #28a745;
    background-color: #d1f5d3; /* light green */
}

/*  Delete icon hover - red box */
.icon-delete:hover {
    border: 1px solid #dc3545;
    background-color: #f8d7da;
}

/*  Delete icon disabled - gray box on hover */
.icon-delete.disabled {
    color: #aaa;
    cursor: default;
}

    .icon-delete.disabled:hover {
        border: 1px solid #aaa;
        background-color: #eee;
    }



.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    /* box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;*/
    box-shadow: none !important;
    outline: none !important;
}



.container-fluid-main {
    padding-left: 30px;
    padding-right: 30px;
    max-width: 100% !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
    padding-bottom: 0px;
}


.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    max-width: 98%;
  
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}
.container-fluid-middle {
    padding-left: 100px;
    padding-right: 100px;
    margin-left: auto;
    margin-right: auto;
    max-width: 50%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}

.container-fluid-forum {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    max-width: 98%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}

body, .container, .tab-content, .nav-tabs, .tab-pane, .input-group, .grid-table {
    margin: 0;
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
   
    
}

.wrapper {
    display: flex;
    flex-direction: column;
     min-height: calc(100vh - 110px);
}

.main-content {
    flex: 1 0 auto; 
}

.grid-table, .input-group {
    text-align: left;

}

.grid-table, .input-group, .tab-content, .tab-pane {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left;
   
}

.nano-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0px;
    right: 0;
    left: 0;
    backdrop-filter: blur(0px);
    z-index: 110;
    padding: 0px;
    border-bottom: 1px solid #ddd;
    pointer-events: none;
    margin-top: 80px;
    background-color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar .navbar-brand img.logo {
    height: 50px;
    width: auto;

}


.navbar .nav-link {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    top:0;
}

header a, header span, header button {
    pointer-events: auto;
}

.nano-header .btn-warning {
    margin-left: 10px;
    font-size: 14px;
    padding: 6px 12px;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
    
}


.nano-header .btn-link {
    margin-left: 10px;
    font-size: 14px;
    color: #000;
    margin-top: 4px;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}






.grid-table, .table {
    width: 100%;
    background-color: white;
    border: 1px solid #CCC;
    border-collapse: collapse;
    table-layout: auto;
    direction: ltr;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
    border-color: #4F868E !important;
    margin-bottom: 130px;
}

    .grid-table th, .table th {
        padding: 8px;
        border: 1px solid #CCC;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: bold;
        font-size: 14px;
        width: auto;
        font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
        border-color: #B3D2D5 !important;
      
    }

    .grid-table td, .table td {
        padding: 8px;
        border: 1px solid #CCC;
        text-align: left;
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
        border-color: #B3D2D5 !important;
      
    }



    .grid-table tbody tr:nth-child(odd) {
        background-color: #f9f9f9; 
}

    .grid-table tbody tr:nth-child(even) {
        background-color: white;
       
    }


.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    height: 100%;
    max-height: calc(100vh - 100px);
    position: relative;
    width: 100%;
    margin-top: 30px;
    direction: rtl;
    padding-bottom: 30px;
}


.table-wrapper-user {
    overflow-x: auto;
    overflow-y: auto;
    height: 100%;
    max-height: calc(100vh - 100px);
    position: center;
    width: 100%;
    margin-top: 30px;
   
    padding-bottom: 20px;
} 



table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 80px;
    overflow-x: auto;
    border: 1px solid #ddd;
    
}


thead th {
    position: sticky;
    top: 0px;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    
}

tbody tr td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}




.search-container {
    position: sticky;
    top: 120px;
    background-color: #fff;
    z-index: 100;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 50%;
    top: 0;
   
}
.search-container-in {
    position: sticky;
    top: 120px;
    background-color: #fff;
    z-index: 100;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 80%;
    top: 0;
}



.form-control {
    border-color: #B3D2D5 !important;
}

.select2-container .select2-selection {
    border-color: #B3D2D5 !important;
}

.search-container input.form-control {
    flex: none;
    height: 40px;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border-color: #4F868E !important;
}
.nav-tabs {
    position: sticky;
    top: 0;
}


.nav-tabs .nav-link.active {
    color: #4F868E !important;
    font-weight: bold;
    top:0;
}
.nav-tabs .nav-link {
    position: sticky;
    z-index: 120;
    margin-bottom: 0;
    margin-top: 107px;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #000;
    top:0;
    
   
}

.tab-content {
    margin-top: 10px;
   
}

.search-container-wrapper-kg {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
    border-color: #4F868E !important;
}

.search-form-kg {
    flex: 1;
    width: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: #4F868E !important;
}

.search-container-kg input.form-control-kg {
    flex: none;
    height: 40px;
    font-size: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border-color: #4F868E !important;
}

.search-container-kg .btn {
    white-space: nowrap;
    height: 40px;
    font-size: 14px;
    padding: 0 15px;
    border-color: #4F868E !important;
}

.search-wrapper-center {
    display: flex;
    justify-content: center; /* horizontal centering */
    width: 100%;
}


.main-header {
    background-color: white;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 120;
    align-items: start;
    border-bottom: none !important;
    color: #4F868E !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .main-header .navbar {
        margin-bottom: 0 !important;
    }

body {
    margin: 0;
    padding-top: 110px;
    font-family: 'Exo 2', Arial, Verdana, sans-serif;
    box-sizing: border-box;
    
} 

h2 {
    text-align: justify;
    margin-top: 20px;
    margin-bottom: 20px; 
    font-size: 24px; 
    white-space: nowrap;
    margin-left: 25px;
}
body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea {
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}



textarea {
    width: 100%;
    height: auto;
}


.ReadMore {
    display: none;
}



a {
    font-weight: bold !important;
    text-decoration: none;
    color: #000000;
}
    a:hover {
        color: #4F868E !important;
        text-decoration: none; 
        font-weight: bold !important;
    }


.btn-link {
    text-decoration: none;
    font-weight: bold !important;
    color: #4F868E !important;
    text-decoration: none !important;
    
}

    .btn-link:hover {
        text-decoration: none;
        font-weight: bold;
        color: #e2950f !important;
        
        border-color: none;
    }

.btn-linkk {
    text-decoration: none;
    font-weight: bold !important;
    color: #4F868E !important; 
    border: 1px solid #4F868E !important;
    text-decoration: none !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    display: inline-block !important;
}
    .btn-linkk:hover {
        text-decoration: none;
        font-weight: bold;
       
        padding: 5px 10px !important;
        border-radius: 5px !important;
        display: inline-block !important;
        color: #e2950f !important; 
        border: 1px solid #e2950f !important;
        border-color: #3E6B70;
    }

    .btnn-link {
    text-decoration: none;
    font-weight: bold !important;
    color: #4F868E !important; 
    text-decoration: none !important;
}

        .btnn-link:hover {
            text-decoration: none;
            font-weight: bold;
            color: #e2950f !important;
            
        }


.custom-btn {
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}
    .custom-btn:hover {
        background-color: #5d9ea8;
        color: black !important;
    }

.custom-alert-info {
    background-color: #4F868E !important;
    color: black;
    border: 1px solid #4F868E;
}

    .custom-alert-info strong {
        color: black; 
    }

    .custom-alert-info em {
        color: black;
    }

.btn-primary {
    background-color: #4F868E !important;
    border: 1px solid #4F868E;
    border-color: #4F868E !important;
}
.btn-outlin-primary {
    border: 1px solid #4F868E;
    border-color: #4F868E !important;
    color: black;
}
.custom-enabled-badge {
    background-color: #4F868E !important;
    color: white !important;
   
    padding: 0.5em 0.75em;
    border-radius: 0.25rem;
    text-align: center;
    width: 75px;
    height: 2rem;
    line-height: 1.5rem;
    display: inline-block;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.custom-disabled-badge {
    background-color: #dc3545 !important;
    color: white !important;
   
    padding: 0.75em 1em;
    border-radius: 0.25rem;
    text-align: center;
    width: 75px;
    height: 2rem;
    line-height: 1.5rem;
    display: inline-block;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}
.text-preserve {
    white-space: pre-wrap; /*read more line by line*/
    text-align: left !important;
    padding-left: 0px;
    text-indent: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.footer {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

    .footer a {
        text-decoration: none;
        color: black;
    }

        .footer a:hover {
            text-decoration: none !important;
            color: #4F868E !important;
        }

    .footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;

    }

    .footer .row {
        width: 100%;
    }

    .footer p {
        margin: 0;
        line-height: 1.5;
        font-size:18px;
    }

    .footer .footer-link {
        margin-right: 15px; 
        text-decoration: none !important;
        color: black; 
        margin-left: 20px;
    
    }

    .footer img.logo {
        height: 50px; 
        width: auto;
        margin-left: 20px;
        margin-top: 30px;
    }
.table-warning {
    background-color: #e2950f !important; 
   
}




.clickable-row:hover {
    background-color: #f5f5f5;
}



/* Add spacing and a light background for better visibility */
.details-row {
    background-color: #E6F2F5;
    font-size: 14px;
    font-weight: normal;
    padding: 10px;
    border-bottom: 3px solid #4F868E;
    margin-bottom: 10px;
}


.expanded-row {
    background-color: #D9E7EB !important; 
}


.details-row td {
    padding: 10px;
    font-size: 14px;
}


.expandable-cell {
    cursor: pointer;
    padding: 8px;
    background-color: white;
    transition: background 0.3s ease;
}


    .expandable-cell:hover {
        background-color: #D9E7EB !important;
    }
.selected-cell {
    font-weight: bold !important;
    background-color: #D9E7EB !important; 
}

.details-row td {
    border-left: 3px solid #4F868E;
    border-right: 3px solid #4F868E;
    background-color: #E6F2F5 !important;
}

.details-row.expanded-row td {
    background-color: #D9E7EB !important; 
    font-weight: inherit; 
}
.grid-table-index {
    width: 100% !important;
    background-color: white;
    border: 1px solid #CCC;
    border-collapse: collapse;
    table-layout: auto;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
    border-color: #4F868E !important;
    margin-left: 10px ;
    margin-top: 30px;
}



.grid-table-index thead tr th {
    background-color: #4F868E !important;
    color: white !important;
}

.grid-table-user {
    width: 70% !important;
    background-color: white;
    border: 1px solid #CCC;
    border-collapse: collapse;
    table-layout: auto;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
    border-color: #4F868E !important;
    margin-bottom: 130px;
    margin: 0 auto;
    margin-top: 30px;
}

    .grid-table-user thead tr th {
        background-color: #4F868E !important;
        color: white !important;
    }


.search-box {
    position: relative;
    display: flex;
    align-items: center !important;
    width: 100%;
    gap:10px;
}

    .search-box input {
       width: 100%;     
        padding-right: 35px; 
        background-image: url('https://cdn-icons-png.flaticon.com/512/622/622669.png'); 
        background-position: right 10px center;
        background-repeat: no-repeat;
        background-size: 20px;
        border-radius: 25px !important;
        flex-grow: 1;
    }


button {
    padding: 8px 15px; 
    margin-left: 10px;
}




.pagination .page-item.active .page-link {
    background-color: #4F868E !important; 
    border-color: #4F868E !important;
    color: white !important;
}

/* Change hover color */
.pagination .page-link:hover {
    background-color: #3b6a72 !important; 
    color: white !important;
}

/* Change default page number color */
.pagination .page-link {
    color: #4F868E !important; 
    border-radius: 5px;
}



/* Style the autocomplete dropdown */
.ui-autocomplete {
    background-color: white;
    font-family: 'Exo 2', Arial, Verdana, sans-serif !important;
}

/* Remove blue focus/active box in autocomplete */
.ui-menu-item-wrapper.ui-state-active,
.ui-menu-item-wrapper.ui-state-focus,
.ui-menu-item-wrapper:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #4F868E !important;
    color: black !important;
    font-weight: bold;
}

/* Also neutralize default jQuery UI state styles */
.ui-state-active,
.ui-state-focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Default style for each suggestion item */
.ui-menu-item {
    cursor: pointer;
    font-size: 14px;
    background-color: #D9E7EB !important;
    
}


    /* Selected item after clicking */
    .ui-menu-item div.ui-state-active,
    .ui-menu-item div[aria-selected="true"] {
        background-color: #4F868E !important;
        color: black !important;
     
    }

.ui-menu-item-wrapper {
    padding: 6px 10px;
}

.bold-keyword {
    font-weight: bold;
    color: #e2950f;
}



.scroll-btn {
    position: fixed;
    left: 50px; 
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #4F868E;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: none;
    z-index: 1000;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#scrollToTop {
    bottom: 80px; 
}

#scrollToBottom {
    bottom: 30px; 
}



/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Chatbot Toggle Button */
#chatbot-toggle {
    background-color: #4F868E;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin-bottom: 165px;
    position: relative;
    z-index: 1000;
}
.chatbot-guide {
    display: none;
    position: absolute;
    bottom: 40px;
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    width: 400px;
    font-size: 14px;
    color: #333;
    z-index: 999;
    margin-bottom: 70px;
    font-weight:bold;
}

/* Chatbot Window */
#chatbot-window {
    display: none;
    width: 400px;
    height: 550px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 215px;
}

/* Chatbot Header */
#chatbot-header {
    background: #4F868E;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chatbot Messages (Now Scrollable) */
#chatbot-messages {
    flex-grow: 1;
    padding: 1px;
    background-color: white;
    overflow-y: auto; /* Enables scrolling */
    max-height: 400px; /* Limits height so scrolling works */
    display: flex;
    flex-direction: column;
}

/* User Message */
.user-message {
    align-self: flex-end;
    background-color: #e2950f;
    color: black;
    padding: 10px;
    border-radius: 15px 15px 0px 15px;
    margin: 5px;
    max-width: 75%;
    word-wrap: break-word;
}

/* Bot Message */
.bot-message {
    align-self: flex-start;
    background-color: #dcdcdc;
    color: black;
    padding: 10px;
    border-radius: 15px 15px 15px 0px;
    margin: 5px;
    max-width: 75%;
    word-wrap: break-word;
}

/* Chatbot Input Container */
#chatbot-input-container {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #ccc;
}

/* Chatbot Input Field */
#chatbot-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    color:black;
}

/* Chatbot Send Button */
#chatbot-send {
    background-color: #4F868E;
    color: white;
    border: none;
    padding: 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

    #chatbot-send:hover {
        background-color: #3b6d73;
    }


.db-link {
    transition: transform 0.2s ease-in-out;
    display: inline-block; 
}

    .db-link:hover {
        transform: scale(1.1);
    }

.logo-hover img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-hover:hover img {
    transform: scale(1.05);
}

.chatbot-close-btn {
    font-size: 16px; 
    background: none;
    border: none;
    color: #fff;
    padding: 2px 6px;
    cursor: pointer;
    line-height: 1;
}

#chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #4F868E;
    color: white;
    font-weight: bold;
    font-size: 16px;
}


.forum-search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.forum-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 700px;
}

.forum-search-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border-radius: 5px;
}

.admin-delete-button {
    position: absolute;
    top: 5px;
    right: 10px;
    color: red;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.small-delete-btn {
    font-size: 13px;
    padding: 2px 4px;
    color: red;
    background: none;
    border: none;
    cursor: pointer;
}

.forum-text-bold {
    font-weight: bold;
    font-size: 16px;
}
input[type="checkbox"] {
    accent-color: #4F868E;
}

.question-box {
    background-color: #f9f9f9;
    border-left: 5px solid #4F868E;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.answer-box {
    background-color: #eef5f5;
    border-left: 4px solid #81a4a8;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.comment-box {
    background-color: #ffffff;
    border: 1px solid #d3d3d3;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
}
.truncate-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.collapsed-border {
    border-left: 2px dashed #aaa;
    margin-left: 10px;
    padding-left: 5px;
    font-style: italic;
    color: gray;
}
.toggle-icon.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s;
}


.forum-title-text {
    font-size: 20px;
    color: #e2950f !important;
    font-weight: bold;
}

.global-notif-dot {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    top: 0;
    margin-left: 6px;
    vertical-align: middle;
}

.blinking-dot {
    animation: ping 1.5s infinite;
}

@keyframes ping {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.top-dot {
    top: -8px;
    right: -10px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}



.forum-link-wrapper {
    gap: 8px;
    font-size: 20px;
    align-items: center;
}

.new-forum-tooltip {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.9em;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#forum-nav-item:hover .new-forum-tooltip {
    display: block;
}


.modal-dialog {
    margin-top: auto;
    margin-bottom: auto;
}
.modal-backdrop.show {
    opacity: 0.5;
    background-color: #e0e0e0;
}



.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
}
#columnModal {
    position: relative; 
    margin-left: -290px;   
    background-color: white;
    width: 600px;
    max-height: 80vh;
    border-radius: 8px;
}
.like-btn.liked {
    color: #4F868E;
    font-weight: bold;
}
.speech-box img {
    max-width: 100px; 
    max-height:100px;
    height: auto;
    cursor: pointer;
}

#imageOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

    #imageOverlay img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 6px;
    }

#closeOverlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.ql-editor {
    pointer-events: auto !important;
}

.ql-editor img {
    display: inline-block;
    width: 150px;
    height: auto;
    margin: 4px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
}


.custom-solid {
    background-color: #4F868E !important;
    border-color: #4F868E !important;
    color: white !important;
}

    .custom-solid:hover {
        background-color: #4F868E !important;
        border-color: #4F868E !important;
        color: white !important;
    }

.kw-chip {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 6px 2px 0;
    border-radius: 9999px;
    border: 1px solid #4F868E;
    text-decoration: none;
    font-size: 12px;
    line-height: 18px;
    color: #4F868E;
    background: #fff;
    cursor: pointer;
}

    .kw-chip:hover {
        background: #E6F2F5;
    }

/* active/selected keyword */
.kw-chip-active {
    background: #4F868E;
    color: #fff;
    border-color: #4F868E;
}

    .kw-chip-active:hover {
        background: #3e6f75;
        color: #fff;
    }

.geraet-details-cell {
    position: relative;
}

.forlab-badge {
    position: absolute;
    top: 15px; 
    right: 20px; 
    z-index: 10;
}

    .forlab-badge img {
        max-width: 140px;
        height: auto;
    }

/* --------- FORLAB MAP STYLES --------- */

.map {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    top: 10px;
    right: 0px;
}

#forlab-map {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
}
.map-column {
    position: sticky;
    top: 120px;
    align-self: flex-start;

}

.map-items {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
   
}

    .map-items li {
        position: absolute; 
    }

/* basic label style */
.map-item {
    position: relative;
    display: inline-block;
    padding: 2px 6px;
    background: transparent;
    white-space: nowrap;
    color: #235160;
    line-height: 1.2;
    opacity: 0;
    pointer-events: auto;
    
    
    text-decoration: none !important;
    font-size: 12px;
   
}

.map .map-items .map-item.hover,
.map .map-items .map-item:hover,
.map .map-items .map-item:focus {
    color: #e2950f !important;
    font-weight: 600;
}


        /* label is visible */
        .map-item.show {
        opacity: 1;
    }

    /* circle is on RIGHT side  label goes to the LEFT of the circle */
.map-item.pos-left {
    transform: translate(-73%, 0);
    margin-left: 10px;
    text-align: right;
   
}

    /* circle is on LEFT side  label goes to the RIGHT of the circle */
.map-item.pos-right {
    transform: translate(55%, 0);
    margin-left: 10px;
    text-align: left;
    
}

   
/* =========================
   POINTS (CIRCLES)
   ========================= */

#map-points path {
    fill: #6bb1b9;
    opacity: .55;
    cursor: default;
    transition: fill .25s ease, opacity .25s ease;
}

    #map-points path.active {
        fill: #4F868E;
        opacity: 1;
        cursor: pointer;
    }

    /* hover state for point + label */
    #map-points path.hover
     {
        fill: #e2950f !important;
        border-color: #e2950f !important;
    }

/* ------------------------------------
   ForLab Minimal / Delicate Select2 UI
   ------------------------------------ */

/* Main select box */
.select2-container--default .select2-selection--single {
    height: 34px !important;
    padding: 2px 6px !important;
    border: 1px solid #B3D2D5 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    transition: all 0.15s ease-in-out;
}
.select2-container--default .select2-results__option {
    color: #000 !important; /* default text = black */
    font-size: 14px;
    padding: 8px 12px;
}
.select2-container--default .select2-results__option--highlighted {
    background-color: #4F868E !important; 
    color: #fff !important; 
}
/* Placeholder */
.select2-container--default .select2-selection__placeholder {
    color: #000 !important;
    font-size: 14px;
}

/* Selected text */
.select2-container--default .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 14px !important;
    color: #3b6064 !important;
}

/* Arrow icon — smaller, softer */
.select2-container--default .select2-selection__arrow b {
    border-color: #4F868E transparent transparent transparent !important;
    margin-top: 4px;
}

/* Hover border — subtle */
.select2-container--default .select2-selection--single:hover {
    border-color: #3D747C !important;
}

/* Focused (clicked) state — thin glow */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3D747C !important;
    box-shadow: 0 0 0 2px rgba(79, 134, 142, 0.15) !important;
}

/* Dropdown menu box */
.select2-dropdown {
    border: 1px solid #4F868E !important;
    border-radius: 6px !important;
    max-width: 100vw;
    box-sizing: border-box;
}
body.no-hscroll {
    overflow-x: hidden;
}


/* Dropdown items */
.select2-results__option {
    padding: 6px 10px !important;
    font-size: 14px !important;
    color: #3b6064 !important;
    white-space: normal; 
    word-break: break-word;
}

/* Hover item — softer green */
.select2-results__option--highlighted {
    background-color: #4F868E !important;
    color: white !important;
}

/* Selected item in dropdown — gentle background */
.select2-results__option[aria-selected="true"] {
    background-color: #cfe0e2 !important;
    color: #2b4d51 !important;
}

/* Ensure full-width selects */
.select2-container {
    width: 100% !important;
}

/* ===============================
   DISABLED (locked) Select2 state
   =============================== */

/* Wrapper when select is disabled */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f5f7f7 !important;
    border-color: #c5d1d3 !important;
    color: #9aa6aa !important; 
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Text inside disabled select */
.select2-container--default.select2-container--disabled
.select2-selection__rendered {
    color: #9aa6aa !important;
}

/* Placeholder in disabled state */
.select2-container--default.select2-container--disabled
.select2-selection__placeholder {
    color: #b3c0c4 !important;
}

/* Arrow in disabled state (grey + no pointer) */
.select2-container--default.select2-container--disabled
.select2-selection__arrow b {
    border-color: #b3c0c4 transparent transparent transparent !important;
}

.select2-container--default.select2-container--disabled
.select2-selection__arrow {
    cursor: not-allowed !important;
}

/* No hover effect when disabled */
.select2-container--default.select2-container--disabled
.select2-selection--single:hover {
    border-color: #c5d1d3 !important;
    box-shadow: none !important;
}
.pagination-row {
   margin-bottom:12px;
    margin-top: -100px;
}

.form-select:focus {
    border-color: #4F868E !important;
    box-shadow: 0 0 0 .25rem rgba(79, 134, 142, 0.4) !important;
}


.forum-details-page {
    padding-bottom: 320px;
    
}



#emoji-palette {
   
    left: 560px !important;
   margin-top: -40px;
    
}

#createEditor {
    height: 120px;
}

.kw-hl {
    color: #e2950f;
    font-weight: 800;
}


.forlab-page {
    font-size: 1.5rem; 
    line-height: 1.6;
}

    .forlab-page h1 {
        font-size: 2.5rem;
    }

    .forlab-page p,
    .forlab-page li {
        font-size: 1.5rem;
    }



.linkedin-wrapper {
    position: relative;
    display: inline-block;
}

.external-confirm-box {
    display: none;
    position: absolute;
    top: -40px;
    left: 40px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
}

    .external-confirm-box .confirm-btn {
        margin-left: 8px;
        color: #4F868E;
        font-weight: 600;
        text-decoration: none;
    }

        .external-confirm-box .confirm-btn:hover {
            text-decoration: underline;
        }

#editor .ql-editor {
    min-height: 120px;
}

[id^="replyEditor-"] .ql-editor {
    min-height: 80px;
}

.welcome-text {
    font-weight: bold;
    font-size: clamp(12px, 1.2vw, 18px);
    color: black;
    white-space: nowrap;
}