﻿:root {
    --bg-main: #e5e6ff; /* Soft White f8fafc*/
    --bg-card: #ffffff; /* Pure White */
    --bg-footer: #f1f5f9; /* Light Grey */
    --blue: #0ea5e9; /* Electric Blue */
    --pink: #ec4899; /* Vibrant Pink */
    --text-main: #1e293b; /* Dark Slate for readability */
    --text-muted: #babdc2;  /*Grey for subtext */

    --border: #e2e8f0; /* Light border */
    --accent-color: #38bdf8;
    --accent: #06758f;
    --bg-dark: #020617;
    --text-dark: #f8fafc;
}

body {
    /* background-color: var(--bg-main);*/
    background: linear-gradient(245deg, #04134f, #e50dff, #04134f);
    color: var(--accent-color);
    font-family: 'Inter','Segoe UI', system-ui, sans-serif;
}
.darkbg {
    background-color: var(--bg-dark);
    color: var(--accent-color);
}
.logo{
    width: 180px;
    height: 66px;
}
/* Update Navbar for Light Mode */
.navbar {
    /*background: linear-gradient(220deg, #5f2b45 0%, #0ea5e9 100%) !important;
    background: #90299d;*/
    background: linear-gradient(220deg, #09091c 0%, #1f1f5c 100%) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand, .nav-link {
    color: #FFF !important;
}

/* The "Pop" Gradient for Headlines */
.text-pink-blue {
    background: linear-gradient(135deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Card Styling for Light Mode */
.product-card, .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
}

    .product-card:hover, .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        border-color: var(--blue);
    }

/* Side-accent borders for AI Voice Tools */
.ai-border-pink {
    border-top: 5px solid var(--pink);
}

.ai-border-blue {
    border-top: 5px solid var(--blue);
}

.bg-dark-soft {
    background-color: #03081c;
}

.text-secondary {
    color: var(--text-muted) !important;
}

.text-pink {
    color: var(--pink) !important;
}

#agentHistoryList::-webkit-scrollbar {
    width: 4px;
}

#agentHistoryList::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.list-group-item-action:hover {
    background-color: #f8f9fa !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.text-blue {
    color: #0ea5e9;
}

.text-pink {
    color: #ec4899;
}

.agent-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Left Panel: Source Context */
.source-panel {
    width: 350px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

    .source-panel h3 {
        margin-top: 0;
        font-size: 1.1rem;
        color: var(--accent-color);
    }

#source-input {
    flex-grow: 1;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: none;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
}

    #source-input:focus {
        border-color: var(--accent-color);
    }

.btn-primary {
    margin-top: 15px;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

    .btn-primary:hover {
        background-color: #357ABD;
    }

/* Right Panel: Chat Interaction */
.interaction-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.panel-header {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#interaction-log {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    /* Styling for Markdown tables in the chat */
    #interaction-log table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
        font-size: 0.9rem;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    #interaction-log th {
        background-color: #4A90E2;
        color: white;
        padding: 10px;
        text-align: left;
        border: 1px solid #ddd;
    }

    #interaction-log td {
        padding: 10px;
        border: 1px solid #ddd;
        vertical-align: top;
        line-height: 1.4;
    }

    #interaction-log tr:nth-child(even) {
        background-color: #f9f9f9;
    }

/* Ensure the AI message bubble can expand to fit the table */
.msg.ai {
    max-width: 95% !important;
    width: fit-content;
}

/* Message Bubbles */
.msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
}

.ai {
    align-self: flex-start;
    background-color: var(--ai-msg-bg);
    color: #004085;
    border-bottom-left-radius: 2px;
}

.user {
    align-self: flex-end;
    background-color: var(--user-msg-bg);
    color: var(--text-main);
    border-bottom-right-radius: 2px;
}

/* Input Area */
.input-container {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

#agent-query {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
}

.btn-secondary {
    padding: 10px 25px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

/* Markdown Table Styling for AI Responses */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.85rem;
}

th {
    background-color: #f2f2f2;
}

.hero-container {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Failsafe animated mesh gradient */
    background: linear-gradient(45deg, #020617, #0f172a, #020617);
    background-size: 400% 400%;
    animation: meshGradient 15s ease infinite;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    opacity: 0.45; /* Balanced for text legibility */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* --- AGENTIC UI COMPONENTS --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

    .glass-panel:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
    }

/*.text-gradient {
    background: linear-gradient(90deg, #7dd3fc, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}*/

.agent-pill {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* SignalR Live Waveform Animation */
.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 35px;
}

.wave-bar {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: wavePulse 1s infinite ease-in-out;
}

@keyframes wavePulse {
    0%, 100% {
        height: 10px;
    }

    50% {
        height: 30px;
    }
}

@keyframes meshGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 2.5rem;
}
.menu-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
}

.text-gradient {
    background: linear-gradient(90deg, #f838c4, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight:800;
}

.feature-icon {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 1.5rem;
}

.benefit-card {
    border-left: 4px solid #38bdf8;
    background: rgba(56, 189, 248, 0.05);
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
    transition: background 0.3s ease;
}

.benefit-card:hover {
    background: rgba(14, 165, 233, 0.08);
    transform: translateX(8px);
}

/* Agentic Pulse Animation */
.pulse-node {
    width: 100px;
    height: 100px;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .pulse-node::after {
        content: '';
        position: absolute;
        inset: -20px;
        border: 2px solid #38bdf8;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }
.wave-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.bar {
    width: 6px;
    height: 20px;
    background: #0ea5e9;
    border-radius: 10px;
    animation: wave 1s infinite ease-in-out;
}

.teams-card {
    border-left: 5px solid #6264a7;
    background: rgba(98, 100, 167, 0.05);
    padding: 30px;
    border-radius: 15px;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


@keyframes wave {
    0%, 100% {
        height: 20px;
    }

    50% {
        height: 80px;
    }
}

.border-blue {
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    
}

/* Enhanced Wave for Hero */
.wave-container .bar {
    background: linear-gradient(to top, var(--blue), var(--pink));
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

/* Content benefit styles */

/* AI Semantic Borders */
.ai-border-blue {
    border-top: 3px solid var(--blue);
}

.ai-border-pink {
    border-top: 3px solid var(--pink);
}



    



/* Teams Page Specifics */
.teams-purple {
    color: #6264a7 !important;
}

.teams-purple-bg {
    background-color: #6264a7 !important;
}

.teams-border-top {
    border-top: 5px solid #6264a7 !important;
}

.border-purple {
    border: 1px solid rgba(98, 100, 167, 0.3) !important;
}



/* Benefit Card styling for authority */

.table-dark {
    background: transparent !important;
    --bs-table-bg: transparent;
}
/* Cloud PBX Specific Semantic Styles */

.border-blue {
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

.max-width-700 {
    max-width: 700px;
}


/* CCaaS Page Specifics */


.border-top-info {
    border-top: 5px solid var(--blue) !important;
}

.max-width-700 {
    max-width: 700px;
}




/* SIP Page Specifics */


.border-blue {
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
}


/* Benefit Card styling for technical authority */

/* Virtual Office Page Enhancements */
.feature-card-simple {
    background: white;
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature-card-simple:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
    }

.icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 50%;
}

.text-gradient {
    background: linear-gradient(90deg, #0ea5e9, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass effect for light backgrounds */
.bg-light .glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}
/* Agentic Semantic Styling */


.ai-border-blue {
    border-top: 4px solid var(--blue);
}

.ai-border-pink {
    border-top: 4px solid var(--pink);
}

.max-width-700 {
    max-width: 700px;
}


/* Enhancing existing benefit cards for authority */

.badge.bg-dark {
    background-color: rgba(2, 6, 23, 0.6) !important;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
}

.x-small {
    font-size: 0.75rem;
}

.border-warning {
    border: 1px solid #f59e0b !important;
}

/* Target all placeholders to ensure visibility on dark inputs */
.form-control::placeholder {
    color: #ffffff !important;
    opacity: 0.6; /* Adjust this to make it slightly dimmed but readable */
}

/* For Internet Explorer */
.form-control:-ms-input-placeholder {
    color: #ffffff !important;
}

/* For Microsoft Edge */
.form-control::-ms-input-placeholder {
    color: #ffffff !important;
}