﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

/* Evaluation Alert Banner */
.evaluation-alert-banner {
  background-color: #EF4444;
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge1{
    font-size: 15px !important;
    font-weight: 500 !important;
}

.evaluation-alert-text {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.evaluation-alert-banner .btn-link {
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.evaluation-alert-banner .btn-link:hover {
  opacity: 1;
}

/*upload*/
/* Page backdrop like Biometric */
.upload-genetic-page {
    background-color: #C1E3E2;
    min-height: calc(100vh - 120px);
}
/* Centered modal-like card */
.upload-card {
    /*    max-width: 680px;
    margin: 80px auto;*/
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

    .upload-card .card-header {
        background: #FFFFFF;
        border-bottom: 0;
        padding: 18px 20px;
    }

    .upload-card .card-title {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }

    .upload-card .card-body {
        padding: 20px;
    }

.help-icon {
    color: #8F8F8F;
}

.form-label.required::after {
    content: " *";
    color: #ff4d4f;
}

.form-control, .form-select {
    background: #FFFFFF;
    border: 1px solid #E1E3EA;
}

    .form-control:focus, .form-select:focus {
        border-color: #FCC960;
        box-shadow: 0 0 0 0.2rem rgba(252,201,96,.35);
    }

.input-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

    .input-group-row > div {
        min-width: 0;
    }

.upload-dropzone {
    /*    display: flex;
    align-items: center;
    justify-content: center;*/
    min-height: 120px;
    border: 3px dashed #C3DDDC !important;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 16px;
    text-align: center;
    cursor: pointer;
}

    .upload-dropzone .hint {
        color: #7E8299;
        font-size: 13px;
    }

    .upload-dropzone .title {
        color: #1A1A1A;
        font-weight: 600;
    }

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #F1F1F4;
}

.btn-cancel {
    background: #F5F8FA;
    color: #1A1A1A;
}

.btn-primary-yellow {
    background: #FCC960;
    color: #1A1A1A;
    font-weight: 600;
}

    .btn-primary-yellow:disabled {
        background: #E1E3EA;
        color: #A1A5B7;
        cursor: not-allowed;
    }

.file-icon {
    flex-shrink: 0;
}

.upload-dropzone.file-selected {
    cursor: default;
}

.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #F1416C;
    margin-top: 0.25rem;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #F1416C;
}

    .form-control.is-invalid ~ .invalid-feedback, .form-select.is-invalid ~ .invalid-feedback {
        display: block;
    }

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 767.98px) {
    .input-group-row {
        grid-template-columns: 1fr;
    }

    .upload-card {
        margin: 24px 16px;
    }
}

body {
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.btn {
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.navbar-sidebar {
    background: #1e2939;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Sidebar User Section */
.sidebar-user-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding: 1rem;
}

    .sidebar-user-section .btn-primary {
        background-color: #2563eb;
        border-color: #2563eb;
    }

        .sidebar-user-section .btn-primary:hover {
            background-color: #1d4ed8;
            border-color: #1d4ed8;
        }

.nav-link-tabs .nav-link {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: transparent !important;
    border: none !important;
    color: var(--all-colors-base-white-50, rgba(255, 255, 255, 0.50));

/* Typography/H9/Medium */
font-family: Manrope;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 20px; /* 142.857% */
}

    .nav-link-tabs .nav-link.active {
        border-bottom: 1px solid #fff !important;
    }

/* Active Nav Item */
.sidebar .nav-item.active > .nav-link {
    background-color: #1e40af;
    color: #fff;
}

    .sidebar .nav-item.active > .nav-link i {
        color: #fff;
    }

/* Nav Link Hover */
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.collapse-inner {
    color: #fff !important;
}

    /* Collapse Inner Active */
    .collapse-inner .collapse-item.active {
        /* background-color: #f8f9fc; */
        color: #fff !important;
        font-weight: 600;
    }

/* Topbar */
.topbar {
    width: 100%;
    display: flex;
    padding: 20px 40px;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
    align-self: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    background: #1e2939;
}

.topbar-icon {
    gap: 12px;
}

.topbar-icon-item {
    display: flex;
    padding: 10px;
    align-items: center;
    gap: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
}

/* Table Styles */
.table thead th {
    border-bottom: 2px solid #e3e6f0;
    font-weight: 600;
    color: #5a5c69;
}

.table tbody td {
    vertical-align: middle;
}

/* Badge Success */
.badge-success {
    background-color: #11930d !important;
    color: #fff;
    padding: 0.35em 0.65em;
    border-radius: 0.35rem;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
    color: #fff;
}

.pagination .page-link {
    color: #5a5c69;
    border-color: #d1d3e2;
}

    .pagination .page-link:hover {
        color: #2e59d9;
        background-color: #eaecf4;
        border-color: #d1d3e2;
    }

/* Search Input */
.input-group .form-control {
    border-right: none;
}

.input-group-append .btn {
    border-left: none;
}

/* Tab Active */
.nav-tabs .nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* Search Container */
.search-container {
    max-width: 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.search-icon {
    color: #fbbf24;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.875rem;
    padding: 0;
}

    .search-input::placeholder {
        color: #a0aec0;
    }

.search-clear-btn {
    background-color: #4a5568;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0;
    color: #2d3748;
    transition: background-color 0.2s;
}

    .search-clear-btn:hover {
        background-color: #718096;
    }

    .search-clear-btn i {
        font-size: 0.75rem;
    }

/* Filter Button */
.filter-btn {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    color: #fff;
    width: 48px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

    .filter-btn:hover {
        background-color: #374151;
        border-color: #6b7280;
        color: #fff;
    }

    .filter-btn i {
        font-size: 1.125rem;
    }

/* Page Content Dark Theme */
.page-content-dark {
    background-color: #0f172a;
    min-height: calc(100vh - 70px);
    padding: 20px 40px;
    border-radius: 0.5rem;
}

/* Primary Dark Button */
.btn-primary-dark {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    border-radius: 6px;
    background: #162a75;
}

    .btn-primary-dark:hover {
        color: #fff;
    }

    .btn-primary-dark:focus {
        box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.5);
    }

/* Topbar Dark */
.topbar h1 {
    color: #fff !important;
}

.topbar .nav-link {
    color: #fff !important;
}

    .topbar .nav-link:hover {
        color: #cbd5e1 !important;
    }

/* Content Area Dark Background */
#content {
    background-color: #0f172a;
    min-height: 100vh;
    /* padding: 2rem; */
}

#content-wrapper {
    background-color: #0f172a;
}

/* Card Dark Theme */
.page-content-dark .card {
    background-color: #1e293b;
    border-color: #334155;
    color: #fff;
}

s .page-content-dark .card-body {
    background-color: #1e293b;
    color: #fff;
}

/* Table Dark Theme */
.page-content-dark .table {
    color: #fff;
}
.table th, .table td {
    border-top: none !important;
}

.page-content-dark .table thead th {
    border-bottom: 2px solid #475569;
    color: #cbd5e1;
    background-color: #334155;
    border-top: none !important;
}

    .page-content-dark .table tbody td {
        border-color: #334155;
        color: #e2e8f0;
    }

    .page-content-dark .table tbody tr:hover {
        background-color: #334155;
    }

/* Details project tables: allow scrolling inside table wrapper */
.page-content-dark .table-responsive.project-table-scroll {
    overflow: auto !important;
    max-height: calc(100vh - 360px);
}

/* Keep header visible while scrolling (details project tables only) */
.page-content-dark .table-responsive.project-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Badge in Dark Theme */
.page-content-dark .badge-success {
    background-color: #10b981;
    color: #fff;
    font-size:14px;
    border-radius:120px;
}

/* Pagination Dark Theme */
.page-content-dark .pagination .page-link {
    background-color: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.page-content-dark .pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.page-content-dark .pagination .page-link:hover {
    background-color: #334155;
    border-color: #475569;
    color: #fff;
}

/* Text colors in dark theme */
.page-content-dark .text-gray-600 {
    color: #fff !important;
}

/* Icons in dark theme table */
.page-content-dark .table tbody i,
.page-content-dark .table tbody button {
    color: #fff;
}

    .page-content-dark .table tbody button:hover {
        background-color: #475569;
    }

/* Checkbox in dark theme */
.page-content-dark input[type="checkbox"] {
    accent-color: #3b82f6;
}

.status {
    margin-left: 10px;
    background: #0F6148;
    padding: 5px;
    border-radius: 120px;
}

.projectname-leftside {
    justify-content: center;
    align-items: center;
}

.status p {
    justify-content: center;
    align-items: center;
}

.card-document {
    border-radius: 5px;
    background: #282f3d;
    border: 1px solid #575d67;
    height: 90px;
    /*    max-width:300px;*/
    margin-bottom: 25px;
    margin-top: 25px;
}

.title-document {
    color: white;
    padding-bottom: 10px;
    font-size: 16px;
}

.document-count {
    color: white;
    font-size: 24px;
}

.card-document-body {
    width: 100%;
    height: 100%;
    justify-content: space-between;
    display: flex;
    padding: 10px;
}

.pdf-left {
    /*    background: #E5252A;*/
    border-radius: 5px;
}

.progress-right {
    width: 100%;
}

.progress-left {
    width: 100%;
}
/**/

.box-img {
    display: flex;
    background: #E5252A1A;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin-right: 10px;
}

.nav-link{
    font-size:14px;
}
.nav-custom{
    font-size:14px;
}

.notification-evaluate{
    min-height: 40px;
    max-height: 40px;
    height: 40px;
    width: 100%;
    border-radius: 8px;
    background-color: #D13438;
    margin-bottom:10px;
}
.noti-custom {
    padding-left: 10px;
    display: flex;
    align-items: center;
    margin: auto;
    vertical-align: middle;
    height: 100% !important;
}
.custome-badge {
    min-width: 50px;
    max-width: 50px;
    width: 50px;
    min-height: 24px;
    border-radius: 25px;
    padding: 4px 26px;
}
.progress-contain {
    padding: 11px;
    border: 1px solid #F0F0F1;
    border-radius: 6px;
}


.notification-evaluate{
    min-height: 40px;
    max-height: 40px;
    height: 40px;
    width: 100%;
    border-radius: 8px;
    background-color: #D13438;
    margin-bottom:10px;
}
.noti-custom {
    padding-left: 10px;
    display: flex;
    align-items: center;
    margin: auto;
    vertical-align: middle;
    height: 100% !important;
}
.custome-badge {
    min-width: 50px;
    max-width: 50px;
    width: 50px;
    min-height: 24px;
    border-radius: 25px;
    padding: 4px 26px;
}
.progress-contain {
    padding: 11px;
    border: 1px solid #F0F0F1;
    border-radius: 6px;
}
.uploadGeneticForm {
    overflow-y: auto;   
}
.btn-close.small-close {
    all: unset;
    cursor: pointer;
    font-size: 20px;
}

/* AI Chat Panel (shared with file-details) */
.ai-chat-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: #1e293b;
  border-left: 1px solid #334155;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  visibility: visible;
}

.ai-chat-panel.show {
  right: 0;
}

body.chat-panel-open #content-wrapper {
  margin-right: 400px;
  transition: margin-right 0.3s ease;
}

#content-wrapper {
  transition: margin-right 0.3s ease;
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 27px 20px;
  border-bottom: 1px solid #334155;
  background-color: #1e293b;
}

.ai-chat-header h5 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.ai-chat-header .btn-link {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.ai-chat-header .btn-link:hover {
  opacity: 1;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #0f172a;
}

.ai-chat-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-chat-message.user-message {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.ai-chat-message.user-message .ai-chat-content {
  text-align: right;
  align-items: flex-end;
  display: flex;
  flex-direction: column;
}

.ai-chat-message.user-message .ai-chat-text {
  background-color: #3b82f6;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px 12px 0 12px;
  max-width: 80%;
  word-wrap: break-word;
  text-align: left;
  align-items: stretch;
}

.ai-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}

.ai-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-chat-content {
  flex: 1;
  min-width: 0;
}

.ai-chat-text {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 8px;
  display: flex;
  padding: 12px;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}

.ai-chat-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

.ai-chat-time {
  color: #94a3b8;
}

.ai-chat-reaction {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ef4444;
  cursor: pointer;
}

.ai-chat-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #334155;
  background-color: #1e293b;
  position: relative;
}

.ai-chat-input {
  flex: 1;
  background-color: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
}

.ai-chat-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.ai-chat-input-icon-btn {
  background-color: #111827;
  border: 1px solid #334155;
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.ai-chat-input-icon-btn:hover {
  background-color: #1f2937;
}

.ai-chat-send-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.emoji-picker {
  position: absolute;
  bottom: 60px;
  right: 20px;
  width: 260px;
  max-height: 240px;
  background-color: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  z-index: 10000;
}

.emoji-picker.show {
  display: flex;
}

.emoji-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}

.emoji-picker-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
}

.emoji-picker-content {
  padding: 10px;
  overflow-y: auto;
  max-height: 200px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.emoji-item {
  padding: 6px;
  text-align: center;
  background-color: #1f2937;
  border: 1px solid #334155;
  border-radius: 8px;
  cursor: pointer;
}

.emoji-item:hover {
  background-color: #2563eb;
}


/* chat meta */
.ai-chat-meta.ai-chat-meta-user {
    justify-content: end;
}