/**
 * Business Model Intelligence - Main CSS File
 * Additional styles for enhanced user experience
 */

/* Global Font Family - Kickstart Design System */
body, html, p, span, div, button, input, textarea, select, label {
    font-family: var(--ks-font-body, 'DM Sans', sans-serif) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ks-font-display, 'Syne', sans-serif) !important;
}

/* Preserve Font Awesome Icons */
.fas, .far, .fab, .fal, .fad, .fa, [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}

/* Business Model Intelligence Glow Effects */
:root {
    --innvenno-green: #E8001C;
    --innvenno-dark-green: #C5001A;
    --innvenno-light-green: #ff4d5e;
    --innvenno-icon-glow: 0 0 8px rgba(232, 0, 28, 0.6), 0 0 16px rgba(232, 0, 28, 0.3);
    --innvenno-card-glow: 0 4px 20px rgba(232, 0, 28, 0.15), 0 0 40px rgba(232, 0, 28, 0.08);
    --innvenno-gentle-glow: 0 0 12px rgba(232, 0, 28, 0.4), 0 0 24px rgba(232, 0, 28, 0.2);
}

/* Font Awesome Icon Glow Effects */
.fas, .far, .fab, .fal, .fad {
    text-shadow: 0 0 4px rgba(232, 0, 28, 0.3), 0 0 8px rgba(232, 0, 28, 0.15);
    transition: text-shadow 0.3s ease;
}

.fas:hover, .far:hover, .fab:hover, .fal:hover, .fad:hover {
    text-shadow: 0 0 6px rgba(232, 0, 28, 0.5), 0 0 12px rgba(232, 0, 28, 0.25);
}

/* Card Glow Effects - Only on Hover */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(232, 0, 28, 0.25), 0 0 60px rgba(232, 0, 28, 0.15);
}

/* Enhanced Card Glow - Only on Hover */
.enhanced-card {
    transition: box-shadow 0.3s ease;
}

.enhanced-card:hover {
    box-shadow: 0 0 20px rgba(232, 0, 28, 0.6), 0 0 40px rgba(232, 0, 28, 0.3), 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Card Icon Specific Glow - Reduced */
.card-icon, .feature-icon {
    filter: drop-shadow(0 0 3px rgba(232, 0, 28, 0.3));
    transition: filter 0.3s ease;
}

.card-icon:hover, .feature-icon:hover {
    filter: drop-shadow(0 0 8px rgba(232, 0, 28, 0.6));
}

/* Navigation Glow Effects */
.nav-link {
    text-shadow: 0 0 5px rgba(232, 0, 28, 0.3);
    transition: text-shadow 0.3s ease;
}

.nav-link:hover {
    text-shadow: 0 0 10px rgba(232, 0, 28, 0.6);
}

/* Button Glow Effects */
.btn-innvenno {
    box-shadow: 0 0 15px rgba(232, 0, 28, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.btn-innvenno:hover {
    box-shadow: 0 0 25px rgba(232, 0, 28, 0.6), 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hero Title Glow */
.hero-title {
    text-shadow: 0 0 20px rgba(232, 0, 28, 0.4);
}

/* Section Title Glow */
.section-title {
    text-shadow: 0 0 12px rgba(232, 0, 28, 0.3);
}

/* Dark Mode Glow Adjustments */
[data-bs-theme="dark"] .fas, 
[data-bs-theme="dark"] .far, 
[data-bs-theme="dark"] .fab, 
[data-bs-theme="dark"] .fal, 
[data-bs-theme="dark"] .fad {
    text-shadow: 0 0 5px rgba(232, 0, 28, 0.4), 0 0 10px rgba(232, 0, 28, 0.2);
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 10px 35px rgba(232, 0, 28, 0.3), 0 0 70px rgba(232, 0, 28, 0.2);
}

[data-bs-theme="dark"] .enhanced-card:hover {
    box-shadow: 0 0 25px rgba(232, 0, 28, 0.7), 0 0 50px rgba(232, 0, 28, 0.35), 0 15px 40px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .card-icon, 
[data-bs-theme="dark"] .feature-icon {
    filter: drop-shadow(0 0 4px rgba(232, 0, 28, 0.4));
}

[data-bs-theme="dark"] .card-icon:hover, 
[data-bs-theme="dark"] .feature-icon:hover {
    filter: drop-shadow(0 0 10px rgba(232, 0, 28, 0.8));
}

/* Light Mode Glow Adjustments */
[data-bs-theme="light"] .fas, 
[data-bs-theme="light"] .far, 
[data-bs-theme="light"] .fab, 
[data-bs-theme="light"] .fal, 
[data-bs-theme="light"] .fad {
    text-shadow: 0 0 3px rgba(232, 0, 28, 0.25), 0 0 6px rgba(232, 0, 28, 0.1);
}

[data-bs-theme="light"] .card:hover {
    box-shadow: 0 6px 25px rgba(232, 0, 28, 0.2), 0 0 50px rgba(232, 0, 28, 0.1);
}

[data-bs-theme="light"] .enhanced-card:hover {
    box-shadow: 0 0 15px rgba(232, 0, 28, 0.4), 0 0 30px rgba(232, 0, 28, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .card-icon, 
[data-bs-theme="light"] .feature-icon {
    filter: drop-shadow(0 0 2px rgba(232, 0, 28, 0.2));
}

[data-bs-theme="light"] .card-icon:hover, 
[data-bs-theme="light"] .feature-icon:hover {
    filter: drop-shadow(0 0 6px rgba(232, 0, 28, 0.5));
}

/* Accessibility */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#skip-to-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    background-color: var(--ks-red, #E8001C);
    color: #fff;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

#skip-to-content:focus {
    transform: translateY(0);
}

/* Lazy loading styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[src] {
    opacity: 1;
}

/* Form standardization */
.standardized-form .form-group,
.standardized-form .mb-3,
.standardized-form .mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Light Mode Universal Styling */
/* Apply to all routes: /generator, /upload, /idea, /learning, /insights, /chat, /connections, /admin and sub-routes */

/* Font visibility in shapes and cards for light mode */
[data-bs-theme="light"] .card.bg-dark .card-title,
[data-bs-theme="light"] .card.bg-dark .card-text,
[data-bs-theme="light"] .card.bg-dark h1,
[data-bs-theme="light"] .card.bg-dark h2,
[data-bs-theme="light"] .card.bg-dark h3,
[data-bs-theme="light"] .card.bg-dark h4,
[data-bs-theme="light"] .card.bg-dark h5,
[data-bs-theme="light"] .card.bg-dark h6,
[data-bs-theme="light"] .card.bg-dark p,
[data-bs-theme="light"] .card.bg-dark .lead {
    color: #E8001C !important;
}

/* Background sections and headers */
[data-bs-theme="light"] .card-header.bg-dark,
[data-bs-theme="light"] .bg-dark,
[data-bs-theme="light"] .alert.alert-info,
[data-bs-theme="light"] .py-5.bg-dark {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.12) 0%, rgba(232, 0, 28, 0.06) 100%) !important;
}

/* Section titles and headings */
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] .section-title,
[data-bs-theme="light"] .display-4,
[data-bs-theme="light"] .display-5 {
    color: #E8001C !important;
}

/* Admin panel specific styling */
[data-bs-theme="light"] .admin-sidebar,
[data-bs-theme="light"] .admin-content,
[data-bs-theme="light"] .dashboard-card {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.08) 0%, rgba(232, 0, 28, 0.04) 100%) !important;
}

/* Chat and interactive elements */
[data-bs-theme="light"] .chat-container,
[data-bs-theme="light"] .message-bubble,
[data-bs-theme="light"] .insights-panel {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.10) 0%, rgba(232, 0, 28, 0.05) 100%) !important;
}

/* Form elements in light mode */
[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    border-color: #E8001C !important;
    box-shadow: 0 0 0 0.2rem rgba(232, 0, 28, 0.25) !important;
}

/* Learning resources and content areas */
[data-bs-theme="light"] .learning-content,
[data-bs-theme="light"] .video-container,
[data-bs-theme="light"] .document-list {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.06) 0%, rgba(232, 0, 28, 0.03) 100%) !important;
}

/* Generator and upload specific elements */
[data-bs-theme="light"] .generator-container,
[data-bs-theme="light"] .upload-area,
[data-bs-theme="light"] .idea-form {
    background: #ffffff !important;
}

/* Alternating background pattern for light mode */
[data-bs-theme="light"] .container:nth-child(even) {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.05) 0%, rgba(232, 0, 28, 0.02) 100%) !important;
}

/* Connection and external service panels */
[data-bs-theme="light"] .connection-panel,
[data-bs-theme="light"] .service-card {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.08) 0%, rgba(232, 0, 28, 0.04) 100%) !important;
}

/* Ensure text visibility in all contexts */
[data-bs-theme="light"] .text-white,
[data-bs-theme="light"] .text-light {
    color: #E8001C !important;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.15) 0%, rgba(232, 0, 28, 0.08) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--innvenno-green);
    padding: 15px 0;
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Language Selector Styles */
.language-selector {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.08) 0%, rgba(232, 0, 28, 0.04) 100%);
    border: 1px solid rgba(232, 0, 28, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.language-selector label {
    color: #E8001C;
    font-weight: 600;
}

.language-selector select {
    background-color: #2d3748;
    border: 1px solid rgba(232, 0, 28, 0.3);
    color: #E8001C;
}

.language-selector select:focus {
    border-color: var(--innvenno-green);
    box-shadow: 0 0 0 0.2rem rgba(232, 0, 28, 0.25);
}

/* Header and Footer Light Mode Styling */
/* Navbar/Header styling for light mode - solid background, no transparency */
[data-bs-theme="light"] .navbar {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.08) 0%, rgba(232, 0, 28, 0.04) 100%) !important;
    border-bottom: 1px solid rgba(232, 0, 28, 0.2);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure navbar stays solid when scrolling */
[data-bs-theme="light"] .navbar.fixed-top,
[data-bs-theme="light"] .navbar.sticky-top {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.15) 0%, rgba(232, 0, 28, 0.08) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Dark mode navbar - ensure it's also solid */
[data-bs-theme="dark"] .navbar {
    background: #212529 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

[data-bs-theme="dark"] .navbar.fixed-top,
[data-bs-theme="dark"] .navbar.sticky-top {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link {
    color: #E8001C !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link:hover {
    color: #C5001A !important;
}

[data-bs-theme="light"] .navbar-toggler {
    border-color: rgba(232, 0, 28, 0.3);
}

[data-bs-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E8001C' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer styling for light mode */
[data-bs-theme="light"] .footer {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.12) 0%, rgba(232, 0, 28, 0.06) 100%) !important;
    border-top: 1px solid rgba(232, 0, 28, 0.2);
}

[data-bs-theme="light"] .footer h5,
[data-bs-theme="light"] .footer h6,
[data-bs-theme="light"] .footer p,
[data-bs-theme="light"] .footer a {
    color: #E8001C !important;
}

[data-bs-theme="light"] .footer .social-icons a {
    background-color: rgba(232, 0, 28, 0.1) !important;
    color: #E8001C !important;
}

[data-bs-theme="light"] .footer .social-icons a:hover {
    background-color: var(--innvenno-green) !important;
    color: #000 !important;
}

/* Dropdown menus for light mode */
[data-bs-theme="light"] .dropdown-menu {
    background: linear-gradient(135deg, rgba(232, 0, 28, 0.08) 0%, rgba(232, 0, 28, 0.04) 100%) !important;
    border: 1px solid rgba(232, 0, 28, 0.2);
}

[data-bs-theme="light"] .dropdown-item {
    color: #E8001C !important;
}

[data-bs-theme="light"] .dropdown-item:hover {
    background-color: rgba(232, 0, 28, 0.1) !important;
    color: #C5001A !important;
}

.standardized-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.standardized-form .form-control,
.standardized-form .form-select {
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(128, 128, 128, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.standardized-form .form-control:focus,
.standardized-form .form-select:focus {
    border-color: var(--innvenno-green);
    box-shadow: 0 0 0 0.25rem rgba(232, 0, 28, 0.25);
}

.standardized-form .form-check-input:checked {
    background-color: var(--innvenno-green);
    border-color: var(--innvenno-green);
}

/* Light mode form styles */
[data-bs-theme="light"] .standardized-form .form-control,
[data-bs-theme="light"] .standardized-form .form-select {
    background-color: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    color: #333333;
}

[data-bs-theme="light"] .standardized-form .form-control:focus,
[data-bs-theme="light"] .standardized-form .form-select:focus {
    background-color: #ffffff;
    border-color: var(--innvenno-green);
    box-shadow: 0 0 0 0.25rem rgba(232, 0, 28, 0.15);
}

[data-bs-theme="light"] .standardized-form .form-control::placeholder {
    color: #6c757d;
}

/* Dark mode form styles for contrast */
[data-bs-theme="dark"] .standardized-form .form-control,
[data-bs-theme="dark"] .standardized-form .form-select {
    background-color: #2b3035;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
}

[data-bs-theme="dark"] .standardized-form .form-control::placeholder {
    color: #adb5bd;
}

/* Animations for page transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInUp {
    from {
        transform: translateY(10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-10%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(10%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation variations */
.animate-zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

.animate-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Blur Effects for Modals and Dropdowns */
.modal-backdrop {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dropdown-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(232, 0, 28, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(232, 0, 28, 0.1);
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(232, 0, 28, 0.3);
    color: #fff;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #fff !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: rgba(232, 0, 28, 0.2) !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

.dropdown-menu-dark {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(232, 0, 28, 0.2);
}

.modal-content {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(232, 0, 28, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 40px rgba(232, 0, 28, 0.1);
}

[data-bs-theme="dark"] .modal-content {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(232, 0, 28, 0.3);
    color: #fff;
}

[data-bs-theme="dark"] .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.125);
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.125);
}

.modal-content.bg-dark {
    background-color: rgba(33, 37, 41, 0.95) !important;
}

/* Tooltip Blur Effects */
.tooltip {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-bs-theme="dark"] .tooltip .tooltip-inner {
    background-color: rgba(33, 37, 41, 0.95);
    color: #fff;
    border: 1px solid rgba(232, 0, 28, 0.3);
}

[data-bs-theme="dark"] .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(33, 37, 41, 0.95);
}

[data-bs-theme="dark"] .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(33, 37, 41, 0.95);
}

[data-bs-theme="dark"] .bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(33, 37, 41, 0.95);
}

[data-bs-theme="dark"] .bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(33, 37, 41, 0.95);
}

/* Popover Blur Effects */
.popover {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(232, 0, 28, 0.2);
}

[data-bs-theme="dark"] .popover {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(232, 0, 28, 0.3);
    color: #fff;
}

[data-bs-theme="dark"] .popover-header {
    background-color: rgba(232, 0, 28, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.125);
    color: #fff;
}

[data-bs-theme="dark"] .popover-body {
    color: #fff;
}

/* Admin Navigation Styling */
.admin-sidebar {
    background: linear-gradient(135deg, var(--innvenno-green) 0%, var(--innvenno-dark-green) 100%);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(232, 0, 28, 0.15);
}

.admin-sidebar .nav-link {
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #fff !important;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
    color: #fff !important;
}

.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: var(--innvenno-green) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Navigation Fixes */
[data-bs-theme="dark"] .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-nav .nav-link:focus {
    color: #fff !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--innvenno-green) !important;
}

[data-bs-theme="dark"] .navbar-brand {
    color: #fff !important;
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Enhanced card styling */
.enhanced-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.enhanced-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(232, 0, 28, 0.6), 0 0 40px rgba(232, 0, 28, 0.3), 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Dark Mode Card and UI Elements */
[data-bs-theme="dark"] .card {
    background-color: rgba(33, 37, 41, 0.95);
    border-color: rgba(232, 0, 28, 0.2);
    color: #fff;
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(232, 0, 28, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.125);
    color: #fff;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: rgba(33, 37, 41, 0.95);
    border-color: rgba(255, 255, 255, 0.125);
    color: #fff;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: rgba(232, 0, 28, 0.1);
}

[data-bs-theme="dark"] .list-group-item.active {
    background-color: var(--innvenno-green);
    border-color: var(--innvenno-green);
    color: #000;
}

[data-bs-theme="dark"] .table {
    color: #fff;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > td {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .table th {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

[data-bs-theme="dark"] .table td {
    border-color: rgba(255, 255, 255, 0.125);
}

/* Dark Mode Form Elements */
[data-bs-theme="dark"] .form-control {
    background-color: rgba(33, 37, 41, 0.8);
    border-color: rgba(232, 0, 28, 0.3);
    color: #fff;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: rgba(33, 37, 41, 0.9);
    border-color: var(--innvenno-green);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(232, 0, 28, 0.25);
}

[data-bs-theme="dark"] .form-select {
    background-color: rgba(33, 37, 41, 0.8);
    border-color: rgba(232, 0, 28, 0.3);
    color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Breadcrumb Dark Mode */
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: var(--innvenno-green);
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75);
}

/* Social Media Icons Styling */
.social-icons a {
    color: var(--innvenno-green) !important;
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--innvenno-dark-green) !important;
    transform: scale(1.1);
}

/* Dark mode social icons */
[data-bs-theme="dark"] .social-icons a {
    color: var(--innvenno-green) !important;
}

[data-bs-theme="dark"] .social-icons a:hover {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Contact Info Styling */
.contact-info a {
    color: var(--innvenno-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--innvenno-light-green);
    text-decoration: underline;
}

[data-bs-theme="dark"] .contact-info a {
    color: var(--innvenno-green);
}

[data-bs-theme="dark"] .contact-info a:hover {
    color: #ffffff;
}

/* Phone number styling in navbar */
.nav-link[href^="tel:"] {
    background: rgba(232, 0, 28, 0.1);
    border-radius: 20px;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
}

.nav-link[href^="tel:"]:hover {
    background: rgba(232, 0, 28, 0.2);
    transform: scale(1.05);
}

[data-bs-theme="dark"] .nav-link[href^="tel:"] {
    background: rgba(232, 0, 28, 0.15);
    color: var(--innvenno-green) !important;
}

[data-bs-theme="dark"] .nav-link[href^="tel:"]:hover {
    background: rgba(232, 0, 28, 0.25);
    color: #ffffff !important;
}

/* Contact phone styling */
.nav-link[href^="tel:"] {
    background: rgba(232, 0, 28, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link[href^="tel:"]:hover {
    background: rgba(232, 0, 28, 0.2);
    transform: scale(1.05);
}

/* Enhanced popup styling */
.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Popup activity management */
.popup-blocked {
    opacity: 0.5;
    pointer-events: none;
}

.enhanced-card .card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    transition: background-color 0.3s ease;
}

.enhanced-card .card-body {
    padding: 1.5rem;
    transition: background-color 0.3s ease;
}

.enhanced-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    padding: 1.25rem 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Light mode card styles */
[data-bs-theme="light"] .enhanced-card {
    background-color: #ffffff;
}

[data-bs-theme="light"] .enhanced-card:hover {
    box-shadow: 0 0 15px rgba(232, 0, 28, 0.4), 0 0 30px rgba(232, 0, 28, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="light"] .enhanced-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .enhanced-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark mode card styles */
[data-bs-theme="dark"] .enhanced-card {
    background-color: #2b3035;
}

[data-bs-theme="dark"] .enhanced-card:hover {
    box-shadow: 0 0 25px rgba(232, 0, 28, 0.7), 0 0 50px rgba(232, 0, 28, 0.35), 0 15px 40px rgba(0, 0, 0, 0.25) !important;
}

[data-bs-theme="dark"] .enhanced-card .card-header {
    background-color: #212529;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .enhanced-card .card-footer {
    background-color: #212529;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhanced button styling */
.enhanced-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.enhanced-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1)
    );
    transition: 0.5s;
    pointer-events: none;
}

.enhanced-button:hover:before {
    left: 100%;
}

/* Button hover effects */
.btn-hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Theme toggle styling */
.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--innvenno-green);
}

.theme-toggle i {
    font-size: 1.25rem;
    color: var(--innvenno-green);
}

/* Light theme specific styles */
[data-bs-theme="light"] {
    /* General light mode styles */
    --card-shadow-color: rgba(0, 0, 0, 0.1);
    --card-hover-shadow-color: rgba(0, 0, 0, 0.15);
    --card-border-color: rgba(0, 0, 0, 0.05);
    --button-shadow-color: rgba(0, 0, 0, 0.1);
    --button-hover-shadow-color: rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] {
    /* General dark mode styles */
    --card-shadow-color: rgba(0, 0, 0, 0.5);
    --card-hover-shadow-color: rgba(0, 0, 0, 0.7);
    --card-border-color: rgba(255, 255, 255, 0.05);
    --button-shadow-color: rgba(0, 0, 0, 0.3);
    --button-hover-shadow-color: rgba(0, 0, 0, 0.5);
}

/* Theme toggle styles for light mode */
[data-bs-theme="light"] .theme-toggle {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Enhanced card styling for light mode - Using Business Model Intelligence Green */
[data-bs-theme="light"] .enhanced-card {
    border: 1px solid var(--card-border-color);
}

[data-bs-theme="light"] .enhanced-card:hover {
    box-shadow: 0 0 15px rgba(232, 0, 28, 0.4), 0 0 30px rgba(232, 0, 28, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced button styling for light mode */
[data-bs-theme="light"] .enhanced-button {
    box-shadow: 0 4px 15px var(--button-shadow-color);
}

[data-bs-theme="light"] .enhanced-button:hover {
    box-shadow: 0 8px 25px var(--button-hover-shadow-color);
}

/* Light mode specific gradient for button hover effect */
[data-bs-theme="light"] .enhanced-button:before {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.07),
        rgba(0, 0, 0, 0.03)
    );
}

/* Page section navigation */
.page-section-nav {
    margin: 1rem 0;
}

.page-section-nav .nav-link {
    color: var(--bs-body-color);
    border-radius: 30px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.page-section-nav .nav-link:hover {
    background-color: rgba(232, 0, 28, 0.1);
    color: var(--innvenno-green);
    transform: translateY(-2px);
}

.page-section-nav .nav-link.active {
    background-color: var(--innvenno-green);
    color: #000 !important;
    font-weight: 600;
}

/* Light mode navigation styles */
[data-bs-theme="light"] .page-section-nav .nav-link {
    color: #343a40;
}

[data-bs-theme="light"] .page-section-nav .nav-link:hover {
    background-color: rgba(232, 0, 28, 0.15);
    color: #E8001C;
}

[data-bs-theme="light"] .page-section-nav .nav-link.active {
    background-color: var(--innvenno-green);
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 0, 28, 0.3);
}

/* Section headings with better contrast in light mode */
[data-bs-theme="light"] h1, 
[data-bs-theme="light"] h2, 
[data-bs-theme="light"] h3, 
[data-bs-theme="light"] h4, 
[data-bs-theme="light"] h5, 
[data-bs-theme="light"] h6 {
    color: #212529;
}

[data-bs-theme="light"] .text-muted {
    color: #6c757d !important;
}

/* Improve text contrast in light mode */
[data-bs-theme="light"] body {
    color: #333333;
}

/* Custom file input */
.custom-file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.custom-file-upload .file-upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--innvenno-green);
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-file-upload:hover .file-upload-label {
    background-color: var(--innvenno-dark-green);
}

.file-name-display {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Business model visualization improvements */
.model-section {
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-bs-theme="light"] .model-section {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .model-section {
    background-color: #343a40;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Model components and elements */
.model-component {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-bs-theme="light"] .model-component {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .model-component:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .model-component {
    background-color: #2b3035;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .model-component:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Better code block readability in light mode */
[data-bs-theme="light"] pre, 
[data-bs-theme="light"] code {
    background-color: #f1f3f5;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] pre, 
[data-bs-theme="dark"] code {
    background-color: #2b3035;
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Improved table styles for light mode */
[data-bs-theme="light"] .table {
    color: #333333;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .table thead th {
    background-color: #f8f9fa;
    color: #212529;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Custom styles for Business Model Intelligence - Mobile First Responsive Design */

/* Mobile-first base styles */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-group .btn {
        width: auto;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .business-model-card {
        font-size: 0.9rem;
    }

    .next-steps-section .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .card:hover {
        transform: none; /* Disable hover effects on touch devices */
    }
}

/* Progressive Enhancement for larger screens */
@media (min-width: 768px) {
    .help-float {
        display: block;
    }

    .breadcrumb {
        display: block !important;
    }
}

/* Accessibility improvements */
.focus-visible:focus {
    outline: 3px solid var(--innvenno-green);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--innvenno-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}