/* Super User-Friendly GLO Introduction Engine - Purple & Orange Vibrant Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f3e8ff 0%, #fef3e2 50%, #e0e7ff 100%);
    color: #1f1b2e;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles - Purple & Orange Gradient */
.app-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 30%, #f97316 70%, #fb923c 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.app-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.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.logo-section h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #ffffff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Upload Section - Enhanced Design */
.upload-section {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
    border: 2px dashed #a855f7;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(168, 85, 247, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.upload-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 25px 80px rgba(139, 92, 246, 0.25);
}

.upload-card:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.upload-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

.upload-card h2 {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.upload-card p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.upload-area {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #cbd5e1;
    position: relative;
    z-index: 1;
}

.upload-area:hover {
    background: linear-gradient(135deg, #fef3e2 0%, #f3e8ff 100%);
    border-color: #f97316;
    transform: scale(1.02);
}

.upload-placeholder p {
    color: #64748b;
    margin-top: 1rem;
    font-weight: 500;
}

.upload-icon-small {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Dashboard Styles - Enhanced */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.dashboard-header h2 {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 800;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

/* Filter Panel - Enhanced */
.filters-panel {
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f1b2e;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filter-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f1b2e;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    font-weight: 500;
}

.filter-select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Table Info Bar - Enhanced */
.table-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-bottom: none;
}

.member-count {
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.table-help {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Table Styles - Fixed Overflow */
.members-table-container {
    background: white;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-top: none;
    
    /* Fix table overflow */
    width: 100%;
    overflow-x: auto;
    max-height: 75vh;
    overflow-y: auto;
}

/* Custom scrollbar */
.members-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.members-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.members-table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    border-radius: 4px;
}

.members-table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #ea580c);
}

.members-table {
    width: 100%;
    min-width: 1200px; /* Ensure minimum width for all columns */
    border-collapse: collapse;
    font-size: 0.9rem;
}

.members-table th {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #f97316 100%);
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.members-table th:last-child {
    border-right: none;
}

.members-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.members-table th.sortable:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #ea580c 100%);
    transform: translateY(-1px);
}

.sort-icon {
    margin-left: 0.5rem;
    opacity: 0.8;
    font-size: 0.8rem;
}

.members-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

.members-table tr:hover td {
    background: linear-gradient(135deg, #fef3e2 0%, #f3e8ff 100%);
}

.members-table tr.selected td {
    background: linear-gradient(135deg, #fef3e2 0%, #f3e8ff 100%);
    border-left: 4px solid #f97316;
}

/* Enhanced Cell Styles */
.name-cell {
    min-width: 200px;
    font-weight: 600;
}

.name-btn {
    background: none;
    border: none;
    color: #8b5cf6;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.3s ease;
}

.name-btn:hover {
    text-decoration-color: #8b5cf6;
    color: #7c3aed;
    transform: translateX(2px);
}

.company-cell {
    min-width: 180px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.role-cell {
    min-width: 140px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-cell, .industry-cell {
    min-width: 120px;
}

.location-cell {
    min-width: 140px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.traction-cell {
    min-width: 120px;
}

.score-cell {
    min-width: 100px;
    width: 120px;
}

.actions-cell {
    min-width: 120px;
    text-align: center;
}

/* Enhanced Badge Styles */
.stage-badge, .industry-badge {
    background: linear-gradient(135deg, #e0e7ff, #fef3e2);
    color: #4c1d95;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.traction-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.traction-badge.high {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.traction-badge.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.traction-badge.early {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.traction-badge.unknown {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Enhanced Score Bar Styles */
.score-bar {
    position: relative;
    background: #f1f5f9;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    width: 90px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-bar.small {
    height: 20px;
    width: 80px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #f97316);
    border-radius: 12px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.score-bar.commission .score-fill {
    background: linear-gradient(90deg, #10b981, #059669, #f97316);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Button Styles */
.action-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #7c3aed, #ea580c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #4b5563;
    border: 2px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: translateY(-1px);
}

.action-btn.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.action-btn.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.action-btn:disabled {
    background: #e2e8f0;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clear-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

/* Profile Section Styles */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.profile-header h2 {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 800;
}

.profile-content {
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.profile-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f3e8ff 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.profile-section.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fef3e2 0%, #f8fafc 100%);
}

.profile-section h3 {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid, .metrics-grid, .goals-grid {
    display: grid;
    gap: 1rem;
}

.info-item, .metric-item, .goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.info-label, .metric-label, .goal-label {
    font-weight: 600;
    color: #4b5563;
    min-width: 120px;
}

.info-value, .metric-value, .goal-value {
    color: #1f1b2e;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.score-number {
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
    text-align: right;
    font-size: 1rem;
}

/* Results Section Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.results-header h2 {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 800;
}

.results-summary {
    display: flex;
    gap: 2rem;
}

.summary-stats {
    display: flex;
    gap: 2rem;
}

.summary-stat {
    background: linear-gradient(135deg, #f3e8ff, #fef3e2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    color: #4c1d95;
    font-size: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Results Tabs */
.results-tabs {
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
    margin-bottom: 0;
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-bottom: none;
}

.tab-btn {
    flex: 1;
    padding: 1.2rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border-right: 1px solid rgba(168, 85, 247, 0.1);
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    background: linear-gradient(135deg, #f3e8ff, #fef3e2);
    color: #8b5cf6;
}

/* Matches Container */
.matches-container {
    background: white;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-top: none;
}

.matches-table-container {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.matches-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.matches-table th {
    background: linear-gradient(135deg, #f3e8ff, #fef3e2);
    color: #4c1d95;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
    border-right: 1px solid rgba(168, 85, 247, 0.1);
}

.matches-table th:last-child {
    border-right: none;
}

.matches-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 0.9rem;
}

.match-row:hover {
    background: linear-gradient(135deg, #fef3e2 0%, #f3e8ff 100%);
}

/* Match Cell Styles */
.rank-cell {
    width: 80px;
    text-align: center;
}

.rank-badge {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-badge {
    background: linear-gradient(135deg, #e0e7ff, #fef3e2);
    color: #4c1d95;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.category-badge.founder {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.2);
}

.category-badge.investor {
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
    color: #166534;
    border-color: rgba(22, 101, 52, 0.2);
}

.category-badge.gtm {
    background: linear-gradient(135deg, #fed7aa, #fef3c7);
    color: #c2410c;
    border-color: rgba(194, 65, 12, 0.2);
}

.category-badge.service {
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    color: #7c2d12;
    border-color: rgba(124, 45, 18, 0.2);
}

.rationale-cell {
    max-width: 350px;
}

.expandable-text {
    position: relative;
}

.expandable-text .full-text {
    display: none;
}

.expandable-text.expanded .text-preview {
    display: none;
}

.expandable-text.expanded .full-text {
    display: block;
}

.expand-btn {
    background: linear-gradient(135deg, #8b5cf6, #f97316);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 0.5rem;
    font-weight: 600;
}

.steps-cell {
    max-width: 250px;
}

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

.steps-list li {
    background: linear-gradient(135deg, #f3e8ff, #fef3e2);
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border-left: 3px solid #8b5cf6;
    color: #4c1d95;
    font-weight: 500;
}

.contact-cell {
    width: 100px;
    text-align: center;
}

.contact-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.contact-btn {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 600;
}

.contact-btn.email {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.contact-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Status Messages */
.upload-status .loading {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 1.1rem;
}

.upload-status .success {
    color: #059669;
    font-weight: 600;
    font-size: 1.1rem;
}

.upload-status .error {
    color: #dc2626;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0.5rem;
    }
    
    .members-table, .matches-table {
        font-size: 0.85rem;
    }
    
    .members-table th,
    .members-table td,
    .matches-table th,
    .matches-table td {
        padding: 0.8rem 0.6rem;
    }
}

@media (max-width: 1200px) {
    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .dashboard-header,
    .profile-header,
    .results-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: 100%;
    }
    
    .members-table-container,
    .matches-table-container {
        overflow-x: auto;
    }
    
    .members-table,
    .matches-table {
        min-width: 1000px;
        font-size: 0.8rem;
    }
    
    .members-table th,
    .members-table td,
    .matches-table th,
    .matches-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .results-tabs {
        flex-direction: column;
    }
    
    .profile-content {
        padding: 1.5rem;
    }
    
    .upload-card {
        padding: 2rem 1.5rem;
    }
    
    .upload-card h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in {
    animation: slideIn 0.4s ease-out;
}

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

/* Loading States */
.loading-spinner {
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top: 3px solid #8b5cf6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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