/**
 * REPORTS PREMIUM CSS - ProductiveApp
 * Glassmorphism, animations, premium layout
 */

/* ===== VARIABLES ===== */
:root {
    --rp-glass: rgba(255, 255, 255, 0.035);
    --rp-glass-border: rgba(255, 255, 255, 0.07);
    --rp-glass-hover: rgba(255, 255, 255, 0.07);
    --rp-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --rp-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);
    --rp-shadow-glow: 0 0 30px rgba(224, 120, 64, 0.12);
    --rp-radius: 20px;
    --rp-radius-sm: 12px;
    --rp-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLASS CARD BASE ===== */
.glass-card {
    background: var(--rp-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--rp-glass-border);
    border-radius: var(--rp-radius);
    transition: all var(--rp-transition);
}
.glass-card:hover {
    border-color: rgba(224, 120, 64, 0.15);
    box-shadow: var(--rp-shadow);
    transform: translateY(-2px);
}

/* ===== ENTRANCE ANIMATIONS ===== */
.entrance-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.entrance-fade.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== REPORTS PAGE ===== */
.reports-page {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}
.reports-page .view-header {
    margin-bottom: 24px;
}

/* ===== TAB NAVIGATION ===== */
.reports-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--rp-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--rp-glass-border);
    padding: 5px;
    border-radius: 16px;
}
.reports-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted, #888);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.reports-tab:hover {
    color: var(--text, #fff);
    background: rgba(255,255,255,0.04);
}
.reports-tab.active {
    background: linear-gradient(135deg, var(--accent, #e07840), rgba(224,120,64,0.85));
    color: white;
    box-shadow: 0 4px 16px rgba(224,120,64,0.3);
}
.reports-tab svg { width: 16px; height: 16px; }
.reports-tab-content { display: none; }
.reports-tab-content.active { display: block; }

/* ===== PERIOD SELECTOR ===== */
.reports-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.period-selector {
    display: flex;
    gap: 4px;
    background: var(--rp-glass);
    border: 1px solid var(--rp-glass-border);
    padding: 4px;
    border-radius: 12px;
}
.period-btn {
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted, #888);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.period-btn:hover { color: var(--text, #fff); background: rgba(255,255,255,0.05); }
.period-btn.active {
    background: var(--accent, #e07840);
    color: white;
}
.period-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--rp-glass-border);
    background: var(--rp-glass);
    border-radius: 10px;
    color: var(--text-muted, #888);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.nav-btn:hover { color: var(--text, #fff); border-color: var(--accent, #e07840); }
.nav-btn svg { width: 16px; height: 16px; }
.period-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #fff);
    min-width: 160px;
    text-align: center;
}

/* ===== KPI GRID (6 cards) ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.kpi-card {
    border-radius: var(--rp-radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rp-glass-border);
    transition: all var(--rp-transition);
}
.kpi-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--rp-shadow-glow);
    border-color: rgba(224,120,64,0.2);
}
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.kpi-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon-green { background: rgba(34,197,94,0.12); color: #22c55e; }
.kpi-icon-blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
.kpi-icon-orange { background: rgba(224,120,64,0.12); color: #e07840; }
.kpi-icon-red { background: rgba(239,68,68,0.12); color: #ef4444; }
.kpi-icon-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.kpi-icon-cyan { background: rgba(6,182,212,0.12); color: #06b6d4; }

.kpi-icon-fire {
    animation: fireGlow 1.5s ease-in-out infinite alternate;
}
@keyframes fireGlow {
    from { box-shadow: 0 0 6px rgba(239,68,68,0.25); }
    to { box-shadow: 0 0 18px rgba(239,68,68,0.5); }
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text, #fff);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.kpi-trend {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}
.trend-up { background: rgba(34,197,94,0.12); color: #22c55e; }
.trend-down { background: rgba(239,68,68,0.12); color: #ef4444; }
.trend-flat { background: rgba(148,163,184,0.12); color: #94a3b8; }

.kpi-sparkline {
    margin-top: 10px;
    height: 28px;
    opacity: 0.85;
}
.kpi-mini-gauge {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
.kpi-mini-rings {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.mini-ring-item {
    position: relative;
}

/* ===== PREMIUM SECTIONS ===== */
.premium-section {
    margin-bottom: 36px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #fff);
    margin: 0;
    letter-spacing: 0.2px;
}
.section-title svg { width: 18px; height: 18px; color: var(--accent, #e07840); }
.reports-section {
    margin-bottom: 36px;
}
.reports-section .section-title {
    margin-bottom: 14px;
}

/* ===== CONTRIBUTION HEATMAP ===== */
.heatmap-card {
    padding: 20px 24px;
    overflow: visible;
}
.heatmap-wrapper {
    min-width: 600px;
}
.hm-cell {
    transition: opacity 0.15s;
}
.hm-cell:hover {
    opacity: 0.8;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 1;
}
.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 10px;
}
.heatmap-legend-label {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    opacity: 0.7;
}
.heatmap-legend-cells {
    display: flex;
    gap: 3px;
}
.hm-legend-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
}

/* ===== PRODUCTIVITY TIMELINE ===== */
.timeline-card {
    padding: 24px;
    height: 280px;
}

/* ===== PROJECT HEALTH GRID ===== */
.project-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}
.project-health-card {
    padding: 22px;
}
.project-health-card:hover {
    transform: translateY(-4px);
}
.phc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.phc-icon { font-size: 1.4rem; }
.phc-name {
    flex: 1;
    font-weight: 600;
    color: var(--text, #fff);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phc-health { display: flex; align-items: center; }
.health-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
    animation: healthPulse 2s ease-in-out infinite;
}
@keyframes healthPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}
.phc-ring {
    display: flex;
    justify-content: center;
    margin: 14px 0;
}
.phc-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 14px;
}
.phc-stat { text-align: center; }
.phc-stat-count {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text, #fff);
}
.phc-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.phc-bar {
    display: flex;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-tertiary, rgba(255,255,255,0.04));
}
.phc-bar-done {
    background: var(--success, #10b981);
    transition: width 1.2s ease-out;
}
.phc-bar-inprogress {
    background: var(--warning, #f59e0b);
    transition: width 1.2s ease-out;
}

/* ===== PROGRESS RING ANIMATION ===== */
.progress-ring-anim {
    transition: stroke-dashoffset 1.5s ease-out;
}

/* ===== GAUGE SECTION ===== */
.gauge-section {
    padding: 28px;
    text-align: center;
    margin-bottom: 36px;
}
.gauge-score-path {
    transition: stroke-dasharray 2s ease-out;
}
.gauge-needle-anim {
    animation: needleAppear 1.5s ease-out;
}
@keyframes needleAppear {
    0% { opacity: 0; }
    40% { opacity: 0; }
    100% { opacity: 1; }
}

/* ===== CHARTS GRID (6 charts, 3x2) ===== */
.charts-grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}
.chart-card {
    padding: 22px;
}
.chart-card:hover {
    transform: translateY(-3px);
}
.chart-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-card h3 span { font-size: 1rem; }
.chart-container {
    position: relative;
    height: 210px;
}
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Work Pattern Heatmap (inside chart-card) */
.work-pattern-svg {
    width: 100%;
    height: 100%;
}
.wp-cell {
    transition: opacity 0.15s;
}
.wp-cell:hover {
    opacity: 0.7;
    stroke: rgba(255,255,255,0.4);
    stroke-width: 0.5;
}

/* ===== SWOT SECTION ===== */
.swot-section {
    margin-bottom: 36px;
}
.swot-section .section-title {
    margin-bottom: 16px;
}
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.swot-card {
    padding: 22px;
    border-radius: var(--rp-radius);
    border: 1px solid var(--rp-glass-border);
    transition: all var(--rp-transition);
}
.swot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rp-shadow);
}
.swot-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.swot-icon { font-size: 1.3rem; }
.swot-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0;
}
.swot-card ul {
    padding-left: 18px;
    margin: 0;
    list-style: none;
}
.swot-card li {
    color: var(--text, #fff);
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.85rem;
    position: relative;
    padding-left: 12px;
    opacity: 0.9;
}
.swot-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}
.swot-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted, #888);
    font-size: 0.9rem;
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-section {
    padding: 28px;
    margin-bottom: 36px;
}
.recommendations-section .section-title {
    margin-bottom: 18px;
}
.recommendation-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    margin-bottom: 10px;
    transition: all 0.3s;
    align-items: flex-start;
}
.recommendation-item:hover {
    background: rgba(224,120,64,0.06);
    transform: translateX(4px);
}
.rec-number {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    background: rgba(224,120,64,0.12);
    color: var(--accent, #e07840);
}
.rec-text {
    font-size: 0.88rem;
    color: var(--text, #fff);
    line-height: 1.5;
    opacity: 0.9;
}

/* ===== AI GENERATE ACTIONS ===== */
.ai-actions-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.ai-actions-bar select {
    padding: 10px 16px;
    background: var(--rp-glass);
    border: 1px solid var(--rp-glass-border);
    border-radius: 10px;
    color: var(--text, #fff);
    font-size: 13px;
    cursor: pointer;
}
.ai-actions-bar select option {
    background: var(--bg-primary, #0f0f23);
    color: var(--text, #fff);
}
.ai-btn-gen {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-btn-gen:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ai-btn-primary-gen {
    background: linear-gradient(135deg, var(--accent, #e07840), rgba(224,120,64,0.85));
    color: white;
    box-shadow: 0 4px 12px rgba(224,120,64,0.25);
}
.ai-btn-primary-gen:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224,120,64,0.35);
}
.ai-btn-secondary-gen {
    background: var(--rp-glass);
    border: 1px solid var(--rp-glass-border);
    color: var(--text, #fff);
}
.ai-btn-secondary-gen:hover:not(:disabled) {
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.1);
}
.ai-btn-accent-gen {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}
.ai-btn-accent-gen:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,92,246,0.3);
}

/* Spinner */
.ai-spin {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: aiSpin 0.7s linear infinite;
}
@keyframes aiSpin {
    to { transform: rotate(360deg); }
}

/* ===== AUDIT PREMIUM TAB ===== */
.audit-premium-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 0;
}
.audit-header {
    text-align: center;
    margin-bottom: 36px;
}
.audit-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text, #fff);
    margin: 0 0 8px 0;
}
.audit-header p {
    color: var(--text-muted, #888);
    font-size: 0.95rem;
    margin: 0;
}
.audit-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}
.audit-type-card {
    padding: 26px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: var(--rp-glass);
    border: 1px solid var(--rp-glass-border);
    border-radius: var(--rp-radius);
    transition: all var(--rp-transition);
}
.audit-type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, #e07840), rgba(224,120,64,0.4));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.audit-type-card:hover::before { transform: scaleX(1); }
.audit-type-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rp-shadow-glow);
    border-color: rgba(224,120,64,0.2);
}
.audit-type-icon { font-size: 2.2rem; margin-bottom: 14px; }
.audit-type-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0 0 6px 0;
}
.audit-type-card p {
    font-size: 0.82rem;
    color: var(--text-muted, #888);
    margin: 0 0 16px 0;
    line-height: 1.5;
}
.audit-type-meta {
    margin-bottom: 14px;
}
.audit-time {
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
}
.audit-generate-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent, #e07840), rgba(224,120,64,0.85));
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.audit-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224,120,64,0.3);
}

/* ===== REPORT HISTORY (existing reports-list) ===== */
.reports-list { margin-top: 8px; }
.report-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--rp-glass);
    border: 1px solid var(--rp-glass-border);
    border-radius: var(--rp-radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.report-list-item:hover {
    border-color: rgba(224,120,64,0.2);
    transform: translateX(4px);
    background: var(--rp-glass-hover);
}

/* Summary cards (legacy compat for existing reports-summary layout) */
.reports-summary {
    margin-bottom: 0;
}
.summary-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted, #888);
}

/* ===== REPORT DETAIL MODAL ===== */
.report-detail-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
}
.report-detail-modal .modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.report-detail-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    margin: 5vh auto;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--rp-glass-border);
    border-radius: var(--rp-radius);
    overflow: auto;
}
.report-detail-modal .modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--rp-glass-border);
}
.report-detail-modal .modal-body {
    padding: 24px;
}
.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    font-size: 13px;
}
.btn-back:hover { color: var(--text, #fff); }

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #888);
}
.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid-6 { grid-template-columns: 1fr; }
    .swot-grid { grid-template-columns: 1fr; }
    .reports-filters { flex-direction: column; align-items: stretch; }
    .period-navigation { justify-content: center; }
    .project-health-grid { grid-template-columns: 1fr; }
    .ai-actions-bar { flex-direction: column; }
}
@media (max-width: 640px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi-value { font-size: 1.6rem; }
    .reports-tabs { flex-direction: column; }
    .audit-types-grid { grid-template-columns: 1fr; }
}

/* ===== AI REPORT MODAL (from ai-reports-view) ===== */
.ai-report-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ai-report-modal.open { opacity: 1; }
.ai-report-modal-content {
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--rp-glass-border);
    border-radius: var(--rp-radius);
    overflow: auto;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.ai-report-modal.open .ai-report-modal-content { transform: scale(1); }
.ai-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--rp-glass-border);
}
.ai-report-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #fff);
    margin: 0;
}
.ai-modal-close {
    width: 36px; height: 36px;
    border: none;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    color: var(--text-muted, #888);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ai-modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text, #fff); }
.ai-report-modal-body {
    padding: 24px;
}
.ai-report-score-large {
    text-align: center;
    margin-bottom: 24px;
}
.ai-score-ring {
    display: inline-block;
    position: relative;
    width: 100px; height: 100px;
}
.ai-score-ring svg { width: 100%; height: 100%; }
.ai-score-value {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text, #fff);
}
.ai-score-label {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ai-report-analysis { margin-bottom: 20px; }
.ai-report-analysis h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0 0 10px 0;
}
.ai-report-analysis p {
    font-size: 0.88rem;
    color: var(--text, #fff);
    opacity: 0.85;
    line-height: 1.6;
    white-space: pre-line;
}
.ai-swot {
    padding: 16px;
    border-radius: var(--rp-radius-sm);
    margin-bottom: 12px;
    border-left: 4px solid;
}
.ai-strengths-full { background: rgba(16,185,129,0.06); border-color: #10b981; }
.ai-weaknesses-full { background: rgba(245,158,11,0.06); border-color: #f59e0b; }
.ai-opportunities { background: rgba(59,130,246,0.06); border-color: #3b82f6; }
.ai-threats { background: rgba(239,68,68,0.06); border-color: #ef4444; }
.ai-swot h3, .ai-recommendations-full h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0 0 8px 0;
}
.ai-swot ul, .ai-recommendations-full ol {
    padding-left: 20px;
    margin: 0;
}
.ai-swot li, .ai-recommendations-full li {
    font-size: 0.85rem;
    color: var(--text, #fff);
    opacity: 0.85;
    margin-bottom: 6px;
    line-height: 1.5;
}
.ai-recommendations-full {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--rp-radius-sm);
    background: rgba(224,120,64,0.05);
    border-left: 4px solid var(--accent, #e07840);
}
.ai-report-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--rp-glass-border);
}
.ai-report-modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* View button styles */
.btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent, #e07840), rgba(224,120,64,0.85));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(224,120,64,0.3);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary svg { width: 16px; height: 16px; }

/* AI Reports list items */
.ai-no-reports, .ai-error {
    text-align: center;
    padding: 24px;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}
.ai-report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-report-item:hover {
    background: rgba(224,120,64,0.06);
    transform: translateX(4px);
}
.ai-report-item-icon { font-size: 1.2rem; }
.ai-report-item-info { flex: 1; }
.ai-report-item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text, #fff);
    margin: 0 0 2px 0;
}
.ai-report-item-date {
    font-size: 0.72rem;
    color: var(--text-muted, #888);
}
.ai-report-item-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--score-color, var(--accent, #e07840));
}
