/* ===========================================
   DESIGN FIXES FOR OUTLIER ALPHA WEBSITE
   =========================================== */

/* Fix 1: Logo and Profile Section */
.profile-section {
    text-align: center;
    padding: 1.5rem 0 2rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    position: relative;
}

.profile-avatar {
    margin-bottom: 1rem;
}

.profile-avatar img.logo-image {
    width: 80px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

.profile-name {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: #1a202c !important;
    line-height: 1.2 !important;
}

.profile-title {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
}

/* Fix 2: Education Credentials Compact Design */
.education-credentials {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
    margin: 1rem 0 !important;
}

.credential-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.75rem !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.credential-group:last-child {
    margin-bottom: 0 !important;
}

.credential-group i {
    color: #2563eb !important;
    font-size: 0.75rem !important;
    width: 12px !important;
    flex-shrink: 0 !important;
}

/* Fix 3: Profile Stats */
.profile-stats {
    margin-top: 1rem;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.125rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Fix 4: Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute !important;
    top: 1rem !important;
    right: -15px !important;
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

.sidebar-toggle:hover {
    background: #1d4ed8 !important;
    transform: scale(1.1) !important;
}

.sidebar-toggle i {
    transition: transform 0.3s ease !important;
}

/* Fix 5: Sidebar Minimized State */
.sidebar {
    width: 320px !important;
    transition: width 0.3s ease !important;
    overflow: visible !important;
}

.sidebar.minimized {
    width: 60px !important;
}

.sidebar.minimized .sidebar-content > *:not(.profile-section) {
    opacity: 0 !important;
    transform: translateX(-20px) !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

.sidebar.minimized .profile-section {
    padding: 1rem 0 !important;
}

.sidebar.minimized .profile-section > *:not(.profile-avatar) {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.3s ease !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.sidebar.minimized .profile-avatar img.logo-image {
    width: 32px !important;
    height: 32px !important;
    margin: 0 auto !important;
}

/* Fix 6: Main Content Adjustment */
.main-wrapper {
    margin-left: 320px !important;
    transition: margin-left 0.3s ease !important;
}

.main-wrapper.sidebar-minimized {
    margin-left: 60px !important;
}

/* Fix 7: Navigation Links */
.sidebar-nav {
    margin: 1.5rem 0;
}

.nav-links {
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-item {
    margin: 0 !important;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-link:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563eb !important;
    transform: translateX(4px) !important;
}

.nav-link.active {
    background: #2563eb !important;
    color: white !important;
    font-weight: 600 !important;
}

.nav-link i {
    width: 18px !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.nav-counter {
    margin-left: auto !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
}

.nav-link.active .nav-counter {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Fix 8: Research Categories (Hashtags) */
.research-categories {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.categories-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.hashtag-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

.hashtag-link {
    background: #f1f5f9 !important;
    color: #64748b !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 1rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-block !important;
}

.hashtag-link:hover {
    background: #2563eb !important;
    color: white !important;
    transform: translateY(-1px) !important;
    border-color: #2563eb !important;
}

.hashtag-link.inactive {
    opacity: 0.6 !important;
    cursor: default !important;
}

.hashtag-link.inactive:hover {
    background: #f1f5f9 !important;
    color: #64748b !important;
    transform: none !important;
    border-color: #e2e8f0 !important;
}

/* Fix 9: Widget Styles */
.market-widget,
.updates-widget,
.resources-preview {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.widget-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.widget-title i {
    color: #2563eb !important;
    font-size: 0.875rem !important;
}

/* Fix 10: Market Indicators */
.market-indicators {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.indicator {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem !important;
    transition: background 0.2s ease !important;
    font-size: 0.8rem !important;
}

.indicator:hover {
    background: #f8fafc !important;
}

.indicator-label {
    color: #64748b !important;
    font-weight: 500 !important;
}

.indicator-value {
    color: #374151 !important;
    font-weight: 600 !important;
}

.indicator-change {
    font-weight: 600 !important;
    font-size: 0.7rem !important;
}

.indicator-change.positive {
    color: #059669 !important;
}

.indicator-change.negative {
    color: #dc2626 !important;
}

/* Fix 11: Social Links */
.social-section {
    margin-bottom: 1.5rem;
}

.social-section h4 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.75rem !important;
}

.social-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    color: #64748b !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
}

.social-link:hover {
    background: #f8fafc !important;
    color: #374151 !important;
    transform: translateX(4px) !important;
    border-color: #cbd5e0 !important;
}

.social-link i {
    font-size: 0.875rem !important;
    width: 16px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.social-stat {
    margin-left: auto !important;
    font-size: 0.7rem !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
}

.social-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.08) !important;
    color: #0a66c2 !important;
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.08) !important;
    color: #1da1f2 !important;
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.08) !important;
    color: #ff0000 !important;
}

.social-link.contact:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #10b981 !important;
}

/* Fix 12: AI Assistant Widget */
.ai-assistant-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

.ai-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.ai-header h4 {
    margin: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: white !important;
}

.ai-description {
    margin-bottom: 0.75rem !important;
    opacity: 0.9 !important;
    font-size: 0.8rem !important;
}

.ai-trigger-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: center !important;
}

.ai-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Fix 13: Responsive Design */
@media (max-width: 1024px) {
    .main-wrapper {
        margin-left: 0 !important;
    }
    
    .main-wrapper.sidebar-minimized {
        margin-left: 0 !important;
    }
    
    .sidebar {
        transform: translateX(-100%) !important;
        position: fixed !important;
        z-index: 1000 !important;
        height: 100vh !important;
        width: 320px !important;
    }
    
    .sidebar.open {
        transform: translateX(0) !important;
    }
    
    .sidebar.minimized {
        transform: translateX(-100%) !important;
        width: 320px !important;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        z-index: 1001 !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.5rem !important;
        padding: 0.75rem !important;
        cursor: pointer !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-toggle:hover {
        background: #2563eb !important;
        color: white !important;
    }
    
    .top-bar {
        padding-left: calc(1rem + 60px) !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px !important;
    }
    
    .sidebar-content {
        padding: 0 1rem !important;
    }
    
    .profile-avatar img.logo-image {
        width: 60px !important;
    }
    
    .profile-name {
        font-size: 1.125rem !important;
    }
    
    .credential-group {
        font-size: 0.7rem !important;
    }
}

/* Fix 14: Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fix 15: Hover State Improvements */
.sidebar-toggle:hover i {
    transform: rotate(180deg) !important;
}

.nav-link:hover i {
    transform: scale(1.1) !important;
}

/* Fix 16: Focus States for Accessibility */
.sidebar-toggle:focus,
.nav-link:focus,
.social-link:focus,
.hashtag-link:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
}

/* Fix 17: Loading States */
.sidebar-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
}

.loading .sidebar-content {
    opacity: 0 !important;
    transform: translateY(20px) !important;
}

/* Fix 18: Sidebar Footer */
.sidebar-footer {
    margin-top: auto !important;
    padding-top: 1rem !important;
    text-align: center !important;
}

.disclaimer-mini {
    color: #9ca3af !important;
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
}