/* Tuko Dashboard - Complete Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Category Colors from StyleGuide */
    --tuko-fun: #44E4AD;        /* bright mint */
    --tuko-fun-secondary: #2D715C;
    --tuko-light: #FFBD59;      /* golden yellow */
    --tuko-light-secondary: #795F38;
    --tuko-deep: #AB82FF;       /* medium purple */
    --tuko-deep-secondary: #4E406D;
    --tuko-wacky: #FF69B4;      /* hot pink */
    --tuko-wacky-secondary: #804878;
    --tuko-guided: #FFD700;     /* Gold for guided mode */
    
    /* UI Colors - Dark Theme (to match Tuko app) */
    --tuko-background: #202123; /* Dark charcoal from StyleGuide */
    --tuko-card-background: rgba(255, 255, 255, 0.05); /* Light overlay for cards */
    --tuko-card-hover-background: rgba(255, 255, 255, 0.08);
    
    /* Text Colors - Dark Theme */
    --tuko-primary-text: rgba(255, 255, 255, 0.9);
    --tuko-secondary-text: rgba(255, 255, 255, 0.6);
    --tuko-tertiary-text: rgba(255, 255, 255, 0.4);
    
    /* Border and Shadow Colors */
    --tuko-border-color: rgba(255, 255, 255, 0.1);
    --tuko-shadow-color: rgba(0, 0, 0, 0.4);
    
    /* Layout constants from StyleGuide */
    --tuko-padding: 16px;
    --tuko-corner-radius: 16px;
    --tuko-line-spacing: 4px;
    
    /* Animation constants from StyleGuide */
    --tuko-standard-duration: 0.1s;
    --tuko-interactive-duration: 0.1s;
    
    /* Dashboard-specific */
    --card-border-radius: 16px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.2s;

    --bg-color: #131313;
    --bg-card: #222222;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: #333333;
    
    --high-score: #44E4AD;
    --mid-score: #FFBD59;
    --low-score: #FF6961;
}

body {
    font-family: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: var(--tuko-primary-text);
    background-color: var(--bg-color);
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 4rem; /* Space for footer */
}

/* Typography */
h1 {
    font-size: 28px; /* from StyleGuide.Typography.xxlarge */
    font-weight: 700;
    color: var(--tuko-primary-text);
    margin: 0.5rem 0;
    letter-spacing: -0.022em;
}

h2 {
    font-size: 24px; /* from StyleGuide.Typography.xlarge */
    font-weight: 600;
    color: var(--tuko-primary-text);
    margin-bottom: 1rem;
    letter-spacing: -0.021em;
    display: flex;
    align-items: center;
}

h2::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background: var(--tuko-border-color);
    margin-left: 1rem;
}

h3 {
    font-size: 20px; /* from StyleGuide.Typography.large */
    font-weight: 500;
    color: var(--tuko-primary-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Header with Tuko branding */
header {
    background-color: var(--bg-card);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.app-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-brand:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

/* Filter Controls */
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filters select {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Debug Menu */
.debug-info {
    position: relative;
}

.debug-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 100;
    list-style: none;
    width: 180px;
    padding: 0;
}

.debug-info a:hover + .debug-menu,
.debug-menu:hover {
    display: block;
}

.debug-menu li {
    padding: 8px 12px;
    font-size: 12px;
    color: #CCC;
    cursor: pointer;
}

.debug-menu li:hover {
    background-color: #444;
    color: #FFF;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card .metric {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Device & Session metrics styling */
#unique-devices .metric,
#unique-sessions .metric {
    color: var(--tuko-fun);
}

#avg-session-duration .metric,
#sessions-per-device .metric,
#questions-per-session .metric {
    color: var(--tuko-deep);
}

#most-active-platform .metric {
    color: var(--tuko-light);
    font-size: 1.4rem;
}

/* Charts */
.charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chart-container {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chart-container h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

canvas {
    flex: 1;
    width: 100% !important;
    height: calc(100% - 2.5rem) !important;
}

/* Specific chart adjustments */
#categoryChart {
    max-height: 100%;
    margin: auto;
}

/* Device and Session Charts */
#devicePlatformChart,
#sessionMetricsChart {
    max-height: 300px;
}

/* Tables */
.table-container {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    overflow-x: auto;
}

/* Full-width table for questions with long text */
.table-container.full-width {
    width: 100%;
    max-width: 100%;
}

/* Specific styling for question text column */
.question-text-col {
    width: 50%;
    min-width: 300px;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Insight Cards */
.insight-cards {
    padding-bottom: 2.5rem;
}

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

.insight-card {
    position: relative;
    padding: 1.8rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tuko-border-color);
    border-radius: var(--tuko-corner-radius);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.insight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-top-left-radius: var(--tuko-corner-radius);
    border-bottom-left-radius: var(--tuko-corner-radius);
}

.insight-card:nth-child(1)::before {
    background: var(--tuko-fun);
}

.insight-card:nth-child(2)::before {
    background: var(--tuko-light);
}

.insight-card:nth-child(3)::before {
    background: var(--tuko-deep);
}

.insight-card:nth-child(4)::before {
    background: var(--tuko-wacky);
}

.insight-card:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--tuko-border-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.insight-card h3 {
    font-size: 15px; /* from StyleGuide.Typography.small */
    color: var(--tuko-secondary-text);
    margin-bottom: 0.75rem;
}

.insight-value {
    font-size: 28px; /* from StyleGuide.Typography.xxlarge */
    font-weight: 700;
    margin: 0.75rem 0;
    color: var(--tuko-primary-text);
    letter-spacing: -0.025em;
    line-height: 1.2;
    transition: transform var(--transition-speed) ease;
}

.insight-card:hover .insight-value {
    transform: scale(1.05);
}

.insight-info {
    font-size: 13px; /* from StyleGuide.Typography.xsmall */
    color: var(--tuko-secondary-text);
    margin-top: 0.5rem;
}

/* Insight icon styling */
.insight-icon {
    margin-bottom: 0.75rem;
}

.insight-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
    transition: transform 0.3s ease;
}

/* Insight card icon colors */
#top-category .insight-icon svg {
    stroke: var(--tuko-fun);
}

#top-growth .insight-icon svg {
    stroke: var(--tuko-light);
}

#retention-rate .insight-icon svg {
    stroke: var(--tuko-deep);
}

#peak-activity .insight-icon svg {
    stroke: var(--tuko-wacky);
}

.insight-card:hover .insight-icon svg {
    transform: scale(1.2);
}

/* Weekly Comparison */
.weekly-comparison table td:nth-child(4) {
    font-weight: 600;
}

.positive-change {
    color: var(--tuko-fun);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.positive-change::before {
    content: "▲";
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.negative-change {
    color: var(--tuko-wacky);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.negative-change::before {
    content: "▼";
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

/* Content Performance Matrix */
.matrix-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.matrix-box {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--tuko-corner-radius);
    padding: 1.8rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tuko-border-color);
}

.matrix-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.matrix-box:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--tuko-fun);
}

.matrix-box:nth-child(1)::before {
    background: var(--tuko-fun);
}

.matrix-box:nth-child(2)::before {
    background: var(--tuko-light);
}

.matrix-box:nth-child(3)::before {
    background: var(--tuko-deep);
}

.matrix-box:nth-child(4)::before {
    background: var(--tuko-wacky);
}

.matrix-box h3 {
    font-size: 17px; /* from StyleGuide.Typography.medium */
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.matrix-description {
    font-size: 13px; /* from StyleGuide.Typography.xsmall */
    color: var(--tuko-secondary-text);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--tuko-border-color);
    padding-bottom: 0.9rem;
}

.matrix-box ul {
    list-style-type: none;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 200px;
    padding-right: 0.5rem;
}

.matrix-box ul::-webkit-scrollbar {
    width: 5px;
}

.matrix-box ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.matrix-box ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.matrix-box ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.matrix-box li {
    margin-bottom: 0.7rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 15px; /* from StyleGuide.Typography.small */
    transition: all 0.2s ease;
    border: 1px solid var(--tuko-border-color);
}

.matrix-box li:hover {
    transform: translateX(4px);
    background-color: rgba(0, 0, 0, 0.3);
}

.matrix-box li .question-category {
    display: block;
    color: var(--tuko-secondary-text);
    font-size: 13px; /* from StyleGuide.Typography.xsmall */
    margin-top: 0.25rem;
}

.matrix-box li .question-stats {
    display: block;
    color: var(--tuko-secondary-text);
    font-size: 13px; /* from StyleGuide.Typography.xsmall */
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Footer styling */
footer {
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.app-icon-small {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    font-size: 12px;
    color: var(--tuko-tertiary-text);
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--tuko-fun);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Efficiency Indicators */
.efficiency-high {
    color: var(--tuko-fun);
    font-weight: 600;
}

.efficiency-medium {
    color: var(--tuko-light);
    font-weight: 600;
}

.efficiency-low {
    color: var(--tuko-wacky);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .summary-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .charts {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters {
        margin-top: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    main {
        padding: 1rem;
    }
    
    .card .metric {
        font-size: 1.5rem;
    }
}

/* Buttons */
button, .button {
    background-color: var(--tuko-fun);
    color: #000000;
    border: none;
    border-radius: var(--tuko-corner-radius);
    padding: 0.7rem 1.8rem;
    font-size: 17px; /* from StyleGuide.Typography.medium */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

button:hover, .button:hover {
    background-color: var(--tuko-fun-secondary);
    transform: translateY(-2px);
}

button:active, .button:active {
    transform: translateY(0);
}

button.secondary, .button.secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--tuko-primary-text);
    border: 1px solid var(--tuko-border-color);
}

button.secondary:hover, .button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Scoring Classes */
.high-score {
    color: var(--high-score);
    font-weight: bold;
}

.mid-score {
    color: var(--mid-score);
}

.low-score {
    color: var(--low-score);
}

/* Mobile-friendly Table Adjustments */
@media (max-width: 767px) {
  /* Card-style layout for tables on mobile */
  .top-questions table {
    display: block;
    width: 100%;
  }
  
  .top-questions thead {
    display: none; /* Hide table headers on mobile */
  }
  
  .top-questions tbody {
    display: block;
    width: 100%;
  }
  
  .top-questions tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tuko-border-color);
    border-radius: var(--tuko-corner-radius);
  }
  
  .top-questions td {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    align-items: flex-start;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
    white-space: normal;
    flex-wrap: wrap;
  }
  
  .top-questions td:last-child {
    border-bottom: none;
  }
  
  /* Increase question text size and prevent truncation */
  .top-questions td:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    line-height: 1.4;
    max-width: 100%;
    text-overflow: initial;
    white-space: normal;
  }
  
  /* Add pseudo elements for labels */
  .top-questions td:nth-of-type(1):before { 
    content: "Question: "; 
    font-weight: 500; 
    margin-right: 0.5rem; 
    color: var(--text-secondary); 
    min-width: 85px;
  }
  
  /* Format the remaining label prefixes */
  .top-questions td:nth-of-type(2):before,
  .top-questions td:nth-of-type(3):before,
  .top-questions td:nth-of-type(4):before,
  .top-questions td:nth-of-type(5):before,
  .top-questions td:nth-of-type(6):before,
  .top-questions td:nth-of-type(7):before {
    font-weight: 500;
    margin-right: 0.5rem;
    color: var(--text-secondary);
    min-width: 85px;
    flex-shrink: 0;
  }
  
  .top-questions td:nth-of-type(2):before { content: "Category: "; }
  .top-questions td:nth-of-type(3):before { content: "Views: "; }
  .top-questions td:nth-of-type(4):before { content: "Avg. Time: "; }
  .top-questions td:nth-of-type(5):before { content: "Total Time: "; }
  .top-questions td:nth-of-type(6):before { content: "Bookmarks: "; }
  .top-questions td:nth-of-type(7):before { content: "Engagement: "; }
  
  /* Ensure question text has enough space */
  .top-questions td:first-of-type:before {
    flex-shrink: 0;
  }
  
  .top-questions td:first-of-type span,
  .top-questions td:first-of-type div {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: calc(100% - 85px);
    width: calc(100% - 85px);
    display: inline-block;
  }
}

/* Apply similar mobile styling to category insights table */
@media (max-width: 767px) {
  .category-insights table {
    display: block;
    width: 100%;
  }
  
  .category-insights thead {
    display: none;
  }
  
  .category-insights tbody {
    display: block;
    width: 100%;
  }
  
  .category-insights tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--tuko-border-color);
    border-radius: var(--tuko-corner-radius);
  }
  
  .category-insights td {
    display: flex;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    align-items: flex-start;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  
  .category-insights td:last-child {
    border-bottom: none;
  }
  
  /* Increase category name text size */
  .category-insights td:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  /* Add pseudo elements for labels */
  .category-insights td:nth-of-type(1):before { content: "Category: "; font-weight: 500; margin-right: 0.5rem; color: var(--text-secondary); min-width: 105px; }
  .category-insights td:nth-of-type(2):before { content: "Questions: "; font-weight: 500; margin-right: 0.5rem; color: var(--text-secondary); min-width: 105px; }
  .category-insights td:nth-of-type(3):before { content: "Total Views: "; font-weight: 500; margin-right: 0.5rem; color: var(--text-secondary); min-width: 105px; }
  .category-insights td:nth-of-type(4):before { content: "Avg. Time/View: "; font-weight: 500; margin-right: 0.5rem; color: var(--text-secondary); min-width: 105px; }
  .category-insights td:nth-of-type(5):before { content: "Bookmark Rate: "; font-weight: 500; margin-right: 0.5rem; color: var(--text-secondary); min-width: 105px; }
  .category-insights td:nth-of-type(6):before { content: "Engagement: "; font-weight: 500; margin-right: 0.5rem; color: var(--text-secondary); min-width: 105px; }
}

/* Ensure "Total Time" column is always visible */
.top-questions table th:nth-child(5),
.top-questions table td:nth-child(5) {
    display: table-cell !important;
    min-width: 100px;
}

/* Add some spacing for better readability */
.top-questions table th,
.top-questions table td {
    padding: 0.75rem 0.5rem;
}

/* Improve question text display */
.top-questions table td:first-child span {
    display: block;
    line-height: 1.4;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    min-width: 250px;
}

/* Remove tooltip since we're showing full text */
.top-questions table td:first-child span:hover {
    position: static;
}

/* Remove the tooltip after effect since we show the full text */
.top-questions table td:first-child span[title]:hover::after {
    content: none;
}

/* Adjust column widths for desktop to accommodate full question text */
@media (min-width: 768px) {
    .top-questions table th:first-child,
    .top-questions table td:first-child {
        min-width: 300px;
        width: 50%;
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Make the table horizontally scrollable to accommodate long questions */
    .top-questions .table-container {
        overflow-x: auto;
    }
}