/* Tailwind styles are added automatically by CDN */

/* Custom styles for enhanced UI */

/* Base button styles */
.section-button {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.25rem;
    color: #006633;
    border: 1px solid #006633;
    background-color: white;
    transition: all 0.2s ease;
}

.section-button:hover {
    background-color: #006633;
    color: white;
}

/* AI Action buttons */
.ai-button {
    color: white;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    border: none;
}

/* Score badge styling */
.score-badge-container {
    margin-bottom: 0.75rem;
    position: relative;
}

.score-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #FFF8E1;
    padding: 0.35rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #FFD54F;
    font-size: 0.9rem; /* Smaller size as requested */
    cursor: help;
    transition: all 0.2s ease-in-out;
}

.score-badge:hover {
    background-color: #FFE082;
    border-color: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Result card styling */
.result-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #e9e9e9;
    margin-bottom: 1.5rem !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    overflow: hidden !important;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d1d1;
}

/* Modal content styling */
.modal-content {
    line-height: 1.6;
}

.modal-content p {
    margin-bottom: 1rem;
}

/* Tippy.js tooltip theming for score breakdown */
.tippy-box[data-theme~='light-border'] {
  background-color: white;
  border: 1px solid rgba(0, 102, 51, 0.2);
  color: #333333;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.15);
}

.tippy-box[data-theme~='light-border'] .tippy-content {
  padding: 0;
}

.tippy-box[data-placement^='top'] > .tippy-arrow::before {
  border-top-color: white;
}

.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: white;
}

.tippy-box[data-placement^='left'] > .tippy-arrow::before {
  border-left-color: white;
}

.tippy-box[data-placement^='right'] > .tippy-arrow::before {
  border-right-color: white;
}

/* Custom tabs styling */
.tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    transition: all 0.2s ease;
}

.tab-button.active {
    font-weight: 600;
}

/* NoUiSlider custom styling */
.noUi-connect {
    background: #FFA500;
}

.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFA500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.noUi-horizontal .noUi-handle::before,
.noUi-horizontal .noUi-handle::after {
    display: none;
}

.noUi-horizontal {
    height: 8px;
    background-color: #e9e9e9;
    border: none;
}

.noUi-target {
    border-radius: 4px;
    border: none;
    box-shadow: none;
}

.noUi-tooltip {
    background-color: #FFA500;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border: none;
    border-radius: 3px;
}

/* Form styling */
input:focus, select:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
}

/* Checkbox styling */
.custom-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid #FFA500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    margin-right: 0.5rem;
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: #FFA500;
}

.custom-checkbox:checked::after {
    content: "✓";
    font-size: 11px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Make all search fields have consistent height */
.search-field {
    height: 42px;
}

/* Custom animation speeds for loading indicators */
.animate-slow {
    animation-duration: 3s;
}

.animate-slower {
    animation-duration: 4s;
}

.animate-slowest {
    animation-duration: 6s;
}

/* Blur effect for modern looking loading animation */
.blur-xl {
    filter: blur(12px);
}

/* Chatbot Styling */
.onboarding-card,
.chat-interface {
    position: fixed;
    top: 50%;
    right: 180px;
    left: auto;
    transform: translateY(-50%);
    width: 640px;
    height: 650px;
    max-width: 95vw;
    max-height: 90vh;
    background-color: white;
    border-radius: 40px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 1000;
}

.icon-mode {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #E2E8F0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 900;
}

.icon-mode img {
    width: 60px;
    height: 60px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: transparent;
    color: #E4A659;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.continue-btn {
    background-color: #006633;
    color: white;
    width: fit-content;
    padding: 10px 30px;
    margin: 20px auto;
    margin-top: auto;
    font-size: 14px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    background-color: #005529;
}

.message-bubble {
    margin-bottom: 12px;
    max-width: 75%;
}

.ai-message {
    background-color: #f9f9f9;
    color: #505050;
    border-radius: 25px 25px 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ai-message img {
    width: 40px;
    height: 40px;
    margin-top: 5px;
}

.user-message {
    background-color: #006633;
    color: white;
    padding: 14px 20px;
    border-radius: 25px 0 25px 25px;
    word-break: break-word;
    line-height: 1.4;
    font-size: 15px;
    align-self: flex-end;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #ECECEC;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    background-color: white;
    margin: -24px -24px 0;
}

.chat-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #ECECEC;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

.input-box {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
}

.input-box::placeholder {
    color: #A1A1A1;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #006633;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background-color: #005529;
}

.chat-body {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 60px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: #FFA500;
    border-radius: 50%;
}

.scrollbar {
    width: 12px;
    height: 159px;
    background-color: #D9D9D9;
    border-radius: 10px;
    position: absolute;
    right: 12px;
    top: 104px;
}

.robot-container {
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.robot-container img {
    width: 100%;
    height: auto;
}

.hidden {
    display: none !important;
}

/* Research Format Styling */
.ai-message strong {
    display: block;
    margin: 8px 0 4px 0;
    font-weight: 700;
    color: #006633;
}

.ai-message > div {
    padding: 14px 20px;
    line-height: 1.5;
}

.ai-message ul {
    margin: 5px 0;
    padding-left: 20px;
}

.ai-message li {
    margin-bottom: 4px;
}

/* Emoji headings */
.ai-message [class^="emoji-heading"] {
    margin-top: 10px;
    margin-bottom: 2px;
    font-weight: bold;
    color: #006633;
}

/* Variables and lists */
.ai-message ul.variables-list {
    list-style-type: none;
    padding-left: 16px;
}

.ai-message ul.variables-list li {
    position: relative;
    padding-left: 15px;
}

.ai-message ul.variables-list li:before {
    content: "-";
    position: absolute;
    left: 0;
}