/* Colors */
:root {
    /* Base colors */
    --panel-border-color: rgba(43, 103, 119, 0.2);
    --hover-bg: rgba(43, 103, 119, 0.05);
    --deep-teal: #205d6d;
    --light-blue-gray: #c8d8e4;
    --white: #ffffff;
    --light-gray: #f2f2f2;
    --vibrant-teal: #52ab98;
    --soft-black: #333333;
    --dark-teal: #1a4a56;
    --accent-blue: #64b5cd;
    
    /* RGB versions for transparency effects */
    --deep-teal-rgb: 32, 93, 109;
    --light-blue-gray-rgb: 200, 216, 228;
    --vibrant-teal-rgb: 82, 171, 152;
    --accent-blue-rgb: 100, 181, 205;
    --soft-black-rgb: 51, 51, 51;
}

/* Base Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-gray);
    color: var(--soft-black);
}

/* Split Layout */
.split-layout {
    display: flex;
    height: calc(100vh - 56px);
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

/* Chat Panel */
.chat-panel {
    width: 40%;
    min-width: 350px;
    max-width: 600px;
    border-right: 1px solid var(--panel-border-color);
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    height: 100%;
    overflow: hidden;
}

/* Results Panel */
.results-panel {
    flex: 1;
    overflow: hidden;
    background-color: var(--light-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Search Results Container */
.search-results-container {
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-result {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(43, 103, 119, 0.1);
}

.search-result.latest {
    border: 2px solid var(--vibrant-teal);
}

.search-result-header {
    background: var(--deep-teal);
    color: var(--white);
    padding: 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-content {
    padding: 1.5rem;
}

.disclaimer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    font-style: italic;
    color: var(--deep-teal);
    font-size: 0.9rem;
}

.disclaimer strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* Preview Section Styles */
.preview-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 8px;
}

.preview-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.preview-widget {
    background: var(--white);
    border: 1px solid var(--panel-border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .preview-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .preview-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-widgets {
        grid-template-columns: 1fr;
    }
}

.widget-header {
    background: var(--deep-teal);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-header .favicon {
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 2px;
    padding: 2px;
}

.widget-header .domain {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

.widget-content {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

.content-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-preview .snippet {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.youtube-preview .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-footer {
    padding: 1rem;
    border-top: 1px solid var(--panel-border-color);
    background: var(--light-gray);
}

.resource-link {
    color: var(--deep-teal);
    text-decoration: none;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.resource-link:hover {
    color: var(--vibrant-teal);
    text-decoration: underline;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100% - 150px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scroll-behavior: smooth;
    background-color: var(--light-gray);
}
.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message-content {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light-blue-gray);
    color: var(--soft-black);
}

.message.user .message-content {
    background: var(--deep-teal);
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
    background: var(--light-blue-gray);
    border-bottom-left-radius: 4px;
    color: var(--soft-black);
}

.chat-input {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--panel-border-color);
}

.context-info {
    padding: 1rem;
    background: var(--light-blue-gray);
    border-top: 1px solid var(--panel-border-color);
    color: var(--soft-black);
}

.context-info h6 {
    color: var(--soft-black);
    margin-bottom: 0.75rem;
}

.profile-details p {
    font-size: 0.9rem;
    opacity: 0.8;
}


.sources-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.source-link,
.sources a {
    color: var(--vibrant-teal) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-link:hover,
.sources a:hover {
    color: var(--deep-teal) !important;
    text-decoration: underline;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--panel-border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(43, 103, 119, 0.1);
}

.searches-remaining {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--panel-border-color);
}

.card {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-card {
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.context-sidebar {
    background-color: var(--bs-dark);
    border-right: 1px solid var(--bs-border-color);
    height: 100%;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.searches-info {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-section {
    position: relative;
    padding: 4rem 0;
    background: var(--light-blue-gray);
    color: var(--deep-teal);
    margin-bottom: 2rem;
}

.hero-content {
    color: var(--deep-teal);
    text-shadow: none;
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--deep-teal) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../assets/new_skylines_enhanced.svg") no-repeat center top;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-link {
    color: var(--light-blue-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-links a {
    color: var(--accent-blue);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.contact-text {
    color: var(--light-blue-gray);
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--soft-black);
}

.contact-info .contact-item i {
    color: var(--vibrant-teal);
}

.contact-info .contact-item span {
    color: var(--soft-black);
    opacity: 0.8;
}

/* General Page Layout */
.container {
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

.split-panel {
    display: flex;
    height: calc(100vh - 56px);
}

.content-panel {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    border-left: 1px solid var(--bs-border-color);
}

/* Related Resources Title */
.related-resources-title {
    color: var(--deep-teal);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Chat Header Styles */
.chat-header {
    background: var(--light-blue-gray);
    color: var(--deep-teal);
    padding: 1.5rem;
    border-bottom: 1px solid var(--panel-border-color);
}

/* Message Styles */
.message-header {
    margin-bottom: 0.5rem;
}

.message-content {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light-gray);
}

.message.user {
    align-items: flex-end;
}

.message.user .message-content {
    background: var(--deep-teal);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.assistant .message-content {
    background: var(--light-blue-gray);
    border-bottom-left-radius: 4px;
    color: var(--soft-black);
}

/* Processing State Styles */
.chat-panel.processing {
    animation: glow 4s infinite; /* Slowed down from 2s to 4s */
    position: relative;
}

/* Research Status Styles */
.research-status {
    padding: 1rem;
    background: var(--light-blue-gray);
    border-top: 1px solid var(--panel-border-color);
    transition: all 1s ease-in-out;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.research-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--vibrant-teal);
    border-radius: 50%;
    animation: pulse 4s infinite;
}

.status-text {
    color: var(--soft-black);
    font-size: 0.9rem;
}


/* Buttons */
.btn-primary {
    background-color: var(--vibrant-teal) !important;
    border-color: var(--vibrant-teal) !important;
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--deep-teal) !important;
    border-color: var(--deep-teal) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(43, 103, 119, 0.2);
}

.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-control,
.form-select {
    background-color: var(--white);
    border: 1px solid var(--panel-border-color);
    color: var(--soft-black);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--vibrant-teal);
    box-shadow: 0 0 0 2px rgba(82, 171, 152, 0.25);
    color: var(--soft-black);
}

.form-label {
    color: var(--soft-black);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--soft-black);
    opacity: 0.8;
}

.form-select option {
    color: var(--soft-black);
    background-color: var(--white);
}

.context-info {
    background: var(--light-blue-gray);
    color: var(--soft-black);
    padding: 1.5rem;
    border-radius: 8px;
}

.context-info h5 {
    color: var(--soft-black);
    font-weight: 600;
}

.context-info ul li {
    color: var(--soft-black);
    margin-bottom: 0.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.text-teal {
    color: var(--deep-teal) !important;
}

/* Chat Header */
.chat-header {
    padding: 1rem;
    background: var(--light-blue-gray);
    border-bottom: 1px solid var(--panel-border-color);
    color: var(--deep-teal);
}

.chat-header p {
    color: var(--light-blue-gray);
    margin-bottom: 0;
}

/* Update badge colors */
.badge.bg-primary {
    background-color: var(--vibrant-teal) !important;
}

.badge.bg-secondary {
    background-color: var(--deep-teal) !important;
}

.table {
    color: var(--soft-black);
}

.table thead {
    background-color: var(--light-blue-gray);
}

/* Search Results Specific Styles */
.search-content {
    padding: 1.5rem;
    color: var(--soft-black);
}

/* Preview Widgets Grid */
.preview-widget .content {
    padding: 1rem;
    background: var(--white);
}

/* Requirements Table */
.requirements-table th {
    background: var(--deep-teal);
    color: var(--white);
    padding: 1rem;
}

.requirements-table td {
    background: var(--white);
    color: var(--soft-black);
    padding: 1rem;
    border-bottom: 1px solid var(--panel-border-color);
}

/* Search Console Header */
.chat-header p {
    color: var(--light-blue-gray);
    margin-bottom: 0;
}

/* Chat Input Button */
.chat-input .btn-primary:hover,
.chat-input .btn-primary:focus,
.chat-input .btn-primary:active {
    background-color: var(--deep-teal) !important;
    border-color: var(--deep-teal) !important;
    color: var(--white) !important;
}

/* Dashboard Updates */
.dashboard-card {
    background: var(--white);
    border: 1px solid var(--panel-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--soft-black);
}

.dashboard-card h4 {
    color: var(--soft-black);
    margin-bottom: 1rem;
}

.dashboard-card p {
    color: var(--soft-black);
}

/* Dashboard Section Titles */
.dashboard-card h5.text-primary {
    color: var(--vibrant-teal) !important;
}

/* Business Solutions Section Styles */
.business-solutions-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.business-solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../assets/new_skylines_enhanced.svg") no-repeat center bottom;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
}

.business-solutions-section .container {
    position: relative;
    z-index: 1;
}

.business-solutions-section .section-title {
    color: var(--deep-teal);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.business-solutions-section .section-subtitle {
    color: var(--soft-black);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.business-solution-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(43, 103, 119, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}

.business-solution-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(43, 103, 119, 0.15);
}

.business-solution-card .card-header {
    background-color: var(--deep-teal);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.business-solution-card .card-header h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.business-solution-card .card-header .icon-container {
    width: 40px;
    height: 40px;
    background-color: var(--vibrant-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.business-solution-card .card-header .icon-container i {
    font-size: 1.25rem;
    color: var(--white);
}

.business-solution-card .card-body {
    padding: 1.5rem;
}

.business-solution-card .img-fluid {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.business-solution-card p {
    color: var(--soft-black);
    margin: 1rem 0;
}

.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--soft-black);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vibrant-teal);
    font-weight: bold;
}

.nav-pills .nav-link {
    color: var(--deep-teal);
    background-color: transparent;
    border: 2px solid transparent;
    margin: 0 0.5rem;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    color: var(--vibrant-teal);
    background-color: rgba(82, 171, 152, 0.1);
}

.nav-pills .nav-link.active {
    color: var(--white);
    background-color: var(--vibrant-teal);
    border-color: var(--vibrant-teal);
    box-shadow: 0 4px 10px rgba(82, 171, 152, 0.3);
}

/* Custom tab navigation with more contrast */
.nav-tab-custom {
    color: var(--deep-teal) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--deep-teal) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-tab-custom:hover {
    color: var(--white) !important;
    background-color: var(--deep-teal) !important;
    border-color: var(--deep-teal) !important;
    transform: translateY(-2px);
}

.nav-tab-custom.active {
    color: var(--white) !important;
    background-color: var(--vibrant-teal) !important;
    border-color: var(--deep-teal) !important;
    box-shadow: 0 6px 15px rgba(43, 103, 119, 0.4) !important;
    transform: translateY(-3px);
}

/* Success Stories Section Styles */
.success-stories-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.success-stories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../assets/new_skylines_enhanced.svg") no-repeat center bottom;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

.success-stories-section .container {
    position: relative;
    z-index: 1;
}

.success-stories-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-stories-header h2 {
    color: var(--deep-teal);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.success-stories-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--vibrant-teal);
}

.success-stories-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--soft-black);
    font-size: 1.1rem;
}

.success-story-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(43, 103, 119, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.success-story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(43, 103, 119, 0.15);
}

.success-story-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.success-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.success-story-card:hover .success-story-image img {
    transform: scale(1.05);
}

.success-story-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--vibrant-teal);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-story-content {
    padding: 1.5rem;
    position: relative;
}

.success-story-title {
    font-size: 1.25rem;
    color: var(--deep-teal);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.success-story-subtitle {
    color: var(--vibrant-teal);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-story-text {
    color: var(--soft-black);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(43, 103, 119, 0.1);
    padding-top: 1rem;
}

.success-story-person {
    display: flex;
    align-items: center;
}

.success-story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 2px solid var(--vibrant-teal);
}

.success-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-story-details {
    line-height: 1.2;
}

.success-story-name {
    font-weight: 600;
    color: var(--deep-teal);
    font-size: 0.9rem;
}

.success-story-role {
    color: var(--soft-black);
    font-size: 0.8rem;
    opacity: 0.8;
}

.success-story-stats {
    display: flex;
    align-items: center;
}

.success-story-stat {
    display: flex;
    align-items: center;
    margin-left: 15px;
    color: var(--soft-black);
    font-size: 0.85rem;
}

.success-story-stat i {
    color: var(--vibrant-teal);
    margin-right: 5px;
}

.success-stories-cta {
    text-align: center;
    margin-top: 3rem;
}

.success-stories-cta .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(82, 171, 152, 0.3);
}

/* Pricing Plans */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--panel-border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(43, 103, 119, 0.1);
}

.pricing-card h3 {
    color: var(--soft-black);
    margin-bottom: 1rem;
}

.pricing-card .price {
    color: var(--vibrant-teal);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.pricing-card ul {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    color: var(--soft-black);
}

.pricing-card .btn-primary {
    background-color: var(--vibrant-teal);
    border-color: var(--vibrant-teal);
    width: 100%;
}

.pricing-card .btn-primary:hover {
    background-color: var(--deep-teal);
    border-color: var(--deep-teal);
}

/* Main Navigation Header */
.navbar {
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--deep-teal) 100%) !important;
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../assets/new_skylines_enhanced.svg") no-repeat center bottom;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

.navbar .container {
    position: relative;
    z-index: 1;
}

/* Back to Search Button */
.btn-outline-primary {
    color: var(--vibrant-teal) !important;
    border-color: var(--vibrant-teal) !important;
}

.btn-outline-primary:hover {
    background-color: var(--vibrant-teal) !important;
    color: var(--white) !important;
}

/* Chat Input Glow */
.chat-panel.processing {
    animation: glow 4s infinite; /* Slowed down from 2s to 4s */
}

/* Search Animation Styles */
@keyframes beamAnimation {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.chat-panel.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(82, 171, 152, 0),
        rgba(82, 171, 152, 0.8),
        rgba(43, 103, 119, 0.8),
        rgba(82, 171, 152, 0.8),
        rgba(82, 171, 152, 0)
    );
    background-size: 200% 100%;
    animation: beamAnimation 4s linear infinite;
}

.chat-panel.processing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(82, 171, 152, 0),
        rgba(82, 171, 152, 0.8),
        rgba(43, 103, 119, 0.8),
        rgba(82, 171, 152, 0.8),
        rgba(82, 171, 152, 0)
    );
    background-size: 200% 100%;
    animation: beamAnimation 4s linear infinite reverse;
}

.chat-input.search-active {
    position: relative;
    box-shadow: 0 0 15px rgba(82, 171, 152, 0.3);
    transition: all 0.8s ease;
}

.chat-input.search-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(82, 171, 152, 0),
        rgba(82, 171, 152, 0.8),
        rgba(43, 103, 119, 0.8),
        rgba(82, 171, 152, 0.8),
        rgba(82, 171, 152, 0)
    );
    background-size: 200% 100%;
    animation: beamAnimation 3s linear infinite;
}

/* Stage Transition Animation */
.stage-transition {
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.stage-transition.active {
    opacity: 1;
    transform: translateY(0);
}

.stage-transition.inactive {
    opacity: 0;
    transform: translateY(-10px);
}

/* Message Transition */
.message {
    opacity: 0;
    transform: translateY(20px);
    animation: messageAppear 0.8s ease-out forwards;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Analysis Stage Animation */
.analysis-stage {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    background: rgba(82, 171, 152, 0.1);
    border-left: 3px solid var(--vibrant-teal);
    transition: all 0.5s ease-in-out;
}

.analysis-stage.active {
    background: rgba(82, 171, 152, 0.2);
    border-left-color: var(--deep-teal);
}

/* Quality Check Badge */
.quality-check {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(43, 103, 119, 0.1);
    color: var(--deep-teal);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.8s ease-in-out;
}

.quality-check.approved {
    opacity: 1;
    transform: translateX(0);
    background: rgba(82, 171, 152, 0.2);
    color: var(--vibrant-teal);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(43, 103, 119, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(43, 103, 119, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(43, 103, 119, 0.4);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.search-results-history .search-result {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.search-results-history .search-result:hover {
    opacity: 1;
}

.search-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-id {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.requirements-table {
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.requirements-table table {
    margin-bottom: 0;
}

.requirements-table th {
    background: var(--light-blue-gray);
    color: var(--deep-teal);
    font-weight: 600;
}

.important-notes {
    background: var(--light-blue-gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.important-notes h6 {
    color: var(--deep-teal);
    margin-bottom: 0.75rem;
}

.preview-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 8px;
}

.related-resources-title {
    color: var(--deep-teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.preview-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.preview-widget {
    background: var(--white);
    border: 1px solid var(--panel-border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 103, 119, 0.15);
}

.widget-header {
    background: var(--deep-teal);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-header .favicon {
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 2px;
    padding: 2px;
}

.widget-header .domain {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

.widget-content {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

.content-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-preview .snippet {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

.youtube-preview`.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-footer {
    padding: 1rem;
    border-top: 1px solid var(--panel-border-color);
    background: var(--light-gray);
}

.resource-link {
    color: var(--deep-teal);
    text-decoration: none;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.resource-link:hover {
    color: var(--vibrant-teal);
    text-decoration: underline;
}

/* Bug Report Section */
.bug-report-section {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--panel-border-color);
    background-color: var(--white);
    margin-top: auto;
}

.bug-report-link {
    color: var(--deep-teal);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bug-report-link:hover {
    color: var(--vibrant-teal);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .preview-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .preview-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .preview-widgets {
        grid-template-columns: 1fr;
    }
}

/* Chat Panel Animation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(43, 103, 119, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(43, 103, 119, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(43, 103, 119, 0.4);
    }
}

/* Active Search Animation */
@keyframes searchGlow {
    0% {
        box-shadow: 0 0 10px rgba(82, 171, 152, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(82, 171, 152, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(82, 171, 152, 0.2);
    }
}

.chat-panel.processing {
    animation: glow 4s infinite; /* Slowed down from 2s to 4s */
}

.search-active .chat-input {
    animation: searchGlow 3s infinite;
    border-color: var(--vibrant-teal);
}

/* Research Status Animation */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.research-status {
    transition: all 0.5s ease-in-out;
}

.research-pulse {
    animation: pulse 3s infinite;
}

/* Stage Transition Animation */
.stage-transition {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.stage-transition.active {
    opacity: 1;
    transform: translateY(0);
}

.stage-transition.inactive {
    opacity: 0;
    transform: translateY(-10px);
}

/* Message Transition */
.message {
    opacity: 0;
    transform: translateY(20px);
    animation: messageAppear 0.8s ease-out forwards;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Analysis Stage Animation */
.analysis-stage {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    background: rgba(82, 171, 152, 0.1);
    border-left: 3px solid var(--vibrant-teal);
    transition: all 0.5s ease-in-out;
}

.analysis-stage.active {
    background: rgba(82, 171, 152, 0.2);
    border-left-color: var(--deep-teal);
}

/* Quality Check Badge */
.quality-check {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(43, 103, 119, 0.1);
    color: var(--deep-teal);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.8s ease-in-out;
}

.quality-check.approved {
    opacity: 1;
    transform: translateX(0);
    background: rgba(82, 171, 152, 0.2);
    color: var(--vibrant-teal);
}

/* Search Animation Styles */
@keyframes beamAnimation {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.chat-panel.processing {
    position: relative;
    animation: glow 4s infinite; /* Slowed from 3s to 4s */
}

.chat-panel.processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(82, 171, 152, 0),
        rgba(82, 171, 152, 0.8),
        rgba(43, 103, 119, 0.8),
        rgba(82, 171, 152, 0.8),
        rgba(82, 171, 152, 0)
    );
    background-size: 200% 100%;
    animation: beamAnimation 4s linear infinite;
}

.chat-panel.processing::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(82, 171, 152, 0),
        rgba(82, 171, 152, 0.8),
        rgba(43, 103, 119, 0.8),
        rgba(82, 171, 152, 0.8),
        rgba(82, 171, 152, 0)
    );
    background-size: 200% 100%;
    animation: beamAnimation 4s linear infinite reverse;
}

.chat-input.search-active {
    position: relative;
    box-shadow: 0 0 15px rgba(82, 171, 152, 0.3);
    transition: all 0.8s ease;
}

.chat-input.search-active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg, 
        rgba(82, 171, 152, 0),
        rgba(82, 171, 152, 0.8),
        rgba(43, 103, 119, 0.8),
        rgba(82, 171, 152, 0.8),
        rgba(82, 171, 152, 0)
    );
    background-size: 200% 100%;
    animation: beamAnimation 3s linear infinite;
}

/* Stage Transition Animation */
.stage-transition {
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

/* Research Status Animation */
.research-status {
    transition: all 1s ease-in-out;
}

.research-pulse {
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}