/* Custom CSS for MyIP - Purple/White Theme */

:root {
    --primary-purple: #6f42c1;
    --secondary-purple: #8e44ad;
    --light-purple: #e8d5f7;
    --dark-purple: #4a148c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-muted: #6c757d;
    --admin-primary: #4F8A8B;
    --admin-accent: #FBD46D;
    --admin-info: #3A4750;
    --admin-success: #43E97B;
    --admin-warning: #F76B1C;
    --admin-bg: #F7F7F7;
    --admin-card: #FFFFFF;
    
    /* Light theme variables (default) */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --sidebar-bg: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Prevent flash of unstyled content */
html {
    background-color: var(--bg-primary, #f8f9fa);
}

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Emergency fallback to prevent white page */
body:not(.theme-applied) {
    opacity: 1 !important;
    background-color: var(--bg-primary, #f8f9fa) !important;
    color: var(--text-primary, #212529) !important;
}

/* Ensure content is always visible after a reasonable time */
@media (prefers-reduced-motion: no-preference) {
    body {
        animation: ensure-visible 0.2s ease-out forwards;
    }
}

@keyframes ensure-visible {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Purple Theme Colors */
.bg-purple {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple)) !important;
}

.text-purple {
    color: var(--primary-purple) !important;
}

.btn-primary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
    animation: glow 2s ease-in-out infinite;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-purple);
    border-color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    background-image: url('/images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(111, 66, 193, 0.85), 
        rgba(142, 68, 173, 0.75)
    );
    z-index: 1;
}

/* Animated background elements */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Floating particles */
.hero-section .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-section .floating-particles::before,
.hero-section .floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.hero-section .floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-section .floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

/* Animated text colors */
.hero-section .display-4 {
    background: linear-gradient(45deg, 
        #ffffff, 
        #e8d5f7, 
        #ffffff, 
        #f8f9fa, 
        #ffffff
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textColorShift 4s ease-in-out infinite;
}

.hero-section .lead {
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.9), 
        rgba(232, 213, 247, 0.8), 
        rgba(255, 255, 255, 0.9)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textColorShift 5s ease-in-out infinite;
}

/* Keyframe animations */
@keyframes backgroundShift {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.9;
    }
}

@keyframes textColorShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Additional floating elements */
.hero-section .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-section .floating-elements::before {
    content: '⚡';
    position: absolute;
    top: 15%;
    left: 5%;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
    animation: floatElement 7s ease-in-out infinite;
}

.hero-section .floating-elements::after {
    content: '🔒';
    position: absolute;
    top: 75%;
    right: 8%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    animation: floatElement 8s ease-in-out infinite reverse;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) rotate(-3deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-10px) rotate(8deg);
        opacity: 0.8;
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(111, 66, 193, 0.3); }
    50% { box-shadow: 0 0 40px rgba(111, 66, 193, 0.6); }
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.2);
    border-color: var(--primary-purple);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Step Cards */
.step-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.2);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(111, 66, 193, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image i {
        font-size: 8rem !important;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.form-label {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Card Animations */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.15);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Team Section */
.team-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(111, 66, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(111, 66, 193, 0.2);
    border-color: var(--primary-purple);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: 4px solid var(--white);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.team-card:hover .avatar-placeholder {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: block;
}

.team-photo:hover {
    transform: scale(1.05);
}

.avatar-placeholder i {
    font-size: 3rem;
    color: var(--white);
    opacity: 0.9;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.8), rgba(147, 112, 219, 0.8));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .avatar-placeholder::before {
    opacity: 0.3;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-purple) !important;
    transform: translateY(-2px);
}

/* Registration Section */
.registration-section {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    background-image: url('/images/register-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(111, 66, 193, 0.8), 
        rgba(142, 68, 173, 0.7)
    );
    z-index: 1;
}

.registration-section .container {
    position: relative;
    z-index: 2;
}

.registration-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
}

.registration-form .form-floating {
    position: relative;
}

.registration-form .form-control {
    border: 2px solid rgba(111, 66, 193, 0.1);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.registration-form .form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    background: rgba(255, 255, 255, 1);
}

.registration-form .form-floating label {
    color: var(--text-muted);
    font-weight: 500;
}

.registration-form .form-floating > .form-control:focus ~ label,
.registration-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-purple);
    font-weight: 600;
}

.registration-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.registration-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
    background: linear-gradient(135deg, var(--dark-purple), var(--primary-purple));
}

.registration-form .form-check-input:checked {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.registration-form .form-check-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Animated background elements for registration */
.registration-section .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.registration-section .floating-particles::before,
.registration-section .floating-particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.registration-section .floating-particles::before {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.registration-section .floating-particles::after {
    top: 70%;
    right: 20%;
    animation-delay: 4s;
}

.registration-section .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.registration-section .floating-elements::before {
    content: '👤';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    animation: floatElement 10s ease-in-out infinite;
}

.registration-section .floating-elements::after {
    content: '🔐';
    position: absolute;
    top: 80%;
    right: 12%;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.25);
    animation: floatElement 12s ease-in-out infinite reverse;
}

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

/* Success alert styling */
.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #155724;
    border-radius: 12px;
}

.alert-success .btn-close {
    filter: invert(1) brightness(0.7);
}

/* Error alert styling */
.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #721c24;
    border-radius: 12px;
}

.alert-danger .btn-close {
    filter: invert(1) brightness(0.7);
}

/* Success page styling */
.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

.success-circle i {
    color: white;
    font-size: 2rem;
    animation: successCheck 0.6s ease-out 0.3s both;
}

.success-details {
    background: rgba(111, 66, 193, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.btn-outline-purple {
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-purple:hover {
    color: white;
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    }
}

@keyframes successCheck {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Dashboard Layout */
.dashboard-body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-group-toggle span,
.sidebar.collapsed .nav-sublink span,
.sidebar.collapsed .user-name,
.sidebar.collapsed .user-email,
.sidebar.collapsed .logout-btn span {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    position: fixed;
    top: 1.5rem;
    left: 70px;
    z-index: 1002;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
}

.sidebar.collapsed .sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-purple));
}

.sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-group-toggle {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .nav-link i,
.sidebar.collapsed .nav-group-toggle i:first-child {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar.collapsed .nav-group-arrow {
    display: none;
}

.sidebar.collapsed .nav-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-group:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
}

.sidebar.collapsed .nav-sublink {
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.collapsed .sidebar-brand i {
    margin-right: 0;
    font-size: 1.5rem;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

.sidebar.collapsed .logout-btn {
    justify-content: center;
    padding: 0.5rem;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-text {
    margin-left: 0.5rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

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

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

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

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}

.nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Navigation Group Styles */
.nav-group {
    position: relative;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.nav-group-toggle.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-group-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-group-toggle[aria-expanded="true"] .nav-group-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    background-color: rgba(0, 0, 0, 0.1);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    margin-left: 0;
    padding-left: 0;
    list-style: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.nav-submenu.show {
    max-height: 300px;
    opacity: 1;
}

.nav-subitem {
    margin: 0;
}

.nav-sublink {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: none;
    position: relative;
}

.nav-sublink:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.nav-sublink.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 500;
}

.nav-sublink i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.nav-sublink::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.nav-sublink:hover::before,
.nav-sublink.active::before {
    background-color: white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.user-name-link:hover {
    color: var(--light-purple);
    transform: translateY(-1px);
}

.user-name-link .user-name {
    transition: all 0.3s ease;
}

.user-name-link:hover .user-name {
    color: var(--light-purple);
}

.user-email {
    font-size: 0.8rem;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.logout-btn i {
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: 70px;
}

.dashboard-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 1.2rem;
    margin-right: 1rem;
    cursor: pointer;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
}

.dashboard-main {
    padding: 2rem;
}

/* Dashboard Cards */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.2);
    animation: slideInDown 0.6s ease-out;
}

.welcome-content {
    flex: 1;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

/* Force left alignment for welcome content on desktop */
@media (min-width: 769px) {
    .welcome-content {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .welcome-content h2,
    .welcome-content p,
    .welcome-content div {
        text-align: left !important;
    }
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    opacity: 0.9;
    margin: 0 0 1rem 0;
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.user-email-display,
.last-login {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.user-email-display i,
.last-login i {
    width: 16px;
    opacity: 0.8;
}

/* Idea Submission Page Styles */
.idea-submission-card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.idea-submission-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.help-card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.help-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 15px 15px 0 0 !important;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tip-content h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

/* Patent Search Results Styles */
.search-results-card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.search-results-card .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.patent-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.patent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.patent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.patent-number {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.relevance-score .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.patent-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.patent-abstract {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.patent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

.patent-actions {
    display: flex;
    gap: 0.5rem;
}

/* Page Header Styles */
.page-header {
    background: none;
    border-bottom: 1.5px solid #e9ecef;
    margin-bottom: 2rem !important;
    padding-bottom: 0.5rem;
    box-shadow: none;
    display: flex;
    align-items: center;
    min-height: unset;
}

.page-header .page-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 8px rgba(111,66,193,0.06);
}

.page-header .page-title i {
    font-size: 2.2rem;
    color: var(--primary-purple);
    margin-right: 0.5rem;
}

.page-header p.text-muted {
    font-size: 1rem;
    color: #8a8fa3 !important;
    margin-bottom: 0;
    margin-top: 0.25rem;
    font-weight: 400;
}

.page-header .btn-primary.btn-lg {
    font-size: 1.05rem;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(111,66,193,0.08);
}

.page-header .btn-primary.btn-lg i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 1.4rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0.25rem;
    }
    .page-header .btn-primary.btn-lg {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* Form Enhancements */
.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loading Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spinner-border.text-purple {
    color: #667eea !important;
}

.welcome-icon {
    font-size: 3rem;
    opacity: 0.8;
    animation: bounce 2s ease-in-out infinite;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(111, 66, 193, 0.02);
}

.card-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    display: flex;
    align-items: center;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
}

.stat-card-primary::before {
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
}

.stat-card-success::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 0.25rem 0;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.stat-change {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

.stat-change.neutral {
    color: var(--text-muted);
}

.stat-change i {
    margin-right: 0.25rem;
}

/* Idea List */
.idea-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(111, 66, 193, 0.02);
    border: 1px solid rgba(111, 66, 193, 0.1);
    transition: all 0.3s ease;
}

.idea-item:hover {
    background: rgba(111, 66, 193, 0.05);
    transform: translateX(5px);
}

.idea-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.idea-content {
    flex: 1;
}

.idea-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0 0 0.5rem 0;
}

.idea-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.idea-status {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.status-protected {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.idea-date {
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(111, 66, 193, 0.05);
    border: 1px solid rgba(111, 66, 193, 0.1);
    border-radius: 10px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.quick-action-btn i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Notifications */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(111, 66, 193, 0.02);
    border: 1px solid rgba(111, 66, 193, 0.1);
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(111, 66, 193, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: white;
    font-size: 1rem;
}

.notification-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-icon.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.notification-icon.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.notification-content {
    flex: 1;
}

.notification-text {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Activity Chart */
.activity-chart {
    padding: 1rem 0;
}

.chart-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    padding: 1rem 0;
    gap: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-purple), var(--secondary-purple));
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: all 0.3s ease;
    animation: chartBarGrow 1s ease-out;
}

.chart-bar:hover {
    transform: scaleY(1.05);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chart-legend {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes chartBarGrow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar.collapsed.open {
        transform: translateX(0);
    }

    .sidebar.collapsed .sidebar-toggle {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        border-radius: 5px;
        border: none;
        box-shadow: none;
        background: none;
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.expanded {
        margin-left: 0;
    }

    .sidebar-toggle-mobile {
        display: block;
    }
}
    
    .welcome-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .welcome-content {
        text-align: center !important;
        align-items: center !important;
    }
    
    .welcome-icon {
        font-size: 2rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 150px;
    }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-gray), #2c3e50) !important;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-purple {
    box-shadow: 0 4px 20px rgba(111, 66, 193, 0.2);
}

.border-purple {
    border-color: var(--primary-purple) !important;
} 

/* Ideas List Page Styles */
.filter-card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filter-card .card-body {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.filter-card .form-label {
    color: white;
    font-weight: 600;
}

.filter-card .form-control,
.filter-card .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.idea-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.idea-title-section {
    flex: 1;
}

.idea-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.idea-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.idea-category,
.idea-date {
    color: #6c757d;
    display: flex;
    align-items: center;
}

.idea-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background: #f8f9fa;
    color: #6c757d;
}

.status-submitted {
    background: #e3f2fd;
    color: #1976d2;
}

.status-under-review {
    background: #fff3e0;
    color: #f57c00;
}

.status-approved {
    background: #e8f5e8;
    color: #388e3c;
}

.status-rejected {
    background: #ffebee;
    color: #d32f2f;
}

.idea-content {
    margin-bottom: 1.5rem;
}

.idea-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-more {
    background: #e9ecef;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-style: italic;
}

.idea-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

.stat-label {
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idea-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.idea-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.empty-state {
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    color: #dee2e6;
}

/* Pagination Styles */
.pagination {
    margin: 0;
}

.pagination .page-link {
    border: none;
    color: #667eea;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ideas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .idea-card {
        padding: 1rem;
    }
    
    .idea-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .idea-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .idea-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .idea-actions {
        flex-direction: column;
    }
    
    .idea-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 

/* Submit Idea Page Enhanced Styles */
.submit-idea-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.submit-idea-subtitle {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleGlow 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

@keyframes subtitleGlow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Enhanced Help Card with Animations */
.help-card-enhanced {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.help-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.help-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.help-card-enhanced .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.help-card-enhanced .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.help-card-enhanced .card-title {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Enhanced Tip Items */
.tip-item-enhanced {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tip-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tip-item-enhanced:hover::before {
    transform: scaleY(1);
}

.tip-item-enhanced:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.tip-item-enhanced:nth-child(1) {
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.tip-item-enhanced:nth-child(2) {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.tip-item-enhanced:nth-child(3) {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.tip-item-enhanced:nth-child(4) {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

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

.tip-icon-enhanced {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tip-icon-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--icon-color-1) 0%, var(--icon-color-2) 100%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.tip-item-enhanced:hover .tip-icon-enhanced::before {
    opacity: 0.2;
}

.tip-item-enhanced:hover .tip-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

.tip-item-enhanced:nth-child(1) .tip-icon-enhanced {
    --icon-color-1: #ff6b6b;
    --icon-color-2: #ee5a24;
    color: #ff6b6b;
}

.tip-item-enhanced:nth-child(2) .tip-icon-enhanced {
    --icon-color-1: #4ecdc4;
    --icon-color-2: #44a08d;
    color: #4ecdc4;
}

.tip-item-enhanced:nth-child(3) .tip-icon-enhanced {
    --icon-color-1: #45b7d1;
    --icon-color-2: #96c93d;
    color: #45b7d1;
}

.tip-item-enhanced:nth-child(4) .tip-icon-enhanced {
    --icon-color-1: #f9ca24;
    --icon-color-2: #f0932b;
    color: #f9ca24;
}

.tip-content-enhanced h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.tip-item-enhanced:hover .tip-content-enhanced h6 {
    color: #667eea;
}

.tip-content-enhanced p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.tip-item-enhanced:hover .tip-content-enhanced p {
    color: #495057;
}

/* Enhanced Idea Submission Card */
.idea-submission-card-enhanced {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.idea-submission-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.idea-submission-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.idea-submission-card-enhanced .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.idea-submission-card-enhanced .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced Form Controls */
.form-control-enhanced {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
}

.form-control-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #ffffff;
    transform: translateY(-2px);
}

.form-select-enhanced {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
}

.form-select-enhanced:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: #ffffff;
    transform: translateY(-2px);
}

/* Enhanced Submit Button */
.btn-submit-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-submit-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

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

.btn-submit-enhanced:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-submit-enhanced:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced Checkbox */
.form-check-enhanced {
    padding: 0.5rem 0;
}

.form-check-input-enhanced {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.form-check-input-enhanced:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: scale(1.1);
}

.form-check-input-enhanced:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label-enhanced {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.form-check-enhanced:hover .form-check-label-enhanced {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .submit-idea-header {
        font-size: 2rem;
    }
    
    .help-card-enhanced {
        margin-top: 2rem;
    }
    
    .tip-item-enhanced {
        padding: 0.75rem;
    }
    
    .tip-icon-enhanced {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
} 

/* Enhanced Submit Idea Page - Modern Design */
.submit-idea-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.submit-idea-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.submit-idea-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    animation: modernGlow 4s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.submit-idea-subtitle-modern {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: subtitleFloat 3s ease-in-out infinite;
}

@keyframes modernGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
}

@keyframes subtitleFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.95;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Modern Card Design */
.idea-submission-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.idea-submission-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.idea-submission-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.idea-submission-card-modern .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px 24px 0 0;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.idea-submission-card-modern .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="modernGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23modernGrain)"/></svg>');
    opacity: 0.3;
}

.idea-submission-card-modern .card-title {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    animation: titleBreathe 4s ease-in-out infinite;
}

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

.idea-submission-card-modern .card-body {
    padding: 2.5rem;
}

/* Modern Form Controls */
.form-control-modern {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #2c3e50;
}

.form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    outline: none;
}

.form-control-modern::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-select-modern {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #2c3e50;
}

.form-select-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    outline: none;
}

/* Modern Labels */
.form-label-modern {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-text-modern {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Modern Submit Button */
.btn-submit-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-submit-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-submit-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-submit-modern:active {
    transform: translateY(-1px) scale(1.02);
}

/* Modern Checkbox */
.form-check-modern {
    padding: 0.75rem 0;
}

.form-check-input-modern {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: rgba(255, 255, 255, 0.8);
}

.form-check-input-modern:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-check-input-modern:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.form-check-label-modern {
    font-weight: 500;
    color: #2c3e50;
    margin-left: 0.75rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.form-check-modern:hover .form-check-label-modern {
    color: #667eea;
}

/* Modern Help Card */
.help-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.help-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.help-card-modern:hover::before {
    left: 100%;
}

.help-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.help-card-modern .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.help-card-modern .card-title {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    animation: titleFloat 3s ease-in-out infinite;
}

/* Modern Tip Items */
.tip-item-modern {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tip-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tip-item-modern:hover::before {
    transform: scaleY(1);
}

.tip-item-modern:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.tip-item-modern:nth-child(1) {
    animation: slideInLeft 0.6s ease-out 0.1s both;
}

.tip-item-modern:nth-child(2) {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.tip-item-modern:nth-child(3) {
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.tip-item-modern:nth-child(4) {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.tip-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.tip-icon-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--icon-color-1) 0%, var(--icon-color-2) 100%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.tip-item-modern:hover .tip-icon-modern::before {
    opacity: 0.2;
}

.tip-item-modern:hover .tip-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.tip-item-modern:nth-child(1) .tip-icon-modern {
    --icon-color-1: #ff6b6b;
    --icon-color-2: #ee5a24;
    color: #ff6b6b;
}

.tip-item-modern:nth-child(2) .tip-icon-modern {
    --icon-color-1: #4ecdc4;
    --icon-color-2: #44a08d;
    color: #4ecdc4;
}

.tip-item-modern:nth-child(3) .tip-icon-modern {
    --icon-color-1: #45b7d1;
    --icon-color-2: #96c93d;
    color: #45b7d1;
}

.tip-item-modern:nth-child(4) .tip-icon-modern {
    --icon-color-1: #f9ca24;
    --icon-color-2: #f0932b;
    color: #f9ca24;
}

.tip-content-modern h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.tip-item-modern:hover .tip-content-modern h6 {
    color: #667eea;
}

.tip-content-modern p {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.tip-item-modern:hover .tip-content-modern p {
    color: #2c3e50;
}

/* Success Alert Modern */
.alert-success-modern {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 16px;
    color: #155724;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
    backdrop-filter: blur(10px);
}

.alert-success-modern .btn-close {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(86deg) brightness(104%) contrast(97%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .submit-idea-header-modern {
        font-size: 2.5rem;
    }
    
    .submit-idea-subtitle-modern {
        font-size: 1.1rem;
    }
    
    .help-card-modern {
        margin-top: 2rem;
    }
    
    .tip-item-modern {
        padding: 1rem;
    }
    
    .tip-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .idea-submission-card-modern .card-body {
        padding: 1.5rem;
    }
}

/* Clean Submit Idea Page - Professional Design */
.submit-idea-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

.submit-idea-header-clean {
    color: #2c3e50;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.submit-idea-subtitle-clean {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.6;
}

/* Clean Card Design */
.idea-submission-card-clean {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.idea-submission-card-clean:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.idea-submission-card-clean .card-header {
    background: #f8f9fa;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.idea-submission-card-clean .card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    color: #2c3e50;
}

.idea-submission-card-clean .card-body {
    padding: 2rem;
}

/* Clean Form Controls */
.form-control-clean {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #495057;
}

.form-control-clean:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background: #ffffff;
    outline: none;
}

.form-control-clean::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-select-clean {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #495057;
}

.form-select-clean:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background: #ffffff;
    outline: none;
}

/* Clean Labels */
.form-label-clean {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-text-clean {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Clean Submit Button */
.btn-submit-clean {
    background: #007bff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.btn-submit-clean:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

/* Clean Checkbox */
.form-check-clean {
    padding: 0.5rem 0;
}

.form-check-input-clean {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #ced4da;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-check-input-clean:checked {
    background: #007bff;
    border-color: #007bff;
}

.form-check-input-clean:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-check-label-clean {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
    font-size: 0.95rem;
}

.form-check-clean:hover .form-check-label-clean {
    color: #007bff;
}

/* Clean Help Card */
.help-card-clean {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-card-clean:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.help-card-clean .card-header {
    background: #f8f9fa;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem;
}

.help-card-clean .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    color: #2c3e50;
}

.help-card-clean .card-body {
    padding: 1.5rem;
}

/* Clean Tip Items */
.tip-item-clean {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.tip-item-clean:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: translateX(4px);
}

.tip-item-clean:last-child {
    margin-bottom: 0;
}

.tip-icon-clean {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.tip-item-clean:hover .tip-icon-clean {
    transform: scale(1.05);
}

.tip-item-clean:nth-child(1) .tip-icon-clean {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.tip-item-clean:nth-child(2) .tip-icon-clean {
    color: #28a745;
    background: #d4edda;
    border-color: #c3e6cb;
}

.tip-item-clean:nth-child(3) .tip-icon-clean {
    color: #17a2b8;
    background: #d1ecf1;
    border-color: #bee5eb;
}

.tip-item-clean:nth-child(4) .tip-icon-clean {
    color: #ffc107;
    background: #fff3cd;
    border-color: #ffeaa7;
}

.tip-content-clean h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-size: 1rem;
}

.tip-content-clean p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Clean Success Alert */
.alert-success-clean {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.alert-success-clean .btn-close {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(86deg) brightness(104%) contrast(97%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .submit-idea-header-clean {
        font-size: 2.2rem;
    }
    
    .submit-idea-subtitle-clean {
        font-size: 1rem;
    }
    
    .help-card-clean {
        margin-top: 2rem;
    }
    
    .tip-item-clean {
        padding: 0.75rem;
    }
    
    .tip-icon-clean {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .idea-submission-card-clean .card-body {
        padding: 1.5rem;
    }
}

/* Enhanced Search Summary Section */
.search-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #28a745 50%, #007bff 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.search-summary-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.search-summary-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.search-summary-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="summaryGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23summaryGrain)"/></svg>');
    opacity: 0.3;
}

.search-summary-title {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-summary-body {
    padding: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.summary-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-section-title {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-section-title i {
    color: #007bff;
    font-size: 1.1rem;
}

.idea-title-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.idea-title-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
}

.idea-description-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 120px;
    overflow-y: auto;
    position: relative;
}

.idea-description-display::-webkit-scrollbar {
    width: 4px;
}

.idea-description-display::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.idea-description-display::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.idea-description-display::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.search-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.stat-icon.patents {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-icon.search {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-icon.time {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-meta {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.search-meta-title {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-meta-title i {
    color: #6c757d;
}

.search-meta-content {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .stat-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .search-summary-body {
        padding: 1.5rem;
    }
    
    .idea-description-display {
        max-height: 100px;
    }
}

/* Investors Page Styles */
.investors-page-container {
    padding: 2rem 0;
}
.investors-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.investors-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.investors-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.investor-search-form {
    max-width: 500px;
    margin: 0 auto;
}
.investor-search-input {
    border-radius: 2rem 0 0 2rem;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    border-right: none;
}
.investor-search-form .btn {
    border-radius: 0 2rem 2rem 0;
    padding: 0.75rem 1.5rem;
}
.investors-list {
    margin-top: 1.5rem;
}
.investor-card {
    background: linear-gradient(135deg, #fff 60%, #f8f9fa 100%);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(111,66,193,0.08), 0 1.5px 6px rgba(44,62,80,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInUp 0.7s cubic-bezier(.39,.575,.56,1.000) both;
}
.investor-card.enhanced-card {
    min-height: 480px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 50%, #fff 100%);
}
.investor-card:hover {
    box-shadow: 0 16px 48px rgba(111,66,193,0.16), 0 4px 16px rgba(44,62,80,0.08);
    transform: translateY(-6px) scale(1.025);
}
.investor-card.enhanced-card:hover {
    border-color: rgba(111,66,193,0.2);
    box-shadow: 0 20px 60px rgba(111,66,193,0.2), 0 6px 20px rgba(44,62,80,0.1);
}
.investor-image-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.2rem auto;
}
.investor-image-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(111,66,193,0.10);
    border: 4px solid #fff;
    background: #f3f3fa;
    position: relative;
}
.connection-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    pointer-events: none;
}
.connection-badge i {
    font-size: 0.9rem;
}
.investor-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
    min-height: 2.5rem;
}
.focus-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #f8f9fa;
    color: #495057;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.focus-tag:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.investor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(.39,.575,.56,1.000);
}
.investor-card:hover .investor-image {
    transform: scale(1.08) rotate(-2deg);
}
.investor-info {
    margin-bottom: 0.5rem;
}
.investor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}
.investor-field {
    font-size: 1.05rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.investor-position {
    font-size: 0.98rem;
    color: #8a8fa3;
    font-weight: 500;
}
.investor-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.profile-btn, .connect-btn, .message-btn {
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.01em;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-btn::before, .connect-btn::before, .message-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.profile-btn:hover::before, .connect-btn:hover::before, .message-btn:hover::before {
    width: 300px;
    height: 300px;
}
.profile-btn:hover, .connect-btn:hover, .message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}
.profile-btn:active, .connect-btn:active, .message-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.profile-btn:focus, .connect-btn:focus, .message-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.25);
}
.profile-btn:hover {
    background: var(--primary-purple);
    color: #fff;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.25);
}
.connect-btn:hover:not(:disabled) {
    background: var(--primary-purple);
    color: #fff;
    border-color: var(--primary-purple);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.25);
}
.connect-btn.btn-outline-warning:hover:not(:disabled) {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}
.connect-btn.btn-outline-success:hover:not(:disabled) {
    background: #198754;
    color: #fff;
    border-color: #198754;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}
.message-btn:hover:not(.disabled) {
    background: #198754;
    color: #fff;
    border-color: #198754;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}
.profile-btn i, .connect-btn i, .message-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}
.profile-btn:hover i, .connect-btn:hover i, .message-btn:hover i {
    transform: scale(1.1);
}
.profile-btn:disabled, .connect-btn:disabled, .message-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
.profile-btn:disabled:hover, .connect-btn:disabled:hover, .message-btn.disabled:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .investor-card {
        min-height: 360px;
        padding: 1.25rem 0.75rem 1rem 0.75rem;
    }
    .investors-header {
        margin-bottom: 1.5rem;
    }
}

/* Message Modal Styles for Investors Page */
.message-modal-body-scroll {
    max-height: 70vh;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .modal-lg {
        max-width: 98vw;
        margin: 0.5rem;
    }
    .message-modal-body-scroll {
        max-height: 60vh;
    }
}

/* Message Modal Usability Fixes */
.modal-lg {
    max-width: 700px;
}
@media (max-width: 768px) {
    .modal-lg {
        max-width: 98vw;
        margin: 0.5rem;
    }
}
.message-modal-body-scroll {
    max-height: 70vh;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .message-modal-body-scroll {
        max-height: 60vh;
    }
}
#messageBody.form-control[contenteditable="true"] {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    resize: vertical;
}

/* Animated Success Message Styles (for Investors and Ideas pages) */
.message-success-animated, .draft-success-animated {
    background: linear-gradient(135deg, #e6f9f2 0%, #f0fff4 100%);
    border: 1.5px solid #b2f2e5;
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px rgba(16,185,129,0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    animation: fadeInUpSuccess 0.7s cubic-bezier(.39,.575,.56,1.000) both;
}
.draft-success-animated {
    background: linear-gradient(135deg, #eef2ff 0%, #f0f5ff 100%);
    border: 1.5px solid #b2bff2;
    box-shadow: 0 4px 24px rgba(99,102,241,0.10);
}
.success-icon-animated {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.success-circle {
    stroke-dasharray: 164;
    stroke-dashoffset: 164;
    animation: drawCircle 0.7s ease-out forwards;
}
.success-check {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    animation: drawCheck 0.5s 0.5s ease-out forwards;
}
@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}
@keyframes fadeInUpSuccess {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.success-message-text h5 {
    color: #10b981;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.draft-success-animated .success-message-text h5 {
    color: #6366f1;
}
.success-message-text p {
    color: #495057;
    font-size: 1rem;
}
.idea-description-rt {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    resize: vertical;
}

/* Animated checkmark for submit idea success */
.animated-check .checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-draw 0.7s 0.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.animated-check .checkmark-circle {
    stroke-dasharray: 226.2;
    stroke-dashoffset: 226.2;
    animation: checkmark-circle 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
@keyframes checkmark-draw {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes checkmark-circle {
    to {
        stroke-dashoffset: 0;
    }
}

/* Recent Ideas Section */
.recent-ideas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-item {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8d5f7 100%);
    border: 1.5px solid var(--primary-purple);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 18px rgba(111, 66, 193, 0.08);
    position: relative;
    overflow: hidden;
}

.idea-item:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 32px rgba(111, 66, 193, 0.18);
    border-color: var(--secondary-purple);
    background: linear-gradient(135deg, #e8d5f7 0%, #f8f9ff 100%);
}

.idea-title {
    font-weight: 700;
    color: var(--primary-purple);
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(111,66,193,0.06);
}

.category-badge {
    background: linear-gradient(90deg, #6f42c1 0%, #8e44ad 100%);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(111,66,193,0.08);
    letter-spacing: 0.5px;
    border: none;
}

.idea-date {
    color: var(--secondary-purple);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.idea-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.idea-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.idea-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.empty-state {
    padding: 2rem 1rem;
}

.empty-icon {
    opacity: 0.5;
}

/* Animated checkmark for submit idea success */
.modal-backdrop {
    z-index: 2040 !important;
}
.modal {
    z-index: 2050 !important;
}

.offcanvas {
    max-width: 100vw;
    overflow-x: hidden;
}

.idea-meta-card {
    background: linear-gradient(90deg, #f8fafc 60%, #e0e7ff 100%);
    border-radius: 1.2rem;
    padding: 2.2rem 2rem 1.2rem 2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 24px rgba(111,66,193,0.07);
    border: none;
}
.idea-badges-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.idea-badge-lg {
    background: linear-gradient(90deg, #ede9fe, #e0e7ff);
    color: #4a148c;
    font-weight: 600;
    font-size: 1.13rem;
    border-radius: 999px;
    padding: 0.65em 1.5em;
    box-shadow: 0 2px 8px rgba(111,66,193,0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}
.idea-badge-lg:hover {
    background: linear-gradient(90deg, #e0e7ff, #ede9fe);
    color: #6f42c1;
    box-shadow: 0 4px 16px rgba(111,66,193,0.13);
    transform: translateY(-2px) scale(1.07);
}
@media (max-width: 768px) {
    .idea-meta-card { padding: 1.2rem 0.7rem 0.7rem 0.7rem; }
    .idea-badge-lg { font-size: 1rem; padding: 0.5em 1.1em; }
}

/* --- Modern Categories & Keywords Section for Idea Details --- */
.idea-meta-modern {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(111,66,193,0.10);
    border: 1.5px solid #ede9fe;
    padding: 2.5rem 2rem 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.idea-meta-modern:hover {
    box-shadow: 0 16px 48px rgba(111,66,193,0.16);
    transform: translateY(-4px) scale(1.015);
}
.meta-icon-gradient {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    color: #6f42c1;
    font-size: 1.7rem;
    box-shadow: 0 2px 12px rgba(111,66,193,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.meta-title-gradient {
    background: linear-gradient(90deg, #6f42c1 0%, #8e44ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 1.35rem;
}
.meta-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8a8fa3;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: inline-block;
}
.meta-badges-flex {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}
.meta-badge {
    background: linear-gradient(90deg, #ede9fe 0%, #e0e7ff 100%);
    color: #4a148c;
    font-weight: 600;
    font-size: 1.01rem;
    border-radius: 999px;
    padding: 0.45em 1.2em;
    box-shadow: 0 2px 8px rgba(111,66,193,0.10);
    border: 1.5px solid #e0e7ff;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 0.4px;
    margin-bottom: 0.1rem;
    outline: none;
}
.meta-badge:hover, .meta-badge:focus {
    background: linear-gradient(90deg, #e0e7ff 0%, #ede9fe 100%);
    color: #6f42c1;
    box-shadow: 0 4px 16px rgba(111,66,193,0.13);
    transform: translateY(-2px) scale(1.08);
    border-color: #c3b6f7;
}
.meta-badge-keyword {
    background: linear-gradient(90deg, #e0f7fa 0%, #e3e0ff 100%);
    color: #1976d2;
    border-color: #e0f7fa;
}
.meta-badge-keyword:hover, .meta-badge-keyword:focus {
    background: linear-gradient(90deg, #e3e0ff 0%, #e0f7fa 100%);
    color: #512da8;
    border-color: #b3e5fc;
}
@media (max-width: 768px) {
    .idea-meta-modern { padding: 1.2rem 0.7rem 0.7rem 0.7rem; }
    .meta-badge { font-size: 0.93rem; padding: 0.35em 0.9em; }
    .meta-icon-gradient { width: 40px; height: 40px; font-size: 1.1rem; }
}
/* Accessibility: focus style for badges */
.meta-badge:focus {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
}

.idea-desc-content {
    color: #6c757d;
    font-size: 1.08rem;
    line-height: 1.7;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.idea-section-title {
    font-size: 18px !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Admin Layout Custom Styles --- */
.admin-sidebar {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.admin-sidebar .sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.admin-sidebar .brand-text {
    margin-left: 0.5rem;
}
.admin-sidebar .sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.admin-sidebar .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.admin-sidebar .sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}
.admin-sidebar .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-sidebar .nav-item {
    margin: 0.25rem 0;
}
.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.3);
}
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}
.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}
.admin-sidebar .sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.admin-main-content {
    background: #f4fafd;
    min-height: 100vh;
}
.admin-dashboard-body .dashboard-header {
    background: #2193b0;
    color: #fff;
    border-bottom: 1px solid #6dd5ed;
}
.admin-dashboard-body .dashboard-header .btn-outline-danger {
    border-color: #fff;
    color: #fff;
}
.admin-dashboard-body .dashboard-header .btn-outline-danger:hover {
    background: #fff;
    color: #ff5252;
    border-color: #fff;
}

.admin-dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 1.2rem 1.1rem 1.1rem 1.1rem;
    margin-bottom: 0.5rem;
    min-height: 80px;
    transition: all 0.3s ease;
}
.admin-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #4F8A8B, #7F53AC);
    border-radius: 15px 15px 0 0;
    z-index: 2;
    animation: none;
    background-size: 100% 100%;
}
.admin-dashboard-card .admin-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #4F8A8B 60%, #7F53AC 100%);
    box-shadow: 0 2px 8px 0 rgba(79,138,139,0.08);
    border: none;
}
.admin-dashboard-card .admin-card-icon::after {
    display: none;
}
.admin-dashboard-card .fw-bold {
    color: #3A4750;
    font-size: 1.3rem;
    margin-bottom: 0.18rem;
    letter-spacing: -1px;
    font-weight: 700;
    text-shadow: none;
}
.admin-dashboard-card .text-muted {
    color: #7b8a97 !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: none;
}
.admin-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #7F53AC;
}

/* Admin Dashboard Hero Section */
.admin-hero-section .container > div:first-child {
    flex: 1;
    text-align: left;
}

.admin-hero-section .container > div:last-child {
    flex-shrink: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .admin-hero-section .container > div:first-child {
        text-align: center;
    }
    
    .admin-hero-section .container > div:last-child {
        text-align: center;
    }
}

/* Toggle button hover effects for idea cards */
.idea-actions .btn-outline-danger:hover i,
.idea-actions .btn-outline-danger:focus i {
    color: white !important;
}

.idea-actions .btn-outline-warning:hover i,
.idea-actions .btn-outline-warning:focus i {
    color: white !important;
}

/* Ensure icons are white when buttons are active */
.idea-actions .btn-danger i,
.idea-actions .btn-warning i {
    color: white !important;
}

/* Settings Page Styles */
.settings-container {
    padding: 2rem;
}

.settings-content {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.settings-card-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.settings-card-body {
    padding: 2rem;
}

.settings-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Theme Classes */
.theme-dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.theme-dark .settings-card {
    background: #2d2d2d;
    border-color: #404040;
}

.theme-dark .form-control,
.theme-dark .form-select {
    background-color: #404040;
    border-color: #555555;
    color: #ffffff;
}

.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    background-color: #404040;
    border-color: var(--primary-purple);
    color: #ffffff;
}

/* Font Size Classes */
.font-size-small {
    font-size: 0.875rem !important;
}

.font-size-small h1, .font-size-small h2, .font-size-small h3, .font-size-small h4, .font-size-small h5, .font-size-small h6 {
    font-size: 0.875rem !important;
}

.font-size-small .btn {
    font-size: 0.8rem !important;
    padding: 0.375rem 0.75rem !important;
}

.font-size-medium {
    font-size: 1rem !important;
}

.font-size-medium h1, .font-size-medium h2, .font-size-medium h3, .font-size-medium h4, .font-size-medium h5, .font-size-medium h6 {
    font-size: 1rem !important;
}

.font-size-medium .btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
}

.font-size-large {
    font-size: 1.125rem !important;
}

.font-size-large h1, .font-size-large h2, .font-size-large h3, .font-size-large h4, .font-size-large h5, .font-size-large h6 {
    font-size: 1.125rem !important;
}

.font-size-large .btn {
    font-size: 1rem !important;
    padding: 0.625rem 1.25rem !important;
}

/* Compact Mode */
.compact-mode .settings-card-body {
    padding: 1rem !important;
}

.compact-mode .mb-3 {
    margin-bottom: 0.75rem !important;
}

.compact-mode .mb-4 {
    margin-bottom: 1rem !important;
}

.compact-mode .form-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem !important;
}

.compact-mode .form-control,
.compact-mode .form-select {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.compact-mode .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.compact-mode .card {
    margin-bottom: 1rem !important;
}

.compact-mode .card-body {
    padding: 1rem !important;
}

.compact-mode .nav-tabs .nav-link {
    padding: 0.75rem 1rem !important;
}

.compact-mode .tab-content {
    padding: 1rem !important;
}

.compact-mode .settings-card-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

.compact-mode .settings-card-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
}

/* Color Scheme Variables */
:root {
    --primary-purple: #6f42c1;
    --secondary-purple: #8e44ad;
}

/* Success/Error Alerts */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    margin-right: 0.5rem;
}

.nav-pills {
}

/* Dark Theme Styles */
.dark-theme {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Sidebar navigation link contrast fixes */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600;
}

.sidebar .nav-sublink {
    color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar .nav-sublink:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-sublink.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Ensure sidebar text is always visible */
.sidebar .brand-text,
.sidebar .user-name,
.sidebar .user-email,
.sidebar .logout-btn {
    color: #ffffff !important;
}

.sidebar .logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.dark-theme .dashboard-body {
    background-color: var(--bg-primary) !important;
}

.dark-theme .sidebar {
    background: var(--sidebar-bg) !important;
}

.dark-theme .main-content {
    background-color: var(--bg-primary) !important;
}

.dark-theme .settings-card,
.dark-theme .card,
.dark-theme .dashboard-card,
.dark-theme .stat-card,
.dark-theme .idea-card,
.dark-theme .patent-card,
.dark-theme .investor-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
}

.dark-theme .card-header,
.dark-theme .settings-card-header {
    background-color: var(--bg-secondary) !important;
    border-bottom-color: var(--border-color) !important;
}

.dark-theme .form-control,
.dark-theme .form-select,
.dark-theme input,
.dark-theme textarea,
.dark-theme select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.dark-theme .form-control:focus,
.dark-theme .form-select:focus {
    background-color: var(--bg-secondary) !important;
    border-color: var(--primary-purple) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
}

.dark-theme .form-control::placeholder {
    color: var(--text-secondary) !important;
}

.dark-theme .text-muted {
    color: var(--text-secondary) !important;
}

.dark-theme .border,
.dark-theme .border-top,
.dark-theme .border-bottom,
.dark-theme .border-start,
.dark-theme .border-end {
    border-color: var(--border-color) !important;
}

.dark-theme .nav-tabs {
    border-bottom-color: var(--border-color) !important;
    background-color: var(--bg-secondary) !important;
}

.dark-theme .nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    background-color: transparent !important;
}

.dark-theme .nav-tabs .nav-link:hover {
    color: var(--primary-purple) !important;
    background-color: rgba(111, 66, 193, 0.1) !important;
}

.dark-theme .nav-tabs .nav-link.active {
    background-color: var(--bg-card) !important;
    color: var(--primary-purple) !important;
    border-bottom-color: var(--primary-purple) !important;
}

.dark-theme .tab-content {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.dark-theme .modal-content {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.dark-theme .modal-header {
    background-color: var(--bg-secondary) !important;
    border-bottom-color: var(--border-color) !important;
}

.dark-theme .offcanvas {
    background-color: var(--bg-card) !important;
}

.dark-theme .offcanvas-header {
    background-color: var(--bg-secondary) !important;
    border-bottom-color: var(--border-color) !important;
}

.dark-theme .table {
    color: var(--text-primary) !important;
}

.dark-theme .table th,
.dark-theme .table td {
    border-color: var(--border-color) !important;
}

.dark-theme .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.dark-theme .dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.dark-theme .dropdown-item {
    color: var(--text-primary) !important;
}

.dark-theme .dropdown-item:hover {
    background-color: var(--bg-secondary) !important;
}

.dark-theme .list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.dark-theme .badge.bg-light {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.dark-theme .alert {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.dark-theme .alert-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-color: rgba(40, 167, 69, 0.2) !important;
    color: #28a745 !important;
}

.dark-theme .alert-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
}

/* Auto theme detection */
@media (prefers-color-scheme: dark) {
    .theme-auto {
        background-color: var(--bg-primary) !important;
        color: var(--text-primary) !important;
    }
    
    .theme-auto .dashboard-body {
        background-color: var(--bg-primary) !important;
    }
    
    .theme-auto .sidebar {
        background: var(--sidebar-bg) !important;
    }
    
    .theme-auto .main-content {
        background-color: var(--bg-primary) !important;
    }
    
    .theme-auto .settings-card,
    .theme-auto .card,
    .theme-auto .dashboard-card,
    .theme-auto .stat-card,
    .theme-auto .idea-card,
    .theme-auto .patent-card,
    .theme-auto .investor-card {
        background-color: var(--bg-card) !important;
        border-color: var(--border-color) !important;
        box-shadow: var(--card-shadow) !important;
    }
}

/* Specific styles for delete idea offcanvas */
#deleteIdeaPanel {
    z-index: 1055 !important;
    width: 370px !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#deleteIdeaPanel .offcanvas-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border-bottom: none !important;
}

#deleteIdeaPanel .offcanvas-body {
    background: linear-gradient(135deg, #fff 80%, #f8d5d5 100%) !important;
    padding: 1.5rem !important;
}

/* Dark theme overrides for delete offcanvas */
.dark-theme #deleteIdeaPanel {
    background-color: var(--bg-card) !important;
}

.dark-theme #deleteIdeaPanel .offcanvas-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
}

.dark-theme #deleteIdeaPanel .offcanvas-body {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.dark-theme #deleteIdeaPanel .offcanvas-body {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Investor Profile Offcanvas Styles - Fix Horizontal Scroll */
#investorProfilePanel {
    overflow-x: hidden !important;
}

#investorProfilePanel .offcanvas-body {
    overflow-x: hidden !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#investorProfilePanel .investor-profile-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

#investorProfilePanel .investor-name,
#investorProfilePanel .investor-email,
#investorProfilePanel .investor-company,
#investorProfilePanel .investment-range,
#investorProfilePanel .investor-bio {
    word-break: break-word;
    overflow-wrap: break-word;
}

#investorProfilePanel .investment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#investorProfilePanel .investor-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#investorProfilePanel .stat-item {
    min-width: 0;
    flex-shrink: 1;
}

/* Ensure all text content doesn't overflow */
#investorProfilePanel * {
    max-width: 100%;
    box-sizing: border-box;
}