/* Dashboard Theme - Light Cafe Aesthetic with Wave */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Lighter cafe colors */
    --bg-primary: #2a1810;
    --bg-secondary: #3d2618;
    --bg-card: #4a3020;
    --bg-card-hover: #5a3828;
    --accent: #d4965f;
    --accent-light: #f0b878;
    --text-primary: #f9f3eb;
    --text-secondary: #d4b89a;
    --text-muted: #a08060;
    --border: rgba(212, 150, 95, 0.25);
    
    /* Risk colors */
    --risk-high: #da1e28;
    --risk-medium: #f1c21b;
    --risk-low: #42be65;
    
    /* Grade colors */
    --grade-a: #42be65;
    --grade-b: #d4965f;
    --grade-c: #f1c21b;
    --grade-d: #da1e28;
    
    /* Chart colors */
    --chart-blue: #0062ff;
    --chart-green: #42be65;
    --chart-purple: #6929c4;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar - Unified Command Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.navbar-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.repo-name-pill {
    display: none;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.repo-name-pill.active {
    display: block;
}

.navbar-inputs {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navbar-inputs:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 150, 95, 0.15);
}

.navbar-input {
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
}

.navbar-input::placeholder {
    color: var(--text-muted);
}

.repo-input {
    flex: 1;
    min-width: 0;
}

.input-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
}

.pr-input {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
}

.navbar-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 150, 95, 0.5);
}

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

.navbar-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Health Bar - Wave Effect */
.health-bar {
    height: 3px;
    width: 100%;
    background: transparent;
    display: none;
    position: relative;
    overflow: hidden;
}

.health-bar.active {
    display: block;
}

.health-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        currentColor 25%, 
        currentColor 75%, 
        transparent 100%);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.health-bar.grade-a {
    color: var(--grade-a);
    background: var(--grade-a);
}

.health-bar.grade-b {
    color: var(--grade-b);
    background: var(--grade-b);
}

.health-bar.grade-c {
    color: var(--grade-c);
    background: var(--grade-c);
}

.health-bar.grade-d {
    color: var(--grade-d);
    background: var(--grade-d);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 24, 16, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.pulse-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.loading-message {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Hero Landing Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 2rem;
}

.hero-section.hidden {
    display: none;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-wave {
    font-size: 5rem;
    animation: float 3s ease-in-out infinite;
}

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

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.hero-subline {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.feature-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.example-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.example-pill {
    padding: 0.375rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'JetBrains Mono', monospace;
}

.example-pill:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.hero-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.hero-input-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.hero-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 150, 95, 0.15);
}

.hero-input::placeholder {
    color: var(--text-muted);
}

.hero-card-body {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

/* Dashboard */
.dashboard {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard.active {
    display: flex;
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 150, 95, 0.2);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.health-grade {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
}

.health-grade.grade-a {
    color: var(--grade-a);
}

.health-grade.grade-b {
    color: var(--grade-b);
}

.health-grade.grade-c {
    color: var(--grade-c);
}

.health-grade.grade-d {
    color: var(--grade-d);
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 1.5rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.chart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.chart-container {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    pointer-events: none;
}

/* Data Row */
.data-row {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 1.5rem;
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

/* Fragile Files */
.fragile-files-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.fragile-file-row {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    transition: all 0.2s ease;
}

.fragile-file-row:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.file-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    word-break: break-all;
}

.file-reason {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.risk-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.risk-badge.high {
    background: var(--risk-high);
    color: white;
}

.risk-badge.medium {
    background: var(--risk-medium);
    color: var(--bg-primary);
}

.risk-badge.low {
    background: var(--risk-low);
    color: white;
}

.show-all-link {
    text-align: center;
    padding: 0.75rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.show-all-link:hover {
    color: var(--accent-light);
}

/* Untested Modules */
.untested-modules-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    min-height: 100px;
}

.module-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.module-pill:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-light);
}

.empty-state {
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

.empty-state.success {
    color: var(--risk-low);
}

.empty-state.success::before {
    content: "✓ ";
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Insights Row */
.insights-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.insights-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.numbered-list {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    position: relative;
    padding-left: 3rem;
    transition: all 0.2s ease;
}

.numbered-list li:hover {
    background: var(--bg-primary);
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    width: 1.5rem;
    text-align: center;
}

.risk-list li {
    border-left: 3px solid var(--risk-high);
}

.risk-list li::before {
    color: var(--risk-high);
}

.recommendation-list li {
    border-left: 3px solid var(--risk-low);
}

.recommendation-list li::before {
    color: var(--risk-low);
}

/* PR Results Panel */
.pr-results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: none;
}

.pr-results-panel.active {
    display: block;
}

.pr-panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

/* PR Placeholder */
.pr-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    display: block;
}

.pr-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* PR Results */
.pr-results {
    display: none;
}

.pr-results.active {
    display: block;
}

.pr-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

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

.pr-risk-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    align-self: flex-start;
}

.pr-risk-badge.high {
    background: var(--risk-high);
    color: white;
}

.pr-risk-badge.medium {
    background: var(--risk-medium);
    color: var(--bg-primary);
}

.pr-risk-badge.low {
    background: var(--risk-low);
    color: white;
}

.pr-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.pr-summary {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.pr-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.affected-files-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.affected-file-row {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.affected-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.affected-file-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    word-break: break-all;
}

.affected-file-reason {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pr-updates-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pr-chart-container {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-lists {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pr-list-section {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.pr-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pr-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr-list-item {
    padding: 0.625rem 0.875rem;
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Scrollbar Styling */
.fragile-files-container::-webkit-scrollbar,
.affected-files-container::-webkit-scrollbar {
    width: 8px;
}

.fragile-files-container::-webkit-scrollbar-track,
.affected-files-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.fragile-files-container::-webkit-scrollbar-thumb,
.affected-files-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.fragile-files-container::-webkit-scrollbar-thumb:hover,
.affected-files-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-row,
    .data-row {
        grid-template-columns: 1fr;
    }
    
    .pr-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .navbar-inputs {
        width: 100%;
        order: 3;
    }
    
    .navbar-btn {
        order: 4;
        width: 100%;
    }
    
    .repo-name-pill {
        order: 2;
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-subline {
        font-size: 1rem;
    }
    
    .hero-wave {
        font-size: 4rem;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
    }
    }
    
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insights-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        padding: 1rem;
    }
}

    
    .hero-headline {
        font-size: 1.875rem;
    }
    
    .hero-subline {
        font-size: 0.9375rem;
    }
    
    .hero-examples {
        flex-direction: column;
        width: 100%;
    }
    
    .example-btn {
        width: 100%;
    }
@media (max-width: 480px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .navbar-inputs {
        flex-direction: column;
    }
    
    .input-divider {
        width: 100%;
        height: 1px;
    }
    
    .pr-input {
        width: 100%;
    }
}

/* Made with Bob */
