/* ===================================
   Incubations Dashboard Styles
   FY26 Top Incubations Application
   Azure Enterprise Palette
   =================================== */

/* Global Resets & Base Styles */
.incubations-body,
.incubation-detail-body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: #F5F5F5;
}

.incubation-detail-body {
    min-height: 100vh;
}

/* Container */
.incubations-body .container,
.incubation-detail-body .container {
    max-width: 960px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.incubation-detail-body .container {
    min-height: 100vh;
}

/* Header Styles */
.incubations-body .header,
.incubation-detail-body .header {
    background: linear-gradient(135deg, #001A3A 0%, #0078D4 100%);
    color: #FFFFFF;
    padding: 2.5rem 2rem;
    border-bottom: 3px solid #50E6FF;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: #50E6FF;
}

.incubation-detail-body .header-title {
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.header-tagline {
    margin: 0;
    color: #3AA7F0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.header-owner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.header-owner strong {
    color: #50E6FF;
    font-weight: 600;
}

.header-owner a {
    color: #50E6FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-owner a:hover {
    color: #3AA7F0;
    text-decoration: underline;
}

/* Back Button */
.back-button {
    background: #0078D4;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.back-button:hover {
    background: #005A9E;
}

/* Guiding Principles */
.guiding-principles {
    background: #FAFAFA;
    padding: 1.5rem;
    border-left: 4px solid #0078D4;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.principles-title {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.principles-list {
    color: #505050;
    margin-left: 1rem;
}

.principles-list li {
    margin-bottom: 0.4rem;
    list-style: none;
    position: relative;
    padding-left: 1.2rem;
}

.principles-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0078D4;
    font-weight: 700;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #E1E1E1;
    margin-bottom: 1rem;
}

.filters-title {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #505050;
    display: block;
    margin-bottom: 0.5rem;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #D2D2D2;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.filter-checkbox-label:hover {
    background: #E1EFFF;
    border-color: #0078D4;
}

.filter-checkbox-label input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.filter-checkbox-label.checked {
    background: #0078D4;
    border-color: #005A9E;
    color: white;
    font-weight: 600;
}

.clear-filters {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 1rem;
}

.clear-filters:hover {
    background: #dc2626;
}

/* Multi-select Dropdown Styles */
.multi-select-dropdown {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #D2D2D2;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.multi-select-dropdown:focus {
    border-color: #0078D4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.multi-select-dropdown option {
    padding: 0.5rem;
    cursor: pointer;
}

.multi-select-dropdown option:checked {
    background: #0078D4 linear-gradient(0deg, #0078D4 0%, #0078D4 100%);
    color: white;
    font-weight: 600;
}

.multi-select-dropdown option:hover {
    background: #E1EFFF;
}

.multi-select-hint {
    font-size: 0.75rem;
    color: #6E6E6E;
    margin-top: 0.25rem;
    font-style: italic;
}

/* State Badges */
.state-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-badge.state-open {
    background: #10b981;
    color: white;
}

.state-badge.state-completed {
    background: #0078D4;
    color: white;
}

.state-badge.state-cancelled {
    background: #ef4444;
    color: white;
}

.state-badge.state-envisioning {
    background: #f59e0b;
    color: white;
}

/* Summary Stats */
.summary-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: #FAFAFA;
    border-bottom: 2px solid #E1E1E1;
}

.stat {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: help;
}

.stat-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 400;
}

.stat:hover .stat-tooltip {
    display: block;
}

/* Score badge tooltips (strategic KPIs on incubation cards) */
.score-badge {
    position: relative;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: help;
}

.score-badge-overall {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.score-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 400;
}

.score-badge:hover .score-tooltip {
    display: block;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0078D4;
}

.stat-label {
    font-size: 0.8rem;
    color: #6E6E6E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Incubations Container */
.incubations-container {
    padding: 0 2rem 2rem;
}

/* Incubation Cards */
.incubation-card {
    background: white;
    border: 2px solid #E1E1E1;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.incubation-card:hover {
    border-color: #0078D4;
    box-shadow: 0 8px 16px rgba(0, 120, 212, 0.1);
}

.incubation-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.incubation-number {
    background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.incubation-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
    flex: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.incubation-title:hover {
    color: #0078D4;
}

.incubation-owner {
    font-size: 0.8rem;
    color: #6E6E6E;
    margin-left: auto;
    padding-left: 1rem;
}

.incubation-owner a {
    color: #0078D4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.incubation-owner a:hover {
    color: #005A9E;
    text-decoration: underline;
}

/* Section Labels */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #0078D4;
    margin-bottom: 0.3rem;
    margin-top: 1rem;
}

.section-label:first-of-type {
    margin-top: 0;
}

/* Objectives */
.objectives {
    font-size: 0.9rem;
    color: #1A1A1A;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.objectives-text {
    font-size: 1rem;
    color: #1A1A1A;
    font-weight: 600;
    line-height: 1.6;
    padding: 1rem;
    background: #FAFAFA;
    border-left: 4px solid #0078D4;
    border-radius: 4px;
}

/* Execution List / How List */
.how-list,
.execution-list {
    list-style: none;
    margin: 0.5rem 0 0.8rem 0;
    padding: 0;
}

.how-list li {
    font-size: 0.85rem;
    color: #505050;
    margin-bottom: 0.3rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.how-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0078D4;
    font-weight: 700;
}

.execution-list {
    margin: 0;
}

.execution-list li {
    font-size: 0.95rem;
    color: #505050;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.5;
    background: #FAFAFA;
    border-radius: 4px;
}

.execution-list li:before {
    content: "→";
    position: absolute;
    left: 1rem;
    color: #0078D4;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Collaborators */
.collaborators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.8rem 0;
}

.collaborator-badge {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0c4a6e;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 0.15rem;
}

.dept-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.owner-badge {
    background: linear-gradient(135deg, #E1EFFF 0%, #B8D4FF 100%);
    border: 1px solid #0078D4;
    color: #002050;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.collaborator-card {
    background: linear-gradient(135deg, #F5F5F5 0%, #E1EFFF 100%);
    border: 2px solid #D2D2D2;
    color: #1A1A1A;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.collaborator-card:hover {
    border-color: #0078D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.2);
}

/* Outcomes */
.outcomes,
.outcomes-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.msx-opportunities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.msx-badge {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.msx-badge a:hover {
    text-decoration: underline !important;
}

.outcomes li {
    font-size: 0.85rem;
    color: #505050;
    margin-bottom: 0.25rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.outcomes li:before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #0078D4;
    font-size: 0.6rem;
}

.outcomes-list {
    margin: 0;
}

.outcomes-list li {
    font-size: 0.95rem;
    color: #505050;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    padding-left: 2.5rem;
    position: relative;
    line-height: 1.5;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
}

.outcomes-list li:before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
}

/* Detail Page Sections */
.content-section {
    padding: 2rem;
}

.section-card {
    background: white;
    border: 2px solid #E1E1E1;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0078D4;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.incubations-body .footer,
.incubation-detail-body .footer {
    background: #001A3A;
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 2rem;
    font-size: 0.8rem;
    text-align: center;
    border-top: 3px solid #0078D4;
}

.footer-text {
    margin-bottom: 0.25rem;
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6E6E6E;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6E6E6E;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.no-results-text {
    font-size: 1rem;
}

.not-found {
    text-align: center;
    padding: 3rem 2rem;
}

.not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 1rem;
}

.not-found-text {
    font-size: 1.1rem;
    color: #6E6E6E;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media print {
    .incubations-body {
        background: white;
        padding: 0;
    }
    .incubations-body .container {
        box-shadow: none;
        max-width: 100%;
    }
    .incubation-card {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
    .incubation-title {
        font-size: 1rem;
    }
    .summary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .filter-checkboxes {
        gap: 0.5rem;
    }
    .collaborators-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
