/* Venture Lab AI - Main Stylesheet */
/* Brand colors are injected by Branding.php - these are fallbacks */

:root {
    /* Map to branding variables with fallbacks */
    --primary-color: var(--brand-primary, #dc2626);
    --secondary-color: var(--brand-secondary, #1f2937);
    --accent-color: var(--brand-accent, #2563eb);
    --primary-color-dark: var(--brand-primary-dark, #b91c1c);
    --primary-color-light: var(--brand-primary-light, #ef4444);
    --secondary-color-light: var(--brand-secondary-light, #374151);
    --accent-color-light: var(--brand-accent-light, #3b82f6);

    /* Utility colors (not branded) */
    --success-color: #059669;
    --success-color-dark: #047857;
    --danger-color: #ef4444;
    --danger-color-dark: #dc2626;
    --warning-color: #f59e0b;
    --light-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --dark-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
}

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

/* Header Styles */
header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
    z-index: 100000;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100001;
    min-height: 60px;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo span {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-links a:active {
    transform: translateY(0);
}

/* Projects Dropdown */
.projects-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.projects-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 6px;
}

.projects-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.projects-trigger.active {
    background: rgba(255, 255, 255, 0.15);
}

.projects-trigger .dropdown-arrow {
    transition: transform 0.3s ease;
}

.projects-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.projects-menu {
    position: fixed;
    top: auto;
    right: auto;
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    min-width: 250px;
    max-width: 320px;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    padding: 0.5rem 0;
    z-index: 1000;
    pointer-events: none;
}

.projects-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.projects-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #1a1a1a !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.projects-menu-item:hover {
    background: var(--light-bg);
    color: var(--primary-color) !important;
    transform: translateX(2px);
}

.projects-menu-item svg {
    color: #374151 !important;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.projects-menu-item:hover svg {
    color: var(--primary-color) !important;
}

.projects-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.projects-menu-project {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.projects-menu-project:hover {
    background: #f3f4f6;
}

/* ============================================
   VENTURE HUB 5-TAB NAVIGATION
   ============================================ */

.venture-hub-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-tab {
    position: relative;
}

.hub-tab-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hub-tab-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.hub-tab-trigger.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.hub-tab.locked .hub-tab-trigger {
    opacity: 0.5;
    cursor: not-allowed;
}

.hub-tab.locked .hub-tab-trigger:hover {
    background: transparent;
}

.hub-tab-trigger svg {
    flex-shrink: 0;
}

.hub-tab-trigger .lock-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    margin-left: -2px;
}

/* Hub Tab Dropdown Menus */
.hub-tab-menu {
    position: fixed;
    top: auto;
    left: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    z-index: 1000;
    pointer-events: none;
}

.hub-tab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hub-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937 !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin: 0 0.5rem;
    border-radius: 8px;
}

.hub-menu-item:hover {
    background: #f3f4f6;
    color: var(--primary-color, #6366f1) !important;
}

.hub-menu-item svg {
    color: #6b7280;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.hub-menu-item:hover svg {
    color: var(--primary-color, #6366f1);
}

.hub-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.hub-menu-label {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hub-menu-project {
    justify-content: space-between;
}

.hub-menu-project .project-progress {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

/* Locked menu state */
.hub-menu-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #9ca3af;
    text-align: center;
}

.hub-menu-locked svg {
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.hub-menu-locked span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Stage Badge */
.stage-badge-container {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

a.stage-badge,
.stage-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--stage-color, #6366f1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.stage-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stage-icon {
    font-size: 0.875rem;
}

.stage-label {
    letter-spacing: 0.02em;
}

/* Dashboard Link Style */
.nav-dashboard-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dashboard-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Current Project Indicator */
.current-project-indicator {
    display: flex;
    align-items: center;
}

.project-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 0.85rem;
}

.project-indicator .project-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.project-indicator .project-name {
    color: white;
    font-weight: 600;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-indicator .switch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.project-indicator .switch-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* More/Legacy Menu Dropdown */
.more-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.more-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.more-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.more-trigger.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.more-trigger .dropdown-arrow {
    transition: transform 0.2s ease;
}

.more-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.more-menu {
    position: fixed;
    min-width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100001;
    padding: 0.5rem 0;
    max-height: 70vh;
    overflow-y: auto;
}

.more-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-menu .more-menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af !important;
    padding: 0.5rem 1rem 0.25rem;
    background: transparent;
}

.more-menu .more-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #374151 !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.15s ease;
    background: transparent;
}

.more-menu .more-menu-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08)) !important;
    color: #6366f1 !important;
    transform: none;
}

.more-menu .more-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    stroke: #374151;
}

.more-menu .more-menu-item:hover svg {
    opacity: 1;
    stroke: #6366f1;
}

.more-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.more-menu .more-menu-project {
    justify-content: space-between;
}

.more-menu .more-menu-project .project-progress {
    font-size: 0.75rem;
    color: #9ca3af !important;
    font-weight: 600;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 100002;
    border-radius: 6px;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.profile-trigger.active {
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    border-color: white;
    transform: scale(1.05);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.profile-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: fixed;
    top: auto;
    right: auto;
    background: #ffffff !important; /* Explicit white background for maximum contrast - IMPORTANT */
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb; /* Explicit border color */
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100003;
    pointer-events: none;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #1a1a1a !important; /* Dark black for better visibility - IMPORTANT */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.profile-menu-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(2px);
}

.profile-menu-item svg {
    color: #374151 !important; /* Dark gray for better visibility - IMPORTANT */
    transition: color 0.2s ease;
}

.profile-menu-item:hover svg {
    color: var(--primary-color);
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

.logout-item:hover {
    background: #fef2f2;
    color: var(--danger-color);
}

.logout-item:hover svg {
    color: var(--danger-color);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.notification-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.notification-trigger.active {
    background: rgba(255, 255, 255, 0.25);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary-color);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-menu {
    position: fixed;
    top: auto;
    right: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    width: 320px;
    max-height: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100003;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.notification-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
}

.notification-header .mark-all-read {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-header .mark-all-read:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 280px;
}

.notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.notification-item.unread:hover {
    background: #e0f2fe;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 1rem;
    color: #6366f1;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification-preview {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.notification-time {
    font-size: 0.7rem;
    color: #94a3b8;
}

.notification-empty,
.notification-loading {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

.notification-empty svg {
    display: block;
    margin: 0 auto 0.5rem;
    opacity: 0.4;
    stroke: #64748b;
}

.notification-footer {
    display: block;
    padding: 0.875rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.notification-footer:hover {
    background: #f1f5f9;
    color: #6366f1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100004;
    align-self: center;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Card Component */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card h1, .card h2, .card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Buttons - Flat Design System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color-dark);
}

.btn-secondary {
    background: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color-light);
}

.btn-info {
    background: var(--secondary-color);
}

.btn-info:hover {
    background: var(--secondary-color-light);
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: var(--success-color-dark);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: var(--danger-color-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--success-color);
    transition: width 0.3s ease;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Chat Interface */
.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f9f9f9;
}

.chat-input {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

.message.user {
    background: #e3f2fd;
    margin-left: 20%;
}

.message.assistant {
    background: white;
    margin-right: 20%;
    border: 1px solid var(--border-color);
}

.message strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: #f9f9f9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 2rem 0 1rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        position: relative;
    }
    
    .projects-dropdown {
        width: 100%;
    }
    
    .projects-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.875rem 1rem;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .projects-trigger:hover {
        background: var(--light-bg);
    }
    
    .projects-menu {
        position: static;
        transform: none;
        background: var(--card-bg) !important;
        border: none;
        box-shadow: none;
        max-width: 100%;
        border-radius: 0;
        padding: 0.5rem;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .projects-menu.active {
        display: block;
    }

    .projects-menu-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }

    /* Venture Hub Mobile Styles */
    .venture-hub-tabs {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .hub-tab {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hub-tab-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 0;
    }

    .hub-tab-trigger span {
        flex: 1;
        text-align: left;
    }

    .hub-tab-menu {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.2) !important;
        border: none;
        box-shadow: none;
        max-width: 100%;
        border-radius: 0;
        padding: 0.5rem 1rem;
        opacity: 1;
        visibility: visible;
        display: none;
        margin: 0;
    }

    .hub-tab-menu.active {
        display: block;
    }

    .hub-menu-item {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.75rem 1rem;
        margin: 0;
        border-radius: 6px;
    }

    .hub-menu-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
    }

    .hub-menu-item svg {
        color: rgba(255, 255, 255, 0.7);
    }

    .hub-menu-divider {
        background: rgba(255, 255, 255, 0.1);
    }

    .hub-menu-label {
        color: rgba(255, 255, 255, 0.5);
    }

    .hub-menu-locked {
        color: rgba(255, 255, 255, 0.5);
        padding: 1.5rem 1rem;
    }

    .stage-badge-container {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-left: 0;
    }

    .stage-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 100005;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-radius: 0;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .logo img {
        height: 35px;
        border-radius: 3px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .logo span {
        font-size: 0.8rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .profile-name {
        display: none;
    }

    .profile-trigger {
        padding: 0.5rem;
        gap: 0.5rem;
        border: none;
    }

    .profile-menu {
        right: -20px;
        min-width: 180px;
    }

    .profile-menu-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }

    /* Notification bell mobile styles */
    .notification-bell {
        margin-right: 0.25rem;
    }

    .notification-trigger {
        width: 36px;
        height: 36px;
    }

    .notification-menu {
        position: fixed;
        left: 10px !important;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    /* More dropdown mobile styles */
    .more-dropdown {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .more-trigger {
        width: 90%;
        justify-content: center;
        padding: 0.75rem 1rem;
        margin: 0.5rem auto;
    }

    .more-menu {
        position: fixed;
        left: 10px !important;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
        min-width: auto;
    }

    .grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        width: 100%;
        text-align: left;
    }
    
    .message.user,
    .message.assistant {
        margin-left: 0;
        margin-right: 0;
    }
    
    .chat-container {
        height: 400px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }