/* 
 * Dashboard-specific CSS - BLACK & WHITE THEME
 * Styles for the main dashboard page components
 */

/* Search Section */
.search-section-enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.search-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2d3748 100%);
}

.search-container-main {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-modern-enhanced {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 2rem;
    box-shadow: 0 12px 40px rgba(26, 26, 26, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.search-modern-enhanced:focus-within {
    box-shadow: 0 16px 50px rgba(26, 26, 26, 0.25);
    transform: translateY(-3px);
}

.search-modern-enhanced:hover {
    box-shadow: 0 14px 45px rgba(26, 26, 26, 0.2);
    transform: translateY(-1px);
}

.search-icon-enhanced {
    position: absolute;
    left: 1.5rem;
    color: #1a1a1a;
    font-size: 1.3rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.search-modern-enhanced:focus-within .search-icon-enhanced {
    color: #0a0a0a;
    transform: scale(1.1);
}

.search-input-enhanced {
    width: 100%;
    padding: 1.25rem 6rem 1.25rem 4rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-800);
    background: transparent;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-input-enhanced::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.search-btn-enhanced {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: white;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.3);
}

.search-btn-enhanced:hover {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4);
}

/* Active Filters */
.active-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0 0 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 1rem;
}

.filters-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.filter-badge.sector-badge {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.1) 0%, rgba(45, 55, 72, 0.1) 100%);
    color: var(--primary);
    border: 1px solid rgba(26, 26, 26, 0.2);
}

.filter-badge.search-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: #0ea5e9;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-remove {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.badge-remove:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Company Cards */
.company-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition-all);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.company-card:hover::after {
    transform: scaleX(1);
}

.symbol-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.sector-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.1) 0%, rgba(45, 55, 72, 0.1) 100%);
    color: var(--primary);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(26, 26, 26, 0.2);
}

/* Metric Cards */
.metric-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-all);
    border: 1px solid var(--gray-200);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .search-section-enhanced {
        padding: 1.5rem;
    }
    
    .search-input-enhanced {
        font-size: 1rem;
        padding: 1rem 5rem 1rem 3.5rem;
    }
    
    .search-icon-enhanced {
        left: 1.25rem;
        font-size: 1.1rem;
    }
    
    .search-btn-enhanced {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .active-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-badges {
        justify-content: center;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-section-enhanced {
        padding: 1rem;
    }
    
    .search-input-enhanced {
        padding: 0.875rem 4.5rem 0.875rem 3rem;
        font-size: 0.95rem;
    }
    
    .search-btn-enhanced {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Change company name from blue to black */
.company-card h5,
.company-card .text-gray-900 {
    color: #1a1a1a !important;
}

/* Change company name link color from blue to black */
a.text-decoration-none .company-card h5 {
    color: #1a1a1a !important;
}

/* Change "View" button from blue to black */
.company-card .text-primary {
    color: #1a1a1a !important;
}

/* Hover effect for View button */
.company-card:hover .text-primary {
    color: #0a0a0a !important;
}

/* Make sure company card links don't have blue color */
a[href*="company_detail"] {
    color: inherit !important;
}