/* ===== INVESTOR DASHBOARD STYLES ===== */

/* Page Header Flex */
.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Action Items */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.action-icon {
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.action-description {
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.action-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Deal Cards */
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.deal-card {
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(15, 22, 51, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.2s ease;
}

    .deal-card:hover {
        border-color: rgba(96, 165, 250, 0.4);
        background: rgba(15, 22, 51, 0.6);
    }

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

    .deal-header h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
    }

.deal-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.match-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.deal-body {
    margin-bottom: 1rem;
}

.deal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.deal-stat {
    text-align: center;
}

    .deal-stat .stat-label {
        font-size: 0.75rem;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }

    .deal-stat .stat-value {
        font-size: 1.125rem;
        font-weight: 600;
        color: #e5e7eb;
    }

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

.deal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

.deal-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

.deal-actions {
    display: flex;
    gap: 0.75rem;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(15, 22, 51, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.activity-icon {
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.activity-time {
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ===== DESKTOP FIXES ===== */
@media (min-width: 769px) {
    /* Fix 1: Browse Deal Flow button - add proper padding */
    .page-header-flex .btn {
        padding: 0.625rem 1.5rem !important;
        white-space: nowrap !important;
    }

    /* Fix 2: Express Interest button - prevent text wrapping */
    .deal-actions .btn {
        white-space: nowrap !important;
        padding: 0.5rem 1.25rem !important;
    }

    /* Action Items buttons - limit width on desktop */
    .action-item .btn {
        width: auto !important;
        min-width: 120px !important;
        max-width: 200px !important;
        padding: 0.5rem 1.5rem !important;
        white-space: nowrap !important;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

        /* Fix 1: Browse Deal Flow button - full width with proper padding */
        .page-header-flex .btn {
            width: 100% !important;
            padding: 0.75rem 1rem !important;
            text-align: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;
        }

    .hero-title {
        font-size: 1.5rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .muted {
        text-align: center !important;
    }

    /* Metrics cards mobile - 2 column grid */
    .card-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

        .card-grid > .card {
            padding: 0.75rem !important;
            margin-bottom: 0 !important;
        }

    /* Deal stats mobile - 2 column grid */
    .deal-stats {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Fix 2: Action Items - Sign NDA button full width and centered */
    .action-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

        .action-item .btn {
            width: 100% !important;
            max-width: 100% !important;
            margin-top: 1rem !important;
            padding: 0.75rem 1rem !important;
            justify-content: center !important;
            box-sizing: border-box !important;
        }

    .action-content {
        width: 100% !important;
    }

    .action-meta {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Fix 3: Top Matches - Deal card buttons centered and full width */
    .deal-actions {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

        .deal-actions .btn {
            width: 100% !important;
            max-width: 100% !important;
            padding: 0.75rem 1rem !important;
            justify-content: center !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }

    .deal-footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .deal-date {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Header layout now handled by layout-shared.css - removed conflicting grid rules */

/* ===== INVESTOR DASHBOARD: Blue Glow Wash (approved HTML look) ===== */
.investor-dashboard-page {
    background: radial-gradient(circle at 50% 35%, rgba(59, 130, 246, 0.35), rgba(0,0,0,0) 62%), radial-gradient(circle at 20% 85%, rgba(59, 130, 246, 0.18), rgba(0,0,0,0) 55%);
}

/* ===== INVESTOR: Solid dropdown (no glass bleed-through) ===== */
.investor-layout .role-dropdown {
    background: rgba(8, 12, 28, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
