﻿html {
    scroll-behavior: smooth;
}

/* Base */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafb;
    color: #4f565c;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    animation: fadeIn 0.6s ease-in;
    font-size: 1.25rem;
    font-weight: 300;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Header / Navbar */
.jumbotron-header {
    position: relative;
    background: linear-gradient(120deg, #004aad, #0078d4);
    color: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.navbar-toggler {
    border: none;
    font-size: 1.3rem;
    color: #004aad;
}

/* Kendo menu wrapper */
#kendoMenuWrapper {
    transition: transform 0.3s ease-in-out, opacity 0.3s;
}

    #kendoMenuWrapper.mobile-active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        z-index: 9999;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(0);
        opacity: 1;
    }

@media (max-width: 767px) {
    #kendoMenuWrapper {
        display: none;
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Jumbotron */
.jumbotron-header .container-fluid {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: linear-gradient(to bottom right, #004aad, #0094ff);
    color: white;
    text-align: center;
    position: relative;
}

.jumbotron-overlay {
    position: relative;
    z-index: 2;
}

.jumbotron-logo {
    max-width: 800px;  
    width: 100%;
    height: auto;
    transition: max-width 0.3s ease;
}

    .jumbotron-logo:hover {
        transform: scale(1.05);
    }

@media (min-width: 992px) {
    .jumbotron-logo {
        max-width: 500px;
    }
}

/* Main content */
main {
    min-height: 70vh;
    padding: 2rem 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.container-fluid {
    max-width: 1200px;
    margin: auto;
}

/* Footer */
.footer {
    background-color: #f1f3f5;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: background 0.3s ease, color 0.3s ease;
}

    .footer p {
        margin: 0.5rem 0;
    }

/* Buttons / Interactives */
button, .k-button {
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

    button:hover, .k-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

/* Scrolling / Animations */
section {
    padding: 80px 0;
    transition: background 0.5s ease, color 0.5s ease;
}

    section:nth-of-type(even) {
        background: #ffffff;
        color: #222;
    }

    section:nth-of-type(odd) {
        background: #f7f9fb;
        color: #222;
    }

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-section {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    animation: sectionFadeIn 0.8s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Utilities */
.text-shadow {
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.rounded-xl {
    border-radius: 1rem;
}

.shadow-soft {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

section .card, section .panel {
    transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

/* Header spacing */
header .scroll-nav {
    margin-bottom: 2rem;
}

/* Why list/cards */
.why-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 700px;
    margin: 0 auto;
    gap: 1rem;
}

.why-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: opacity 1.5s ease-out, transform 0.8s ease-out;
}

    .why-item strong {
        flex: 0 0 200px;
        display: block;
        color: #007bff;
        margin-bottom: 0.5rem;
    }

    .why-item span {
        flex: 1;
        color: #555;
    }

    .why-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .why-item:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        cursor: pointer;
    }

/* Images */
.section img.placeholder {
    max-width: 50%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

img.responsive {
    width: auto;
    max-width: 50%;
    max-height: 300px;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    img.responsive {
        max-height: 200px;
    }
}

/* Hero content */
.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

    .hero-content img.responsive {
        max-width: 400px;
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
        order: 1;
    }

    .hero-content .text-block {
        max-width: 600px;
        text-align: left;
        order: 2;
    }

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .hero-content img.responsive,
        .hero-content .text-block {
            order: unset;
            max-width: 90%;
        }
}

/* Custom section class */
.section {
    padding: 1em;
}

/* Header bar / toggles */
#header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
}

#mainMenu {
    flex: 1;
}

#darkModeToggle {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    margin-left: 12px;
    transition: transform 0.2s ease;
}

    #darkModeToggle:hover {
        transform: scale(1.1);
    }

    #darkModeToggle:focus,
    #darkModeToggle:active {
        outline: none;
        border: none;
        box-shadow: none;
    }

/* Sticky header */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: black;
    z-index: 2000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-100%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

    .sticky-header.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.sticky-logo {
    height: 80px;
    transition: height 0.3s ease;
}

.sticky-header .k-menu {
    background: transparent;
    border: none;
}

/* Chat UI */
.k-chat-inputbar {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px;
    margin-top: 8px;
    background: #fff;
}

    .k-chat-inputbar textarea {
        flex: 1;
        resize: none;
        border: none;
        outline: none;
        font-size: 14px;
        padding: 6px;
    }

.k-input-buttons {
    display: flex;
    gap: 16px;
    margin-left: 2px;
}

#chat {
    height: 480px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #f9f9f9;
}

#sendMessageBtn {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slot carousel */
.slot-carousel {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.5rem;
    scrollbar-width: thin;
}

.slot-card {
    flex: 0 0 auto;
    width: 10rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.15s ease;
}

    .slot-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

.book-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
}

    .book-btn:hover {
        background: #2563eb;
    }

    /* Inline form */
.chat-inline-form {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
    align-items: center;
}

    .chat-inline-form input {
        height: 32px;
    }

.red {
    color: red;
}

/* Input with label */
.input-with-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

    .input-with-label .k-textbox,
    .input-with-label .k-input,
    .input-with-label input {
        display: inline-block;
        vertical-align: middle;
    }

    .input-with-label .red {
        padding-top: 15px;
        color: red;
        font-size: 0.9em;
        line-height: 1;
        position: relative;
        top: 1px;
    }

/* Chat text colors */
.user-msg {
    margin: 4px 0;
    color: #004085;
}

.assistant-msg {
    margin: 4px 0;
    color: #155724;
}

/* Icon button */
.icon-button {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 2px 6px !important;
    vertical-align: middle;
    cursor: pointer;
}

    .icon-button:hover {
        background-color: rgba(0,0,0,0.05);
        border-radius: 6px;
    }

/* Assistant loader */
#assistantloader {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    position: relative;
    text-align: center;
    max-width: 75%;
    align-items: center;
}

    #assistantloader .k-loader {
        margin-left: 4px;
    }

.assistant-msg + #assistantloader {
    margin-top: 6px;
}

/* Chat input */
#chatInput {
    color: black;
}

/* Social icons */
.social-icons a {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

    .social-icons a:hover {
        transform: translateY(-3px);
    }

    .social-icons a.facebook {
        color: #1877f2;
    }

    .social-icons a.linkedin {
        color: #0a66c2;
    }

    .social-icons a.twitter {
        color: #000000;
    }

    .social-icons a.youtube {
        color: #ff0000;
    }

    .social-icons a.github {
        color: #171515;
    }

/* Listening state */
.listening {
    background-color: #dc2626 !important;
    color: white !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-red 1.2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Dark mode (auto) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
        color: #ffffff;
    }

    .navbar {
        background-color: rgba(15, 23, 42, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-toggler {
        color: #60a5fa;
    }

    #kendoMenuWrapper.mobile-active {
        background: #1e293b;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .jumbotron-header {
        background: linear-gradient(120deg, #1e3a8a, #2563eb);
        color: #f8fafc;
    }

    main {
        background: #0f172a;
        color: #f1f5f9;
    }

    section:nth-of-type(even) {
        background: #1e293b;
    }

    section:nth-of-type(odd) {
        background: #0f172a;
    }

    .footer {
        background-color: #1e293b;
        color: #94a3b8;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    button, .k-button {
        background-color: #2563eb !important;
        color: #fff !important;
    }

        button:hover, .k-button:hover {
            background-color: #3b82f6 !important;
            box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
        }
}

/* Manual dark mode (class-based) */
body.dark-mode {
    background-color: #0f172a;
    color: #f1f5f9;
}

    body.dark-mode .navbar {
        background-color: rgba(15, 23, 42, 0.95) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    body.dark-mode .navbar-toggler {
        color: #60a5fa;
    }

    body.dark-mode #kendoMenuWrapper.mobile-active {
        background: #1e293b;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    body.dark-mode .jumbotron-header {
        background: linear-gradient(120deg, #1e3a8a, #2563eb);
        color: #f8fafc;
    }

    body.dark-mode main {
        background: #0f172a;
        color: #f1f5f9;
    }

    body.dark-mode section:nth-of-type(even) {
        background: #1e293b;
        color: #f1f5f9;
    }

    body.dark-mode section:nth-of-type(odd) {
        background: #0f172a;
        color: #f1f5f9;
    }

    body.dark-mode .footer {
        background-color: #1e293b;
        color: #94a3b8;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    body.dark-mode button,
    body.dark-mode .k-button {
        background-color: #2563eb !important;
        color: #fff !important;
    }

        body.dark-mode button:hover,
        body.dark-mode .k-button:hover {
            background-color: #3b82f6 !important;
            box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
        }

    

    body.dark-mode .why-item {
        background-color: #222;
        color: #fff;
    }

        body.dark-mode .why-item strong {
            color: #00aaff;
        }

    body.dark-mode a.btn-primary {
        background: #00aaff;
        color: #fff;
    }

        body.dark-mode a.btn-primary:hover {
            background: #0088cc;
        }

    body.dark-mode img.responsive {
        filter: brightness(0.85);
    }

    body.dark-mode .demo-container {
        background: black;
        color: #fff;
    }

    body.dark-mode .demo-card {
        background-color: #1a1a1a;
        color: #fff;
        border-color: antiquewhite;
    }

    /* Force children text white in dark sections */
    body.dark-mode #hero p,
    body.dark-mode #hero span,
    body.dark-mode #hero h1,
    body.dark-mode #hero h2,
    body.dark-mode #hero h3,
    body.dark-mode #services p,
    body.dark-mode #services span,
    body.dark-mode #services h1,
    body.dark-mode #services h2,
    body.dark-mode #services h3,
    body.dark-mode #why p,
    body.dark-mode #why span,
    body.dark-mode #why h1,
    body.dark-mode #why h2,
    body.dark-mode #why h3,
    body.dark-mode #demo p,
    body.dark-mode #demo span,
    body.dark-mode #demo h1,
    body.dark-mode #demo h2,
    body.dark-mode #demo h3 {
        color: #fff !important;
    }

    /* Dark mode header + sticky menu */
    body.dark-mode header,
    body.dark-mode .navbar,
    body.dark-mode #stickyHeader {
        background-color: #111 !important;
        color: #fff !important;
    }

        body.dark-mode .navbar a,
        body.dark-mode .navbar-brand,
        body.dark-mode .nav-link,
        body.dark-mode #stickyHeader a {
            color: #fff !important;
            transition: color 0.3s ease;
        }

            body.dark-mode .navbar a:hover,
            body.dark-mode .nav-link:hover,
            body.dark-mode #stickyHeader a:hover {
                color: #007bff !important;
            }

    /* Dark mode toggle buttons */
    body.dark-mode #darkModeToggle,
    body.dark-mode #darkModeToggleSticky {
        color: #fff !important;
        background: transparent;
    }

#darkModeToggleSticky{
    background:transparent !important;
    border:none !important;
}
/* Sticky Header (Light Mode Default) */
#stickyHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: background 0.3s ease, color 0.3s ease;
}

    #stickyHeader a:hover {
        color: #007bff;
    }

    /* Force sticky header light mode colors */
    #stickyHeader,
    #stickyHeader .navbar,
    #stickyHeader #kendoMenuWrapper,
    #stickyHeader .k-menu {
        color: #ffffff !important;
    }

        #stickyHeader a,
        #stickyHeader .k-link {
            color: #ffffff !important;
            transition: color 0.3s ease;
        }

            #stickyHeader a:hover,
            #stickyHeader .k-link:hover {
                color: #007bff !important;
            }

/* Dark mode override for sticky header */
body.dark-mode #stickyHeader,
body.dark-mode #stickyHeader .navbar,
body.dark-mode #stickyHeader #kendoMenuWrapper,
body.dark-mode #stickyHeader .k-menu {
    background-color: #111 !important;
    color: #ffffff !important;
}

    body.dark-mode #stickyHeader a,
    body.dark-mode #stickyHeader .k-link {
        color: #ffffff !important;
    }

        body.dark-mode #stickyHeader a:hover,
        body.dark-mode #stickyHeader .k-link:hover {
            color: #007bff !important;
        }

/* Kendo links hover */
#kendoMenuWrapper .k-link:hover,
#MainMenu .k-link:hover {
    color: #0056b3 !important;
}
 

/*.sticky-header .sticky-logo {
    height: 90px;  increase as needed 
    width: auto;  keeps proportions correct 
    transition: height 0.3s ease;
}
*/
.sticky-header .sticky-logo {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}
.jumbotron-logo {
    max-width: 800px;  
    width: 100%;
    height: auto;
    transition: max-width 0.3s ease;
}

@media (max-width: 768px) {
    .jumbotron-logo {
        max-width: 400px;  
    }
}
img {
    border-radius: 12px;
}

.contact-window .k-window-titlebar {
    text-align: center;
}

@media (max-width: 768px) {
    .contact-window .k-form {
        padding: 1rem;
    }

    .contact-window .row {
        flex-direction: column;
    }

    .contact-window .col-md-6 {
        width: 100%;
    }
}

.k-form .form-label {
    font-weight: 600;
}

.k-form .red {
    color: #dc3545;
    font-size: 0.875rem;
    display: block;
    margin-top: 4px;
}

/* Ensure consistent spacing between rows */
.k-form .form-group {
    margin-bottom: 1rem;
}

/* On small screens stack vertically */
@media (max-width: 767.98px) {
    .k-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
 .chat-message a {
    color: #0b5ed7;
    word-break: break-word;
    word-wrap: break-word;
    white-space: normal;
}

/* Add chat-specific link styling - ensures links wrap and are touch/click friendly */
.assistant-msg .msg-content .msg-text a,
.user-msg .msg-content .msg-text a {
    color: #0b5ed7;
    text-decoration: underline;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

/* Make chat message containers responsive */
.assistant-msg, .user-msg {
    max-width: 100%;
    box-sizing: border-box;
}

/* Message text spacing */
.msg-content .msg-text {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}
.case-study-container {
    max-width: 900px;
    margin: auto;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
}

    .case-study-container h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

.case-study-section {
    margin-top: 40px;
}

    .case-study-section h3 {
        font-size: 24px;
        margin-bottom: 10px;
        border-bottom: 2px solid #eee;
        padding-bottom: 5px;
    }

    .case-study-section p {
        margin-bottom: 15px;
    }

.case-study-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.arch-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.arch-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px;
    background: #fafafa;
}

    .arch-card h4 {
        margin-top: 0;
    }

.highlight-box {
    background: #f5f7fa;
    border-left: 4px solid #4a6cf7;
    padding: 20px;
    margin-top: 20px;
}

/* Added: shared demo collapse/fade and toggle link styles moved from demo partials */
.fade-text {
    position: relative;
    overflow: hidden;
    line-height: 1.5em;
    transition: height 0.4s ease;
}

.fade-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.fade-text.expanded::after {
    content: none;
}

/* Dark mode fade */
body.dark-mode .fade-text::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0), #0f172a);
}

/* Link style toggle */
.toggle-link {
    display: inline-block;
    color: #00aaff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toggle-link:hover {
    text-decoration: underline;
    color: #0090dd;
}

/* Added from view inline styles (CaseStudies.cshtml) */
.case-study-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

@media (min-width: 900px) {
    .case-study-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.case-study-summary-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
}

.case-study-summary-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 24px;
}

.case-study-summary-section-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.case-study-summary-card p {
    margin-top: 0;
    margin-bottom: 16px;
}

.case-study-summary-card ul {
    margin: 0 0 0 20px;
}

.case-study-summary-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* Added from OurProcess.cshtml / AILandingPage.cshtml */
.responsive {
    max-width: 480px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* local .btn-primary used in views (keeps same look as inline view style) */
.btn-primary {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Added from DocumentSummary.cshtml */
.no-copy {
    user-select: none;
}

.demo-summary {
    font-family: sans-serif;
    background: #f9f9f9;
    position: relative;
}
.demo-summary::before {
    content: "DEMO – NOVAURALOGIC";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 2rem;
    color: rgba(150, 150, 150, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

/* Drop zone / upload styles from DocumentSummary.cshtml */
.dropZoneElement {
    width: 100%;
    max-width: 100%;
}
.dropZoneElement:hover {
    border-color: #0f2196;
    background-color: #f0f8ff;
    color: #0f2196;
}
.dropZoneElement.dragover {
    border-color: #28a745;
    background-color: #e8fbe8;
    color: #28a745;
}
.dropImageHereText {
    font-size: 12px;
    text-align: center;
    font-weight: normal;
    color: lightgray;
}

@media (min-width: 768px) {
    .dropZoneElement {
        width: 50%;
    }
}

span .k-link-text {
    font-size: 1.5em;
}

/* Dark-mode variants for upload/drop/progressbar/ai output (from DocumentSummary.cshtml) */
body.dark-mode .k-upload {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
body.dark-mode .k-upload .k-dropzone {
    background-color: #1e293b;
    border: 2px dashed #475569;
}
body.dark-mode .k-upload .k-dropzone:hover {
    background-color: #273549;
    border-color: #38bdf8;
}

body.dark-mode .dropZoneElement {
    background-color: #0f172a;
    border: 2px dashed #475569;
    color: #e2e8f0;
    transition: all 0.3s ease;
}
body.dark-mode .dropZoneElement:hover {
    background-color: #1e293b;
    border-color: #38bdf8;
}
body.dark-mode .dropZoneElement p {
    color: #cbd5e1;
}
body.dark-mode .dropZoneElement .dropImageHereText {
    color: #38bdf8;
    font-weight: 500;
}

body.dark-mode .k-progressbar {
    background-color: #1e293b !important;
    border-radius: 8px;
}
body.dark-mode .k-progressbar .k-progressbar-value {
    background: linear-gradient(90deg, #f97316, #2563eb) !important;
    border-radius: 8px;
}
body.dark-mode .k-progressbar .k-progress-status {
    color: #f1f5f9 !important;
}
body.dark-mode .k-progressbar:hover .k-progressbar-value {
    filter: brightness(1.1);
}

body.dark-mode #summaryDiv {
    background-color: black;
    color: #f1f5f9;
}

/* AI output card dark-mode rules (DocumentSummary.cshtml) */
body.dark-mode .ai-output-card {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
body.dark-mode .ai-output-card h3 {
    color: #38bdf8;
}
body.dark-mode .ai-output-card h5.text-primary {
    color: #60a5fa !important;
}
body.dark-mode .ai-output-card h5.text-success {
    color: #4ade80 !important;
}

/* Added from _BulletPoint.cshtml */
#bulletPoints ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}
#bulletPoints ul ul {
    list-style-type: circle;
}
#bulletPoints ul ul ul {
    list-style-type: square;
}
#bulletPoints li {
    margin: 2px 0;
    padding: 0;
}

.heading-level1 {
    font-size: 1.5em;
    font-weight: bold;
    color: #2a3f54;
}
.heading-level2 {
    font-size: 1.3em;
    font-weight: bold;
    color: #3e5a72;
}
.heading-level3 {
    font-size: 1.1em;
    font-weight: bold;
    color: #4f6f8f;
}
.bold-text {
    font-weight: bold;
}
.italic-text {
    font-style: italic;
}

/* Added from _OutputSettings.cshtml */
.k-rounded-md {
    border-color: gray;
}

/* Added from various demo partials (_ActionItems/_SampleChat/_DocSummary) */
.fade-text {
    position: relative;
    overflow: hidden;
    line-height: 1.5em;
    transition: height 0.4s ease;
}
.fade-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}
.fade-text.expanded::after {
    content: none;
}
body.dark-mode .fade-text::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0), #0f172a);
}

.toggle-link {
    display: inline-block;
    color: #00aaff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5em;
    text-decoration: none;
    transition: color 0.3s ease;
}
.toggle-link:hover {
    text-decoration: underline;
    color: #0090dd;
}

/* Added from Views\Demo\DemoLandingPage.cshtml - demo cards, logo and small helpers */
.demo-card {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    border-radius: 1rem;
    transform-origin: center;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.demo-card:hover,
.demo-card:focus-within {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.demo-card:hover {
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    cursor: pointer;
}

/* Logo used on Demo landing */
.logo {
    width: 40%;
    max-width: 160px;
    min-width: 100px;
    aspect-ratio: 200 / 60;
    height: auto;
    background-image: url('/images/novauralogiclogodark.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.3s ease, transform 0.3s ease;
    border: none;
    display: block;
    margin: 0 auto;
}

.logo:hover {
    transform: scale(1.05);
}

/* dark-mode variants */
body.dark-mode .logo {
    background-image: url('/images/novauralogolight.png');
    z-index: 1000;
}

body.dark-mode .demo-hero {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Responsive tweak for logo */
@media (max-width: 600px) {
    .logo {
        width: 60%;
        max-width: 120px;
    }
}

/* Small helper classes used in demo landing */
.food {
    color: darkgoldenrod !important;
}

.moredemos {
    color: red !important;
}
/* Added: demo/chat shared styles moved from views */
.loading-overlay {
    position: relative;
    display: block;
    text-align: center;
    color: #888;
    font-size: 1rem;
    font-style: italic;
    margin-top: 10px;
    animation: fadePulse 1s ease-in-out infinite;
}

@keyframes fadePulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* Demo container / dark-mode adjustments used by ChatAssistant and other demo partials */
.demo-container {
    font-size: 1.25rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .demo-container {
    background-color: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

    body.dark-mode .demo-container .text-muted {
        color: #94a3b8 !important;
    }

    body.dark-mode .demo-container .form-control {
        background-color: #0f172a;
        color: #f1f5f9;
        border-color: #334155;
    }

        body.dark-mode .demo-container .form-control:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.25);
        }

    body.dark-mode .demo-container .form-check-input {
        background-color: #1e293b;
        border-color: #475569;
    }

        body.dark-mode .demo-container .form-check-input:checked {
            background-color: #3b82f6;
            border-color: #3b82f6;
        }

    body.dark-mode .demo-container .form-check-label {
        color: #e2e8f0;
    }

    body.dark-mode .demo-container a {
        color: #38bdf8;
    }

        body.dark-mode .demo-container a:hover {
            color: #0ea5e9;
        }

/* Keep bg-light tweak for dark sections */
body.dark-mode .bg-light {
    background-color: #0f172a !important;
}


/***/
.site-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

    .site-menu li {
        margin: 0;
        padding: 0;
    }

    .site-menu a {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        text-decoration: none;
        color: black;
        font-weight: 500;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    }

        .site-menu a:hover,
        .site-menu a:focus {
            background-color: rgba(0, 0, 0, 0.06);
            text-decoration: none;
        }

.dark-mode .site-menu a:hover,
.dark-mode .site-menu a:focus {
    background-color: rgba(255, 255, 255, 0.12);
}

#kendoMenuWrapper,
#kendoMenuWrapperSticky {
    min-width: 0;
}

@media (max-width: 767.98px) {
    #kendoMenuWrapper {
        display: none !important;
        width: 100%;
        margin-top: 0.75rem;
    }

        #kendoMenuWrapper.mobile-active {
            display: block !important;
        }

        #kendoMenuWrapper .site-menu {
            flex-direction: column;
            align-items: stretch;
            gap: 0.25rem;
            padding-top: 0.5rem;
        }

            #kendoMenuWrapper .site-menu a {
                display: block;
                width: 100%;
                text-align: left;
            }
}

/*************************/

.chat-tabs-nav {
    margin-bottom: 1rem;
    gap: 0.25rem;
}

    .chat-tabs-nav .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border-radius: 0.5rem 0.5rem 0 0;
        font-weight: 600;
    }

        .chat-tabs-nav .nav-link .tab-icon {
            width: 18px;
            height: 18px;
        }

.chat-tabs-content {
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.75rem 0.75rem;
    background: #fff;
    min-height: 180px;
}

    .chat-tabs-content .tab-pane {
        padding: 0;
    }

.chat-shell-messages {
    height: 480px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #f9f9f9;
}

body.dark-mode .chat-tabs-content {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .chat-tabs-nav .nav-link {
    color: #e2e8f0;
}

    body.dark-mode .chat-tabs-nav .nav-link.active {
        background-color: #1e293b;
        border-color: #334155 #334155 #1e293b;
        color: #fff;
    }

body.dark-mode .chat-shell-messages {
    background: #0f172a;
    border-color: #334155;
}

.docsum-tabs-nav {
    margin-bottom: 1rem;
    gap: 0.25rem;
}

    .docsum-tabs-nav .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        border-radius: 0.5rem 0.5rem 0 0;
        font-weight: 600;
    }

    .docsum-tabs-nav .tab-icon {
        width: 18px;
        height: 18px;
    }

.docsum-tabs-content {
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.75rem 0.75rem;
    background: #fff;
    min-height: 120px;
    margin-bottom: 1rem;
}

    .docsum-tabs-content .tab-pane {
        padding: 0;
    }

body.dark-mode .docsum-tabs-content {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .docsum-tabs-nav .nav-link {
    color: #e2e8f0;
}

    body.dark-mode .docsum-tabs-nav .nav-link.active {
        background-color: #1e293b;
        border-color: #334155 #334155 #1e293b;
        color: #fff;
    }
#why .hero-content {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#why .why-fullwidth {
    width: 100%;
    max-width: 100%;
}

#why .why-intro {
    max-width: 850px;
    margin: 0 auto 2rem auto;
}

#why .why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

#why .why-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 1.4rem 1.4rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

    #why .why-card strong {
        display: block;
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.85rem;
        padding-bottom: 0.35rem;
         color: #007bff;
        font-weight: 700;
    }


    #why .why-card span {
        display: block;
        font-size: 1rem;
        line-height: 1.65;
        color: #444;
    }

body.dark-mode #why .why-card {
    background: rgba(255, 255, 255, 0.06);
}

    body.dark-mode #why .why-card strong {
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    body.dark-mode #why .why-card span {
        color: #fff !important;
    }

@media (max-width: 768px) {
    #why .why-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating chat toggle button */
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Chat panel positioning when shown */
#divChat.chat-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-height: 80vh;
    z-index: 1999;
    overflow: auto;
}

/* Small-screen adjustments */
@media (max-width: 768px) {
    #divChat.chat-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 80px;
    }
}
