/* css/custom/teclaz-brand.css */

/* :root {
    --teclaz-navy: #003666;
    --teclaz-blue: #0188fe;
    --teclaz-blue-light1: #67b8fe;
    --teclaz-blue-light2: #b3dbff;
    --teclaz-blue-dark1: #015fb2;
    --teclaz-blue-dark2: #003666;
    --teclaz-white: #ffffff;
    --teclaz-black: #000000;
    --teclaz-darkgrey: #313A46;
    --teclaz-bg: #eef3ff;
} */

:root {

    /* ------------------------------------------------------------------
       Teclaz Brand Colors
       ------------------------------------------------------------------ */

    --teclaz-navy: #003666;
    --teclaz-blue: #0188fe;
    --teclaz-blue-light1: #67b8fe;
    --teclaz-blue-light2: #b3dbff;
    --teclaz-blue-dark1: #015fb2;
    --teclaz-blue-dark2: #003666;
    --teclaz-white: #ffffff;
    --teclaz-black: #000000;
    --teclaz-darkgrey: #313A46;
    --teclaz-bg: #eef3ff;

    /* ------------------------------------------------------------------
       Hyper Theme Overrides
       ------------------------------------------------------------------ */

    --ct-primary: var(--teclaz-blue);
    --ct-indigo: var(--teclaz-blue);

    --ct-link-color: var(--teclaz-blue);

    --ct-menu-condensed-link-bg: var(--teclaz-blue);

    --ct-menu-item-hover-color: var(--teclaz-blue);
    --ct-menu-item-active-color: var(--teclaz-blue);

    --ct-help-box-bg: var(--teclaz-blue);

    --ct-topbar-item-hover-color: var(--teclaz-blue);

}

body {
    background:
        radial-gradient(circle at top left, rgba(1, 136, 254, .16), transparent 35%),
        radial-gradient(circle at bottom right, rgba(1, 95, 178, .18), transparent 35%),
        var(--teclaz-bg);
}


/* ==========================================================================
   PUBLIC MARKETING NAVBAR
   ========================================================================== */

/* Brand logo */
.navbar-main .navbar-brand img {
    display: block;
    height: 36px;
    flex-shrink: 0;
}

/* Merged Nav Links: Spacing + Transparent Theme Mechanics */
.navbar-main .nav-link {
    /* Sizing and Spacing (from Block 1) */
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    
    /* White Text & Underline Layout (from Block 2) */
    position: relative !important;
    display: inline-block !important;
    color: #ffffff !important;
    transition: color .3s ease;
}

/* Slight spacing between left and right groups */
.navbar-main .navbar-nav:last-child {
    margin-left: 0.5rem;
}

/* CTA Buttons */
.navbar-main .btn-outline-primary,
.navbar-main .btn-primary {
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.45rem 1.25rem;
}

.navbar-main .btn-outline-primary {
    border-width: 1.5px;
}

.navbar-main .btn-primary {
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

.navbar-main {
    position: absolute !important;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent !important;
    z-index: 1050;
    border-bottom: none !important;
}

/* Make navbar Contact Us match Learn More button */
.navbar-main .btn-outline-primary {
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(245, 239, 239, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
    transition: all .25s ease !important;
}

.navbar-main .btn-outline-primary:hover {
    background: rgba(255, 255, 255, .15) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Ensures the pseudo-element underline has a standard baseline to draw on */
.navbar-main .nav-link::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -4px !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg,
            var(--teclaz-blue-light1),
            var(--teclaz-blue)) !important;
    transform: scaleX(0);
    /* Keeps it hidden initially */
    transform-origin: left !important;
    transition: transform .3s ease !important;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-main .nav-link:hover {
    color: var(--teclaz-blue-light1) !important;
}

/* ==========================================================================
   MOBILE MARKETING NAVBAR
   ========================================================================== */

@media (max-width: 991px) {

    .navbar-collapse {
        margin-top: 12px;
        padding: 16px;
        border-radius: 16px;
        background: rgba(5, 8, 22, .95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    }

    .navbar-collapse .nav-link {
        padding: .75rem 0;
    }
}

/* ==========================================================================
   REUSABLE TECLAZ CARD MODIFICATIONS
   ========================================================================== */

.card {
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;

    /* Shape */
    border-radius: 28px !important;
    overflow: hidden;

    /* Soft, deep custom blue drop shadow */
    box-shadow: 0 20px 60px rgba(4, 11, 26, 0.2) !important;

    /* Smooth lift animation */
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        box-shadow .45s cubic-bezier(.22,1,.36,1) !important;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(4, 11, 26, 0.4) !important;
}

/* Dark Mode card color override */
html[data-bs-theme="dark"] .card {
    background-color: #222933 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

html[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
}

.brand-card-header-gradient {
    border: 0 !important;
    padding: 1.35rem 1.5rem !important;
    background: linear-gradient(90deg, var(--teclaz-blue-light1), var(--teclaz-blue)) !important;
}

/* Solid Dark Navy Header Text matching image_8e2e90.png */
.brand-header-title-dark {
    font-weight: 800 !important;
    color: var(--teclaz-navy) !important;
    text-transform: uppercase !important;
    letter-spacing: 0px !important;
    margin-bottom: 0 !important;
}

/* Global utility classes */
.gradient-text {
    background: linear-gradient(90deg, var(--teclaz-blue-light1), var(--teclaz-blue));
    -webkit-background-clip: text;
    color: transparent;
}

.kpi-icon-box {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background-color: rgba(1, 136, 254, 0.1);
        color: var(--teclaz-blue);
    }
    .metric-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

/* ==========================================================================
   TECLAZ SYSTEM FRAMEWORK TYPOGRAPHY
   ========================================================================== */

.page-title {
    margin-top: 2rem !important;
    font-size: 2.8rem !important; 
    font-weight: 900 !important;   
    color: #ffffff;     
    text-transform: uppercase;    
    background: none !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: 1px;          
    margin-bottom: 0;
    line-height: 1.1 !important;
}

.page-title::first-letter {
    font-size: 3.8rem !important;  
    font-weight: 475 !important;
    vertical-align: baseline !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem !important;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
        line-height: 1.2 !important;
    }

    .page-title::first-letter {
        font-size: 2.7rem !important;
        line-height: 1 !important;
    }
}
/* Light/Dark dynamic theme states for page headings */
html[data-bs-theme="light"] .page-title,
body:not([data-bs-theme="dark"]) .page-title {
    color: var(--teclaz-blue) !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

html[data-bs-theme="dark"] .page-title {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.brand-page-subtitle {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    margin-left: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--bs-secondary-color) !important; 
}

/* ==========================================================================
   BRAND COMPONENT DECORATIONS (CARDS, BADGES & LISTS)
   ========================================================================== */

/* Top accented visual border stripe */
.accent-card-stripe {
    background: white;
}

.accent-card-stripe::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--teclaz-blue-light1), var(--teclaz-blue));
}

html[data-bs-theme="dark"] .accent-card-stripe {
    background-color: #222933 !important; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Rounded alphanumeric metric badges */
.count-circle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teclaz-white);
    border: 2px solid var(--teclaz-blue);
    color: var(--teclaz-blue);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

html[data-bs-theme="dark"] .count-circle {
    background: #2a323d;
    border-color: var(--teclaz-blue-light1);
    color: var(--teclaz-blue-light1);
}

/* Frameless inner data rows */
.list-group-item {
    background-color: transparent !important;
    border: none !important;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(1, 136, 254, 0.08) !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

.list-group-item:first-child {
    padding-top: 0;
}

/* ==========================================================================
   TECLAZ BRAND LOADERS & ANIMATIONS
   ========================================================================== */

/* Base container to reserve space for loading charts */
.chart-loader {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AI / Insights thinking state loader layout */
.teclaz-thinking-loader {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--teclaz-blue-dark2); /* Brand purple/indigo accent */
  font-size: 14px;
  font-weight: 500;
}

/* Animated loader icon target */
.teclaz-thinking-loader i {
  font-size: 32px;
  animation: teclazPulse 1.4s ease-in-out infinite;
}

/* Smooth pulse & scale keyframes for an intelligent feel */
@keyframes teclazPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

.global-page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255,255,255,.86);
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-page-loader .teclaz-thinking-loader {
    min-height: auto;
}

/* ==========================================================================
   CONVERSION JOURNEY INSIGHT WIDGETS
   ========================================================================== */

/* Modern Warning Callout replacing the generic yellow box */
.brand-warning-banner {
    background-color: rgba(247, 184, 75, 0.25) !important;
    border-left: 4px solid #f7b84b !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(247, 184, 75, 0.5) !important;
    border-radius: 4px !important;
}

/* AI Chat Bubble-inspired design for Platform Insights */
.brand-ai-insight-bubble {
    background: var(--teclaz-blue-dark2) !important; 
    border: 1px solid #0188fe !important; 
    border-radius: 18px 18px 18px 4px !important;
    color: #ffffff !important; 
    position: relative;
    box-shadow: 0 4px 15px rgba(1, 136, 254, 0.15) !important;
    margin-left: 12px;
}

.brand-ai-insight-bubble strong {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* The Chat Bubble Tail Point (The Navy Core) */
.brand-ai-insight-bubble::before {
    content: "";
    position: absolute;
    bottom: 0; /* Align perfectly with bottom border */
    left: -9px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent var(--teclaz-blue-dark2) transparent transparent; 
    z-index: 2;
}

/* The Chat Bubble Tail Border Line (The Light Blue Outer Trace) */
.brand-ai-insight-bubble::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Shifted down slightly to clear the main border overlap */
    left: -11px; /* Shifted left to sit directly behind the inner triangle */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 11px 11px 0;
    border-color: transparent #0188fe transparent transparent; 
    z-index: 1;
}

/* Accent element for deep benchmark items */
.brand-ai-benchmark-bubble {
    background: linear-gradient(135deg, rgba(1, 136, 254, 0.04), rgba(111, 66, 193, 0.04)) !important;
    border: 1px solid rgba(1, 136, 254, 0.15) !important;
    border-radius: 16px !important;
    color: var(--teclaz-blue-dark2) !important;
}

[data-bs-theme="dark"] .brand-ai-benchmark-bubble {
    /* Slightly higher opacities so the tint doesn't get swallowed by a dark canvas */
    background: linear-gradient(135deg, rgba(1, 136, 254, 0.6), rgba(111, 66, 193, 0.08)) !important;
    /* Clean, glowing border profile instead of dark lines */
    border-color: rgba(1, 136, 254, 0.3) !important;
    /* Swaps out navy text for crisp text visibility in dark mode */
    color: #e9ecef !important; 
}

/* Light Mode (Default Purple Label) */
.brand-benchmark-title {
    color: #6f42c1 !important;
}

/* Dark Mode (Flips text to white/light tint) */
[data-bs-theme="dark"] .brand-benchmark-title {
    color: #ffffff !important; /* Switch to rgba(255, 255, 255, 0.9) if you want it slightly softer than blinding white */
}

/* Recommendation Checklist Box */

.brand-recommendations-box {
    background-color: #ffffff !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.brand-recommendations-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.brand-recommendations-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #5c6a7e;
}

/* Custom check icon indicators */
.brand-recommendations-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0acf97;
    font-weight: 800;
}

/* ==========================================================================
   TECLAZ TABLE SYSTEM
   ========================================================================== */

.brand-table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

.brand-table tbody tr {
    background: transparent !important;
    transition: all .2s ease;
}

.brand-table tbody td {
    border: 0 !important;
    padding: 1rem !important;
}

.brand-table tbody td:first-child {
    border-radius: 12px 0 0 12px !important;
}

.brand-table tbody td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

.brand-table tbody tr:nth-child(odd) td {
    background-image: linear-gradient(
        90deg,
        rgba(1,136,254,.12),
        rgba(103,184,254,.12)
    ) !important;

    background-size: 100vw 100% !important;
    background-attachment: fixed !important;
}

/* ---------- LIGHT MODE ---------- */

html[data-bs-theme="light"] .brand-table tbody tr:nth-child(odd) td,
body:not([data-bs-theme="dark"]) .brand-table tbody tr:nth-child(odd) td {
    background-image: linear-gradient(
        90deg,
        rgba(1,136,254,.12),
        rgba(103,184,254,.12)
    ) !important;

    color: var(--teclaz-blue-dark2) !important;
}

html[data-bs-theme="light"] .brand-table tbody tr:nth-child(even) td,
body:not([data-bs-theme="dark"]) .brand-table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
    color: #495057 !important;
}

html[data-bs-theme="light"] .brand-table tbody tr:hover td,
body:not([data-bs-theme="dark"]) .brand-table tbody tr:hover td {
    background-image: linear-gradient(
        90deg,
        rgba(1,136,254,.20),
        rgba(103,184,254,.20)
    ) !important;

    color: var(--teclaz-blue-dark2) !important;
}

/* ---------- DARK MODE ---------- */

html[data-bs-theme="dark"] .brand-table tbody tr:nth-child(odd) td {
    background-image: linear-gradient(
        90deg,
        rgba(0,54,102,.15),
        rgba(1,95,178,.10)
    ) !important;

    color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .brand-table tbody tr:nth-child(even) td {
    background: rgba(20,26,35,.60) !important;
    color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .brand-table tbody tr:hover td {
    background-image: linear-gradient(
        90deg,
        rgba(1,136,254,.25),
        rgba(103,184,254,.15)
    ) !important;

    color: #ffffff !important;
}

.brand-datatable-toolbar {
    background: linear-gradient(
        90deg,
        var(--teclaz-blue-light1),
        var(--teclaz-blue)
    ) !important;

    padding: 1.5rem !important;
}

.brand-header-subtitle {
    color: var(--teclaz-blue-dark2);
    opacity: .85;
}

html[data-bs-theme="dark"] .brand-header-subtitle {
    color: var(--teclaz-blue-dark2);
}

.brand-form-label {
    font-weight: 700;
    color: var(--teclaz-blue-dark2);
}

html[data-bs-theme="dark"] .brand-form-label {
    color: #e2e8f0;
}

.brand-dropzone {
    border: 2px dashed rgba(1,136,254,.25) !important;
    border-radius: 20px !important;
    background: rgba(1,136,254,.03);
    transition: all .25s ease;
}

.brand-dropzone:hover {
    border-color: var(--teclaz-blue);
    background: rgba(1,136,254,.06);
}

/* ==========================================================================
   PRIMARY BUTTONS
   ========================================================================== */

.btn-primary {
    background-color: var(--teclaz-blue) !important;
    border-color: var(--teclaz-blue) !important;
    color: var(--teclaz-white) !important;

    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(1,136,254,.30);

    transition: all .3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--teclaz-blue-dark1) !important;
    border-color: var(--teclaz-blue-dark1) !important;
    color: var(--teclaz-white) !important;

    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(1,136,254,.50);
}

.btn-teclaz {
    background-color: var(--teclaz-blue);
    border: 1px solid var(--teclaz-blue);
    color: var(--teclaz-white);
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(1, 136, 254, 0.30);
    transition: all .3s ease;
}

.btn-teclaz:hover,
.btn-teclaz:focus,
.btn-teclaz:active {
    background-color: var(--teclaz-blue-dark1);
    border-color: var(--teclaz-blue-dark1);
    color: var(--teclaz-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(1, 136, 254, 0.50);
}