/* AI PM Analytics Styles */
:root {
    --primary-blue: #2563eb;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --error-red: #ef4444;
    --bg-light: #f9fafb;
    --text-dark: #1f2937;
    --border-gray: #e5e7eb;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Navigation */
.aipm-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand h1 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Landing Page */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.upload-area {
    border: 2px dashed var(--border-gray);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.file-types {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.confidence-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.confidence-badge.high {
    background: #d1fae5;
    color: #065f46;
}

.confidence-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-badge.low {
    background: #fee2e2;
    color: #991b1b;
}

/* Additional Styles */
.query-container, .reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.suggested-questions {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-gray);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.suggestion-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.query-input-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.query-input-container textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.ask-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.query-results {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.result-card {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1.5rem;
}

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

.history-list {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
}

.history-item {
    border-bottom: 1px solid var(--border-gray);
    padding: 1rem 0;
}

.history-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.template-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.template-card:hover {
    border-color: var(--primary-blue);
}

.template-card.active {
    border-color: var(--primary-blue);
    background: #f0f9ff;
}

.report-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.setting-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
}

.report-preview {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
}

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

.preview-actions button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.report-document {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.report-header h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.report-meta {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.insight-item, .recommendation-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--primary-blue);
    background: var(--bg-light);
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.priority-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-badge.low {
    background: #d1fae5;
    color: #065f46;
}

.reports-list {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.report-actions button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 768px) {
    .aipm-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}