/* overview.css - Phryloc Portfolio Styles */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Libre+Baskerville:wght@400;700&family=Dancing+Script:wght@400;700&family=Caveat:wght@400;700&family=Indie+Flower&family=Satisfy&display=swap');

/* ============================================================================
   BASE STYLES
   ============================================================================ */

html, body {
    background-color: #15152a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================================================================
   WRAPPER - Main app container
   ============================================================================ */

.dd-wrapper {
    font-family: 'Sora', sans-serif;
    background-color: #15152a;
    color: #e2e8f0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Background grid pattern */
.dd-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================================
   DECORATIVE ELEMENTS - Fixed position accents
   ============================================================================ */

.dd-wrapper .vertical-line {
    position: fixed;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.2), transparent);
    z-index: 0;
    pointer-events: none;
    top: 0;
}

.dd-wrapper .vertical-line.line-1 { left: 15%; }
.dd-wrapper .vertical-line.line-2 { left: 45%; }
.dd-wrapper .vertical-line.line-3 { left: 75%; }

.dd-wrapper .dot-accent {
    position: fixed;
    width: 12px;
    height: 12px;
    background: #047857;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.dd-wrapper .dot-accent.dot-1 { top: 20%; left: 10%; }
.dd-wrapper .dot-accent.dot-2 { top: 60%; right: 15%; left: auto; opacity: 0.6; background: #047857; box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
.dd-wrapper .dot-accent.dot-3 { bottom: 30%; left: 40%; top: auto; opacity: 0.4; }

/* ============================================================================
   HEADER SECTION
   ============================================================================ */

.dd-wrapper .header {
    background:
        radial-gradient(ellipse at bottom left, #b0bec5 0%, #78909c 22%, transparent 50%),
        radial-gradient(ellipse at bottom right, #b0bec5 0%, #78909c 22%, transparent 50%),
        linear-gradient(0deg, #3d4a5c 0%, #252f3f 40%, #111827 60%, #111827 100%) !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 10 !important;
    border-bottom: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    min-height: 176px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Sigmoid curve background - HIDDEN */
.dd-wrapper .header::before {
    display: none !important;
}

.dd-wrapper .header > * {
    position: relative;
    z-index: 1;
}

/* Header image section - HIDDEN (chat moved to fixed callout) */
.dd-wrapper .header-image-section {
    display: none !important;
}

/* Wrapper - silhouette at top-left corner of callout */
.dd-wrapper .header-image-wrapper {
    position: absolute !important;
    top: -12px !important;
    left: -12px !important;
    z-index: 3 !important;
}

.dd-wrapper .header-image-placeholder {
    width: 46px !important;
    height: 46px !important;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 2px solid #047857 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(24, 169, 153, 0.2) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Hide scrollbars on all iframes in header */
.dd-wrapper .header iframe {
    overflow: hidden !important;
    border: none !important;
}

.dd-wrapper .header-image-placeholder iframe {
    overflow: hidden !important;
}

.dd-wrapper .person-silhouette {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
}

/* Chat bubble (LLM message) - silhouette at top-left corner */
.dd-wrapper .chat-bubble {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 3px solid #047857 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.5rem 0 0.4rem 0.5rem !important;
    position: relative !important;
    width: 155px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    gap: 0 !important;
    z-index: 1 !important;
}

/* Arrow hidden - silhouette overlaps instead */
.dd-wrapper .chat-bubble::before {
    display: none !important;
}

.dd-wrapper .chat-bubble::after {
    display: none !important;
}

.dd-wrapper .chat-bubble-title {
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #34d399 !important;
    margin-bottom: 0.1rem !important;
}

.dd-wrapper .chat-bubble-text {
    font-size: 10px !important;
    color: #cbd5e1 !important;
    line-height: 1.3 !important;
    display: block !important;
    text-align: center !important;
}

.dd-wrapper .chat-bubble-content {
    padding: 0.05rem 0.2rem 0.8rem 0.8rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
}

.dd-wrapper .chat-bubble-welcome {
    font-weight: 700 !important;
    font-size: 14px !important;
    font-style: italic !important;
    color: #e2e8f0 !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 0.2rem !important;
}

.dd-wrapper .chat-bubble-cta {
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
    font-size: 9px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    padding: 0.08rem 0.6rem !important;
    align-self: center !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    text-align: center !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translate(-50%, 50%) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.dd-wrapper .chat-bubble-cta:hover {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3) !important;
    transform: translate(-50%, 50%) scale(1.05) !important;
}

/* Mini chat button - matches CTA button style, shown when callout is hidden by viewport */
.dd-wrapper .chat-mini-btn {
    display: none !important;
    margin-top: 10px !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-radius: 4px !important;
    padding: 0.35rem 0.75rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.dd-wrapper .chat-mini-btn:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
}

/* Wind graphic - positioned at left behind PhyLos title */
.dd-wrapper .header > .flow-graphic {
    position: absolute !important;
    width: 340px !important;
    height: 120px !important;
    top: -2px !important;
    left: 0 !important;
    right: auto !important;
    transform: scale(0.72) !important;
    transform-origin: top left !important;
    filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.2)) !important;
    opacity: 0.45 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.dd-wrapper .flow-graphic iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    overflow: hidden !important;
}

/* Title section container - positioned at left, above flow graphic */
.dd-wrapper .header-title-section {
    position: absolute !important;
    left: 38px !important;
    top: 10px !important;
    transform: scale(0.72) !important;
    transform-origin: top left !important;
    text-align: center !important;
    z-index: 3 !important;
}

/* Title - now inside title section */
.dd-wrapper .header-title-section .header-title {
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
    font-size: 64px !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
    letter-spacing: -3px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.dd-wrapper .header-title-section .header-title::after {
    display: none;
}

/* Subtitle - now inside title section */
.dd-wrapper .header-title-section .header-subtitle {
    font-family: 'Sora', sans-serif !important;
    font-size: 10px !important;
    color: #a8b5c7 !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
}

/* Legacy selectors for backward compat */
.dd-wrapper .header > .header-title {
    display: none !important;
}

.dd-wrapper .header > .header-subtitle {
    display: none !important;
}

/* Handwritten message in header - positioned at top right */
.dd-wrapper .header-handwritten-message {
    position: absolute !important;
    top: 12px !important;
    right: 20px !important;
    font-family: 'Satisfy', cursive !important;
    font-size: 12px !important;
    color: #ffffff !important;
    text-align: right !important;
    z-index: 101 !important;
    line-height: 1.3 !important;
}

.dd-wrapper .header-reach-out-btn {
    font-family: 'Sora', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-top: 2px !important;
    display: block !important;
    margin-left: auto !important;
    transition: all 0.2s ease !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 255, 255, 0.2) !important;
}

.dd-wrapper .header-reach-out-btn:hover {
    color: #34d399 !important;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5) !important;
}

/* ============================================================================
   NAVIGATION BAR
   ============================================================================ */

.dd-wrapper .nav-wrapper {
    background: transparent !important;
    position: relative !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    border-bottom: none !important;
    min-height: 72px !important;
    padding: 0 0 12px 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    margin-top: auto !important;
    width: 100% !important;
    transform: translateY(8px) !important;
}

.dd-wrapper .nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 1rem 0 55px !important;
    position: relative !important;
    min-height: 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Tabs wrapper with scroll buttons */
.dd-wrapper .nav-tabs-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    position: relative !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
}

.dd-wrapper .nav-scroll-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 4px !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.dd-wrapper .nav-scroll-btn:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #e2e8f0 !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.dd-wrapper .nav-scroll-btn.scroll-left {
    margin-right: 1.5rem !important;
}

.dd-wrapper .nav-scroll-btn.scroll-right {
    margin-left: 1.5rem !important;
}

/* Profile section with headshot */
.dd-wrapper .profile-section {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    margin-right: 1.5rem !important;
    flex-shrink: 0 !important;
}

.dd-wrapper .profile-image-container {
    position: relative !important;
    width: 115px !important;
    height: 40px !important;
    overflow: visible !important;
}

.dd-wrapper .profile-headshot {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 6px !important;
    border: 2px solid #047857 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Name text hidden */
.dd-wrapper .profile-overlay-name {
    display: none !important;
}

/* Contact button - below name text, top right area */
.dd-wrapper .profile-overlay-contact {
    position: relative !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 16px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
}

.dd-wrapper .profile-overlay-contact:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
    color: #ffffff !important;
}

/* Mobile menu toggle */
.dd-wrapper .menu-toggle {
    display: none !important;
    flex-direction: column !important;
    gap: 6px !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    z-index: 101 !important;
}

.dd-wrapper .menu-toggle span {
    width: 28px !important;
    height: 2px !important;
    background: #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

/* Nav tabs */
.dd-wrapper .nav-tabs {
    display: flex !important;
    gap: 16px !important;
    padding: 12px 8px !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    align-items: center !important;
    max-width: calc(100vw - 280px) !important;
    flex-shrink: 1 !important;
}

.dd-wrapper .nav-tabs::-webkit-scrollbar {
    display: none !important;
}

.dd-wrapper .nav-tab {
    padding: 0 !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    letter-spacing: 0.2px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    min-width: auto !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    gap: 0 !important;
    margin: 0 !important;
}

/* Nav tab icon - square containing icon + text */
.dd-wrapper .nav-tab .nav-icon {
    width: 72px !important;
    height: 60px !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    gap: 0 !important;
    padding: 4px !important;
    position: relative !important;
}

/* Icon inside the nav-icon - centered */
.dd-wrapper .nav-tab .nav-icon i {
    flex-shrink: 0 !important;
    margin-bottom: 12px !important;
}

/* Text inside the icon square - positioned at bottom */
.dd-wrapper .nav-tab .nav-icon span {
    font-size: 7px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    position: absolute !important;
    bottom: 5px !important;
    line-height: 1.1 !important;
}

/* Remove underline effect */
.dd-wrapper .nav-tab::after {
    display: none !important;
}

.dd-wrapper .nav-tab .nav-icon {
    opacity: 0.4 !important;
    filter: brightness(0.7) !important;
}

.dd-wrapper .nav-tab:hover .nav-icon {
    opacity: 0.7 !important;
    box-shadow: none !important;
    filter: brightness(1) !important;
}

.dd-wrapper .nav-tab.active .nav-icon {
    opacity: 1 !important;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.5) !important;
    filter: brightness(1.4) !important;
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */

.dd-wrapper .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0.5rem 2rem 2rem 2rem !important;
    position: relative !important;
    z-index: 1 !important;
    background: #334155 !important;
    border-top: 1px solid #000000 !important;
}

/* Intro text container - scales text to fill video height */
.dd-wrapper .intro-text-container p {
    font-size: clamp(1.2rem, 2.8vw, 1.9rem) !important;
    line-height: 1.6 !important;
}

/* ============================================================================
   CONTENT GRID
   ============================================================================ */

.dd-wrapper .content-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 2rem !important;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.dd-wrapper .card {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

.dd-wrapper .top-card {
    background: linear-gradient(180deg, #9db0ba 0%, #b3c3cc 50%, #cdd8de 100%) !important;
}

.dd-wrapper .card > .card-header:first-child {
    border-radius: 11px 11px 0 0 !important;
}

.dd-wrapper .card-header {
    font-family: 'Sora', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #252f3f !important;
    padding: 0.3rem 1rem !important;
    background: #ffffff !important;
    border-bottom: none !important;
    position: relative !important;
    border-radius: 0 !important;
}

.dd-wrapper .card-header::after {
    display: none !important;
}

.dd-wrapper .card-content {
    padding: 1.6rem !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #252f3f !important;
    background: transparent !important;
}

.dd-wrapper .card-content p {
    color: #252f3f !important;
    margin-bottom: 1rem !important;
}

.dd-wrapper .card-content p:last-child {
    margin-bottom: 0 !important;
}

.dd-wrapper .card-content strong {
    color: #065f46 !important;
}

/* ============================================================================
   POPOUT CONTAINERS - Technology Stack and Contact
   ============================================================================ */

.dd-wrapper .tech-stack-popout {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.dd-wrapper .tech-stack-popout .card-header {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(51, 65, 85, 0.57) 50%, rgba(100, 116, 139, 0.72) 100%),
        linear-gradient(90deg, #047857 0%, #065f46 25%, #3d4a5c 50%, #6b21a8 75%, #7c3aed 100%) !important;
    color: #ffffff !important;
}

.dd-wrapper .tech-stack-popout .tech-tabs-scroll-wrapper,
.dd-wrapper .tech-stack-popout .tech-tabs-wrapper {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(51, 65, 85, 0.57) 50%, rgba(100, 116, 139, 0.72) 100%),
        linear-gradient(90deg, #047857 0%, #065f46 25%, #3d4a5c 50%, #6b21a8 75%, #7c3aed 100%) !important;
}

.dd-wrapper .contact-popout {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* ============================================================================
   TECHNOLOGY STACK TABS
   ============================================================================ */

.dd-wrapper .tech-tabs-wrapper {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(51, 65, 85, 0.57) 50%, rgba(100, 116, 139, 0.72) 100%),
        linear-gradient(90deg, #047857 0%, #065f46 25%, #3d4a5c 50%, #6b21a8 75%, #7c3aed 100%) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.dd-wrapper .tech-tabs-scroll-wrapper {
    display: flex !important;
    align-items: center !important;
    border-bottom: none !important;
    padding: 0.25rem 0.5rem !important;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(51, 65, 85, 0.57) 50%, rgba(100, 116, 139, 0.72) 100%),
        linear-gradient(90deg, #047857 0%, #065f46 25%, #3d4a5c 50%, #6b21a8 75%, #7c3aed 100%) !important;
    border-radius: 0 !important;
}

.dd-wrapper .tech-scroll-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 0 !important;
    color: #b0bec5 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.dd-wrapper .tech-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.dd-wrapper .tech-scroll-btn.scroll-left {
    margin-right: 0.5rem !important;
}

.dd-wrapper .tech-scroll-btn.scroll-right {
    margin-left: 0.5rem !important;
}

.dd-wrapper .tech-tabs {
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.dd-wrapper .tech-tabs::-webkit-scrollbar {
    display: none !important;
}

.dd-wrapper .tech-tab {
    padding: 0.75rem 1.2rem !important;
    background: transparent !important;
    border: none !important;
    color: #b0bec5 !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-bottom: 2px solid transparent !important;
    white-space: nowrap !important;
    border-radius: 0 !important;
}

.dd-wrapper .tech-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.dd-wrapper .tech-tab.active {
    color: #ffffff !important;
    border-bottom-color: #b0bec5 !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.dd-wrapper .tech-content-area {
    padding: 1.125rem 1rem !important;
}

.dd-wrapper .tech-pane {
    display: none !important;
}

.dd-wrapper .tech-pane.active {
    display: block !important;
}

/* ============================================================================
   MONITORING TAB NAV BUTTONS
   ============================================================================ */

.dd-wrapper .mon-nav-btn {
    padding: 0.5rem 1rem !important;
    background: rgba(30, 41, 59, 0.5) !important;
    border: none !important;
    color: #94a3b8 !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.dd-wrapper .mon-nav-btn:hover {
    color: #e2e8f0 !important;
    background: rgba(51, 65, 85, 0.6) !important;
}

.dd-wrapper .mon-nav-btn.active {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.2) !important;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.dd-wrapper .badge {
    padding: 0.5rem 1rem !important;
    background: #e8eeee !important;
    color: #252f3f !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.dd-wrapper .badge:hover {
    background: #d1d9db !important;
    transform: translateY(-2px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.dd-wrapper .footer {
    text-align: center !important;
    padding: 0.5rem 2rem !important;
    color: #ffffff !important;
    font-size: 12px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    border-top: none !important;
    background: #1a1a1a !important;
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

/* Smaller callout when viewport shrinks - show only Welcome! */
@media (max-width: 850px) {
    .dd-wrapper .chat-bubble {
        width: 90px !important;
        height: 45px !important;
        padding: 0.4rem 0.5rem 0.6rem 0.5rem !important;
    }
    .dd-wrapper .chat-bubble-text {
        display: none !important;
    }
    .dd-wrapper .chat-bubble-content {
        padding: 0 !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .dd-wrapper .header-image-placeholder {
        width: 26px !important;
        height: 26px !important;
    }
    .dd-wrapper .header-image-wrapper {
        top: -12px !important;
        left: -8px !important;
    }
}

@media (max-width: 1024px) {
    .dd-wrapper .content-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .dd-wrapper .vertical-line,
    .dd-wrapper .dot-accent {
        display: none !important;
    }

    /* Keep title position stable */
    .dd-wrapper .header > .header-title {
        top: 58% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 600px) {
    /* Keep title position stable */
    .dd-wrapper .header > .header-title {
        top: 58% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* ============================================================================
   DEEP DIVES VIEWER COMPONENTS
   ============================================================================ */

/* Dropdown Dark Theme Override */
.dd-dropdown-dark .Select-control {
    background-color: #1e293b !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    border-radius: 4px !important;
}

.dd-dropdown-dark .Select-control:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.dd-dropdown-dark .Select-menu-outer {
    background-color: #1e293b !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    z-index: 1000 !important;
}

/* Allow dropdowns to overflow Route Selection container */
.dd-wrapper .card {
    overflow: visible !important;
}

.dd-wrapper .card .card-content {
    overflow: visible !important;
}

/* Dash dropdown menu portal - ensure it appears on top */
.Select-menu-outer {
    z-index: 1000 !important;
}

.dd-dropdown-dark .Select-option {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

.dd-dropdown-dark .Select-option:hover {
    background-color: #2d3748 !important;
}

.dd-dropdown-dark .Select-option.is-focused {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

.dd-dropdown-dark .Select-value-label {
    color: #e2e8f0 !important;
}

.dd-dropdown-dark .Select-placeholder {
    color: #64748b !important;
}

/* Grid Container */
.dd-viewer-grid-container {
    overflow: hidden !important;
}

/* Info Bar at bottom of grid map */
.dd-viewer-info-bar {
    height: 36px !important;
    background-color: #0f172a !important;
    border-top: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem !important;
}

/* Wind Panel */
.dd-viewer-wind-panel {
    background: rgba(30, 41, 59, 0.6) !important;
    border-radius: 0 !important;
    padding: 1rem !important;
    border: none !important;
}

/* Terrain Container */
.dd-viewer-terrain-container {
    overflow: hidden !important;
}

/* Satellite card needs overflow hidden for zoom clipping (overrides .card visible) */
.dd-wrapper .dd-satellite-card,
.dd-wrapper .dd-satellite-card .card-content {
    overflow: hidden !important;
}

/* Responsive adjustments for viewer components */
@media (max-width: 768px) {
    .dd-viewer-grid-container,
    .dd-viewer-terrain-container {
        min-width: 100% !important;
    }
}

/* ============================================================================
   FIXED CHAT CALLOUT - Lower right corner
   ============================================================================ */

.dd-wrapper .chat-callout-fixed {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.dd-wrapper .chat-callout-fixed.minimized {
    transform: scale(0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dd-wrapper .chat-callout-fixed .chat-bubble {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border: 3px solid #047857 !important;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem 0.6rem !important;
    position: relative !important;
    width: 170px !important;
    cursor: pointer !important;
}

.dd-wrapper .chat-callout-fixed .chat-bubble:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 32px rgba(16, 185, 129, 0.5), 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Close/minimize button */
.dd-wrapper .chat-callout-close {
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 24px !important;
    height: 24px !important;
    background: #ef4444 !important;
    border: 2px solid #1e293b !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

.dd-wrapper .chat-callout-close:hover {
    background: #dc2626 !important;
    transform: scale(1.1) !important;
}

/* Minimized restore button */
.dd-wrapper .chat-restore-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 56px !important;
    height: 56px !important;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
}

.dd-wrapper .chat-restore-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5) !important;
}

.dd-wrapper .chat-restore-btn.hidden {
    transform: scale(0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================================================================
   CHAT BOT MODAL
   ============================================================================ */

/* Make chat bubble clickable */
.dd-wrapper .chat-bubble {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.dd-wrapper .chat-bubble:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5) !important;
    border-color: #34d399 !important;
}

/* Chat Window - Simple div based */
.chat-window {
    position: fixed !important;
    right: 20px !important;
    bottom: 105px !important;
    width: 260px !important;
    max-height: 320px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 1050 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.chat-window.hidden {
    display: none !important;
}

.chat-window-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 0.4rem 0.75rem !important;
    display: flex !important;
    justify-content: flex-end !important;
    border-radius: 8px 8px 0 0 !important;
}

.chat-close-btn {
    background: none !important;
    border: none !important;
    font-size: 1.25rem !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.chat-close-btn:hover {
    color: #333 !important;
}

/* Messages container */
.chat-messages-container {
    max-height: 160px !important;
    min-height: 80px !important;
    overflow-y: auto !important;
    padding: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    background: #ffffff !important;
}

/* Custom scrollbar for messages */
.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Individual messages */
.chat-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 14px !important;
    max-width: 80% !important;
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    word-wrap: break-word !important;
}

.chat-message-user {
    background: #0891b2 !important;
    color: #ffffff !important;
    align-self: flex-end !important;
    margin-left: auto !important;
    border-bottom-right-radius: 4px !important;
}

.chat-message-bot {
    background: #f0f0f0 !important;
    color: #1a1a1a !important;
    align-self: flex-start !important;
    margin-right: auto !important;
    border-bottom-left-radius: 4px !important;
    border: none !important;
}

.chat-loading {
    opacity: 0.6 !important;
    font-style: italic !important;
}

/* Chat window footer with input */
.chat-window-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
    border-radius: 0 0 8px 8px !important;
}

/* Chat input field */
.chat-input {
    flex: 1 !important;
    min-width: 0 !important;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 16px !important;
    padding: 0.35rem 0.75rem !important;
    color: #333 !important;
    font-size: 0.75rem !important;
}

.chat-input:focus {
    outline: none !important;
    border-color: #0891b2 !important;
}

.chat-input::placeholder {
    color: #999 !important;
}

/* Send button */
.chat-send-btn {
    background: #0891b2 !important;
    border: none !important;
    padding: 0.35rem 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    border-radius: 16px !important;
    color: #fff !important;
}

.chat-send-btn:hover {
    background: #06b6d4 !important;
}

/* Clear button */
.chat-clear-btn {
    border: 1px solid #ddd !important;
    color: #666 !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    background: #fff !important;
    border-radius: 16px !important;
}

.chat-clear-btn:hover {
    background: #f0f0f0 !important;
    border-color: #ccc !important;
    color: #333 !important;
}

/* Responsive adjustments for chat */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px) !important;
        right: 20px !important;
        bottom: 100px !important;
    }

    .chat-window-footer {
        flex-wrap: wrap !important;
    }

    .chat-input {
        width: 100% !important;
        margin-bottom: 0.4rem !important;
    }

    .chat-send-btn,
    .chat-clear-btn {
        flex: 1 !important;
    }
}

/* ============================================================================
   ML TAB STYLES
   ============================================================================ */

.dd-wrapper .ml-tab-wrapper {
    /* Wrapper for entire ML tab content */
}

.dd-wrapper .ml-main-layout {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
}

.dd-wrapper .ml-nav-wrapper {
    width: 200px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 80px !important;
}

.dd-wrapper .ml-section-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border: none !important;
    padding: 1rem !important;
    border-radius: 0 !important;
}

.dd-wrapper .ml-section-btn {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #e2e8f0 !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    width: 100% !important;
}

.dd-wrapper .ml-section-btn:hover {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.dd-wrapper .ml-section-btn.active {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #047857 !important;
    border-left: 3px solid #047857 !important;
}

.dd-wrapper .ml-content-area {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Section content visibility controlled by inline styles from callback */

/* Responsive - stack nav on smaller screens */
@media (max-width: 900px) {
    .dd-wrapper .ml-main-layout {
        flex-direction: column !important;
    }

    .dd-wrapper .ml-nav-wrapper {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
    }

    .dd-wrapper .ml-section-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .dd-wrapper .ml-section-btn {
        flex: 1 !important;
        min-width: 120px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .dd-wrapper .ml-section-btn.active {
        border-left: 1px solid #047857 !important;
        border-bottom: 3px solid #047857 !important;
    }
}

/* ============================================================================
   MERGED CARD CORNER CLASSES - For title + content pushed together
   ============================================================================ */

/* Title card (top): rounded top corners only */
.dd-wrapper .card.card-top {
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* Content card (bottom): rounded bottom corners only */
.dd-wrapper .card.card-bottom {
    border-radius: 0 0 12px 12px !important;
    border-top: none !important;
}

/* L-shape title: rounded top corners */
.dd-wrapper .card.card-l-title {
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}

/* L-shape nav: no rounded corners */
.dd-wrapper .ml-nav-wrapper.card-l-nav {
    border-radius: 0 !important;
}

/* Tech tabs wrapper: rounded bottom corners */
.dd-wrapper .tech-tabs-wrapper.card-bottom {
    border-radius: 0 0 12px 12px !important;
    border-top: none !important;
}

/* Wind panel: rounded bottom corners */
.dd-wrapper .dd-viewer-wind-panel.card-bottom {
    border-radius: 0 0 12px 12px !important;
}

/* Satellite card: rounded top corners */
.dd-wrapper .dd-satellite-card.card-top {
    border-radius: 12px 12px 0 0 !important;
    margin-bottom: 0 !important;
}
