/* Analytics Dashboard Styles */

.analytics-header {
    margin-bottom: 2rem;
}

.analytics-stats {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.12);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0066ff;
}

/* Volume Trends */
.volume-trends-container {
    margin-bottom: 2rem;
}

.volume-trends-grid {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.trends-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.volume-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.volume-trend-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
}

.volume-trend-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.trend-body-part {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.trend-icon {
    font-size: 1.25rem;
}

.trend-stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.trend-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
}

.trend-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-comparison {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Query Interface */
.analytics-query {
    margin-bottom: 2rem;
}

.query-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.query-header {
    margin-bottom: 1.5rem;
}

.query-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
    margin: 0 0 0.5rem 0;
}

.query-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.query-interface {
    margin-bottom: 1.5rem;
}

.query-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.query-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.query-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.query-submit-btn {
    padding: 1rem 2rem;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.query-submit-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.query-examples {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.example-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.example-btn {
    padding: 0.5rem 1rem;
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    background: #0066ff;
    color: white;
    border-color: #0066ff;
}

.query-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f7fa;
}

.query-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
}

.query-answer {
    background: #f0f7ff;
    border-left: 4px solid #0066ff;
    border-radius: 8px;
    padding: 1.5rem;
}

.query-question {
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.query-response {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.query-response h4 {
    margin: 1rem 0 0.5rem 0;
    color: #0066ff;
    font-size: 1rem;
}

.query-response p {
    margin: 0.5rem 0;
}

.query-response li {
    margin: 0.25rem 0;
    margin-left: 1.5rem;
}

.query-meta {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.query-error {
    padding: 1rem;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
}

/* Insights Panel */
.analytics-insights {
    margin-bottom: 2rem;
}

.insights-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

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

.insights-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
    margin: 0;
}

.insights-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.insights-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.insights-refresh-btn {
    padding: 0.5rem 1rem;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.insights-refresh-btn:hover {
    background: #0052cc;
}

.insights-content {
    min-height: 100px;
}

.insights-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.insights-text {
    color: #333;
    line-height: 1.8;
    font-size: 1rem;
}

.insights-text h4 {
    color: #0066ff;
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.insights-text h4:first-child {
    margin-top: 0;
}

.insights-text p {
    margin: 0.75rem 0;
}

.insights-text li {
    margin: 0.5rem 0;
    margin-left: 1.5rem;
}

.insights-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.insights-error {
    padding: 1rem;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    color: #991b1b;
}

/* Enhanced Insight Sections */
.insight-section {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.insight-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.insight-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.insight-section.strength .insight-section-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom-color: #86efac;
}

.insight-section.improvement .insight-section-header {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom-color: #fcd34d;
}

.insight-section.recommendation .insight-section-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-bottom-color: #93c5fd;
}

.insight-section.pattern .insight-section-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #e9d5ff 100%);
    border-bottom-color: #c4b5fd;
}

.insight-section.highlight .insight-section-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom-color: #fbbf24;
}

.insight-section.motivation .insight-section-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom-color: #fca5a5;
}

.insight-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.insight-section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}

.insight-section.strength .insight-section-title {
    color: #166534;
}

.insight-section.improvement .insight-section-title {
    color: #92400e;
}

.insight-section.recommendation .insight-section-title {
    color: #1e40af;
}

.insight-section-content {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.8;
}

.insight-section-content h3,
.insight-section-content h4,
.insight-section-content h5 {
    color: #1f2937;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.insight-section-content h3:first-child,
.insight-section-content h4:first-child,
.insight-section-content h5:first-child {
    margin-top: 0;
}

.insight-section-content p {
    margin: 0.75rem 0;
}

.insight-section-content ul,
.insight-section-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.insight-section-content li {
    margin: 0.5rem 0;
}

.insight-section-content strong {
    color: #1f2937;
    font-weight: 600;
}

.insight-section-content em {
    font-style: italic;
    color: #6b7280;
}

.insight-section-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

/* Follow-up Interface */
.follow-up-interface {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.follow-up-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.follow-up-suggestion-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-up-suggestion-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.follow-up-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.follow-up-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

.follow-up-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.follow-up-submit-btn {
    padding: 0.75rem 1.5rem;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-up-submit-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

.follow-up-answer {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #0066ff;
}

.follow-up-answer.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.follow-up-question {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.follow-up-response {
    color: #374151;
    line-height: 1.7;
}

.follow-up-loading {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-style: italic;
}

.follow-up-error {
    padding: 1rem;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
    color: #991b1b;
}

/* ChatGPT-Style Chat Interface */
.analytics-chat {
    margin-bottom: 2rem;
}

.chat-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 600px;
    max-height: 80vh;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 16px 16px 0 0;
}

.chat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.chat-clear-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.chat-clear-btn:hover {
    background: #e5e7eb;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message-user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #f3f4f6;
}

.chat-message-user .chat-avatar {
    background: #0066ff;
    color: white;
}

.chat-content {
    flex: 1;
    max-width: 85%;
}

.chat-message-user .chat-content {
    text-align: right;
}

.chat-text {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.6;
    color: #1f2937;
    word-wrap: break-word;
}

.chat-message-user .chat-text {
    background: #0066ff;
    color: white;
    border-radius: 12px 12px 4px 12px;
}

.chat-message-assistant .chat-text {
    border-radius: 12px 12px 12px 4px;
}

.chat-text p {
    margin: 0.5rem 0;
}

.chat-text p:first-child {
    margin-top: 0;
}

.chat-text p:last-child {
    margin-bottom: 0;
}

.chat-text ul,
.chat-text ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.chat-text li {
    margin: 0.25rem 0;
}

.chat-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.chat-text table th,
.chat-text table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid #d1d5db;
}

.chat-text table th {
    background: #f9fafb;
    font-weight: 600;
}

.chat-text strong {
    font-weight: 600;
    color: inherit;
}

.chat-text code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.chat-message-user .chat-text code {
    background: rgba(255, 255, 255, 0.2);
}

.chat-loading-dots {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.chat-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: bounce 1.4s infinite ease-in-out;
}

.chat-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.chat-input-container {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    max-height: 200px;
    line-height: 1.5;
    background: white;
}

.chat-input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.chat-send-btn {
    padding: 0.75rem 1.5rem;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-send-btn:hover {
    background: #0052cc;
    transform: translateY(-1px);
}

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

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chat-suggestion-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-suggestion-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Remove old query interface styles if not needed */
.analytics-query {
    display: none; /* Hide old query interface */
}

/* Chat Sources Styling */
.chat-sources {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid #0066ff;
    font-size: 0.85rem;
}

.chat-message-user .chat-sources {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.chat-sources-header {
    font-weight: 600;
    color: #0066ff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.chat-message-user .chat-sources-header {
    color: rgba(255, 255, 255, 0.9);
}

.chat-sources-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-source-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.8rem;
}

.chat-message-user .chat-source-item {
    background: rgba(255, 255, 255, 0.15);
}

.chat-source-type {
    font-weight: 600;
    color: #6b7280;
    text-transform: capitalize;
    font-size: 0.75rem;
}

.chat-message-user .chat-source-type {
    color: rgba(255, 255, 255, 0.8);
}

.chat-source-title {
    color: #1f2937;
    flex: 1;
}

.chat-message-user .chat-source-title {
    color: rgba(255, 255, 255, 0.95);
}

.chat-source-date {
    color: #9ca3af;
    font-size: 0.75rem;
}

.chat-message-user .chat-source-date {
    color: rgba(255, 255, 255, 0.7);
}

.chat-source-similarity {
    color: #10b981;
    font-weight: 500;
    font-size: 0.75rem;
}

.chat-message-user .chat-source-similarity {
    color: #34d399;
}

/* Visualizations */
.analytics-visualizations {
    margin-bottom: 2rem;
}

.viz-header {
    background: white;
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 2rem;
    border: 1px solid #e5e7eb;
    border-bottom: none;
}

.viz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
    margin: 0 0 1rem 0;
}

.viz-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.viz-tab {
    padding: 0.75rem 1.5rem;
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.viz-tab:hover {
    background: #e5e7eb;
}

.viz-tab.active {
    background: #0066ff;
    color: white;
    border-color: #0066ff;
}

.viz-content {
    background: white;
    border-radius: 0 0 16px 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    min-height: 400px;
}

.viz-panel {
    display: none;
}

.viz-panel.active {
    display: block;
}

.viz-controls {
    margin-bottom: 1.5rem;
}

.viz-select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    min-width: 250px;
}

.chart-container-large {
    position: relative;
    height: 400px;
    margin-top: 1rem;
}

/* PR Wall */
.analytics-prs {
    margin-bottom: 2rem;
}

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

.prs-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066ff;
    margin: 0;
}

.prs-refresh-btn {
    padding: 0.5rem 1rem;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.prs-refresh-btn:hover {
    background: #0052cc;
}

.prs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pr-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f59e0b;
    transition: all 0.3s ease;
}

.pr-card:hover {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.pr-exercise {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.pr-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pr-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pr-stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.pr-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

.pr-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pr-session {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.prs-loading, .prs-empty, .prs-error {
    text-align: center;
    padding: 3rem;
    color: #666;
    grid-column: 1 / -1;
}

.prs-error {
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .query-input-wrapper {
        flex-direction: column;
    }

    .query-submit-btn {
        width: 100%;
    }

    .insights-header {
        flex-direction: column;
        align-items: stretch;
    }

    .insights-controls {
        flex-direction: column;
    }

    .insights-select,
    .insights-refresh-btn {
        width: 100%;
    }

    .viz-tabs {
        flex-direction: column;
    }

    .viz-tab {
        width: 100%;
    }

    .prs-grid {
        grid-template-columns: 1fr;
    }
}

/* Daily Check-in button styling */
.daily-checkin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.daily-checkin-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa0 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}
