:root {
    --dt-navy: #1e3a5f;
    --dt-navy-dark: #152a45;
    --dt-blue: #3b82c4;
    --dt-light-blue: #e8f4fc;
    --dt-white: #ffffff;
    --dt-gray: #6b7280;
    --dt-light-gray: #f8f9fa;
    --header-height: 80px;
}

body {
    padding-top: 0;
    background-color: var(--dt-white);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

/* Header layout */
.header-flex {
    background: var(--dt-white);
    color: var(--dt-navy);
    display: flex;
    align-items: center;
    padding: 15px 30px;
    gap: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.header-flex .logo img {
    height: 50px;
}

.header-flex .title h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dt-navy);
    font-weight: 600;
}

.header-flex .title p {
    margin: 0;
    color: var(--dt-gray);
    font-size: 0.9rem;
}

/* User area / login */
.user-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-number {
    color: var(--dt-navy);
    font-weight: 600;
    text-decoration: none;
}

.phone-number:hover {
    color: var(--dt-blue);
}

.btn-get-started {
    background-color: var(--dt-navy);
    color: var(--dt-white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-get-started:hover {
    background-color: var(--dt-navy-dark);
    color: var(--dt-white);
}

.login-dropdown {
    min-width: 220px;
}

/* Main navigation menu */
.main-menu {
    background: var(--dt-navy);
    border-bottom: none;
}

.main-menu > ul {
    list-style: none;
    padding: 0 30px;
    margin: 0;
    display: flex;
    gap: 0;
}

.main-menu ul li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dt-white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-menu a:hover {
    background-color: var(--dt-navy-dark);
    color: var(--dt-white);
}

/* Submenu dropdown */
.main-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 8px 0;
    min-width: 220px;
    background: var(--dt-white);
    list-style: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
}

.main-menu .submenu li {
    padding: 0;
}

.main-menu .submenu a {
    padding: 10px 20px;
    color: var(--dt-navy);
    white-space: nowrap;
    text-transform: none;
    font-size: 0.95rem;
}

.main-menu .submenu a:hover {
    background: var(--dt-light-blue);
    color: var(--dt-navy);
}

.main-menu .submenu .divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.main-menu li.has-submenu:hover > .submenu {
    display: block;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--dt-light-blue) 0%, var(--dt-white) 100%);
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    display: inline-block;
    background: var(--dt-light-blue);
    color: var(--dt-navy);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--dt-navy);
    margin-bottom: 10px;
}

.hero-title-bold {
    font-weight: 700;
    color: var(--dt-navy);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--dt-gray);
    margin-bottom: 30px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dt-white);
    color: var(--dt-navy);
    padding: 12px 25px;
    border: 2px solid var(--dt-navy);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: var(--dt-navy);
    color: var(--dt-white);
}

/* Content cards */
.content-card {
    background: var(--dt-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.content-card h3 {
    color: var(--dt-navy);
    font-weight: 600;
    margin-bottom: 15px;
}

.content-card p {
    color: var(--dt-gray);
}

/* Section styling */
.section-title {
    color: var(--dt-navy);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--dt-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Footer */
.dt-footer {
    background: var(--dt-navy) !important;
    color: var(--dt-white);
    padding: 40px 30px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-heading {
    color: var(--dt-white);
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--dt-white);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: var(--dt-white);
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--dt-white);
}

/* Alert bell dropdown */
.alert-bell-container .btn-outline-warning {
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.alert-bell-container .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #000;
}

.alert-dropdown {
    min-width: 280px;
}

/* Alert badge on bell icon */
.alert-bell-container .badge.rounded-pill {
    font-size: 0.55rem;
    padding: 2px 5px;
    min-width: 16px;
    line-height: 1.2;
}

/* Notification banner & panel */
.notif-banner {
    display: none;
    position: relative;
    z-index: 900;
    background: #b91c1c;
    color: #fff;
    padding: 10px 30px;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}
.notif-banner.show { display: flex; }
.notif-banner .notif-bell {
    animation: notifPulse 1.5s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}
.notif-banner .notif-count {
    background: #fff;
    color: #b91c1c;
    border-radius: 999px;
    padding: 1px 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: 4px;
}
.btn-notif-view {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: auto;
}
.btn-notif-view:hover {
    background: rgba(255,255,255,0.35);
}

/* Offcanvas panel overrides */
#notifPanel .offcanvas-header {
    background: var(--dt-navy);
    color: #fff;
}
#notifPanel .btn-close { filter: invert(1); }
#notifPanel .offcanvas-body { padding: 0; }

/* Alert/Flash panel */
.alert-dt {
    border-radius: 8px;
}

/* Utility classes */
.text-navy {
    color: var(--dt-navy);
}

.bg-navy {
    background-color: var(--dt-navy);
}

.bg-light-blue {
    background-color: var(--dt-light-blue);
}

/* Dashboard pipeline cards */
.pipeline-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
}
.pipeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}
.pipeline-count {
    color: var(--dt-navy);
    line-height: 1.2;
}
.pipeline-label {
    font-weight: 500;
}
.pipeline-rate {
    font-size: 0.8rem;
}

/* Chart containers */
.chart-container-lg {
    position: relative;
    height: 300px;
    width: 100%;
}
.chart-container-md {
    position: relative;
    height: 250px;
    width: 100%;
}

/* PDF export: hide elements marked .no-pdf during capture */
.pdf-capturing .no-pdf {
    display: none !important;
}

/* Analytics Dashboard: clickable KPI cards */
.kpi-clickable {
    cursor: pointer;
}
.kpi-active {
    box-shadow: 0 0 0 3px var(--dt-blue), 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px);
}

/* Sub-category drill-down pills */
.subcard-pill {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
}
.subcard-pill:hover {
    opacity: 0.85;
}
.subcard-count {
    font-weight: 700;
}

/* Analytics Dashboard: multi-select checkbox dropdowns */
.filter-multi-select .multi-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-multi-select .multi-check-list td {
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-multi-select .multi-check-list label {
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}
.filter-multi-select .multi-check-list input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

/* GridView pager styling */
.gridview-pager td {
    padding: 8px 16px;
}
.gridview-pager a, .gridview-pager span {
    padding: 4px 10px;
    margin: 0 2px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}
.gridview-pager a {
    background: var(--dt-light-blue);
    color: var(--dt-navy);
}
.gridview-pager a:hover {
    background: var(--dt-blue);
    color: white;
}
.gridview-pager span {
    background: var(--dt-navy);
    color: white;
    font-weight: 600;
}

/* Activity timeline badge colors */
.bg-purple { background-color: #8b5cf6 !important; color: #fff; }
.bg-orange { background-color: #f97316 !important; color: #fff; }

/* Coming soon / future cards */
.border-dashed {
    border: 2px dashed #d1d5db !important;
    border-radius: 8px;
}

/* ProspectActivityStory — visual journey for grids
   Mirrors prod's .dt-story-* classes (DiscoveryTrials.Master inline styles). */
.dt-story { display: flex; flex-direction: column; gap: 2px; }
.dt-story-step { font-weight: 500; color: #334155; }
.dt-story-count {
    display: inline-block;
    padding: 0 4px;
    margin-left: 2px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
}
.dt-story-trail { line-height: 1.6; color: #64748b; }
