/* Official UVA Batten Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Official UVA Color Palette - Matching Batten Space */
    --uva-blue: #232D4B;
    --uva-orange: #E57200;
    --uva-light-blue: #87AFC7;
    --uva-gray: #666666;
    --uva-light-gray: #DADADA;
    --uva-white: #FFFFFF;
    --uva-dark-blue: #232D4B;

    /* Extended palette for data visualization */
    --uva-success: #2E8B57;
    --uva-warning: #E57200;
    --uva-danger: #B22222;
    --uva-info: #87AFC7;

    /* Platform Colors */
    --instagram: #E91E63;
    --linkedin: #0077B5;
    --twitter: #1DA1F2;
    --facebook: #1877F2;
}

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

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background: #fafafa;
    color: var(--uva-dark-blue);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Background with gradient overlay - using pseudo-elements to avoid filter affecting content */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/garrett-hall-sunset.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: -2;
}

/* Gradient overlay on top of background image */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(250, 250, 250, 0.85),
        rgba(250, 250, 250, 0.85)
    );
    z-index: -1;
}

/* Official UVA Batten Font - Libre Baskerville for everything */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    color: var(--uva-blue);
}

header {
    background: var(--uva-blue);
    color: var(--uva-white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(35, 45, 75, 0.2);
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 62px;
    width: auto;
    filter: brightness(0) invert(1);
}

.controls {
    display: flex;
    gap: 1rem;
}

.controls button {
    background: var(--uva-orange);
    border: 2px solid var(--uva-orange);
    color: var(--uva-white);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(229, 114, 0, 0.3);
}

.controls button:hover {
    background: var(--uva-white);
    color: var(--uva-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 114, 0, 0.4);
}

/* Key Metrics Summary Bar */
.metrics-summary {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(35, 45, 75, 0.1);
    border: 1px solid var(--uva-light-gray);
    max-width: calc(2200px - 4rem);
    margin: 2rem auto;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--uva-white);
    border: 2px solid rgba(35, 45, 75, 0.2);
    box-shadow:
        0 6px 20px rgba(35, 45, 75, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(35, 45, 75, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--uva-dark-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--uva-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.metric-change.positive {
    color: var(--uva-success);
    background: rgba(46, 139, 87, 0.1);
}

.metric-change.positive::before {
    content: "↗ ";
}

.metric-change.negative {
    color: var(--uva-danger);
    background: rgba(178, 34, 34, 0.1);
}

.metric-change.negative::before {
    content: "↘ ";
}

.metric-description {
    font-size: 0.75rem;
    color: var(--uva-gray);
    margin-top: 0.5rem;
    line-height: 1.3;
    font-style: italic;
}

/* Tab Navigation - Filing Cabinet Style */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.5rem 2rem 0 2rem;
    max-width: 2200px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 10;
}

.tab-btn {
    flex: 1;
    max-width: 300px;
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    border: 3px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    margin-bottom: -3px;
}

/* Bottom edge extension to overlap with panel border */
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 6px;
    background: inherit;
    border-radius: 0;
}

/* Default solid colors for each tab (slightly transparent when inactive) */
.tab-btn[data-tab="executive"] {
    background: rgba(35, 45, 75, 0.75);
    border-color: rgba(35, 45, 75, 0.75);
}

.tab-btn[data-tab="analytics"] {
    background: rgba(229, 114, 0, 0.75);
    border-color: rgba(229, 114, 0, 0.75);
}

.tab-btn[data-tab="sprout"] {
    background: rgba(46, 139, 87, 0.75);
    border-color: rgba(46, 139, 87, 0.75);
}

.tab-btn[data-tab="mentions"] {
    background: rgba(155, 89, 182, 0.75);
    border-color: rgba(155, 89, 182, 0.75);
}

.tab-btn[data-tab="meltwater"] {
    background: rgba(90, 159, 189, 0.75);
    border-color: rgba(90, 159, 189, 0.75);
}

.tab-btn[data-tab="salesforce"] {
    background: rgba(233, 30, 99, 0.75);
    border-color: rgba(233, 30, 99, 0.75);
}

/* Hover effect - brighten without moving */
.tab-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
}

.tab-btn.active {
    position: relative;
    z-index: 15;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

/* Active tab extends further down to ensure seamless connection */
.tab-btn.active::after {
    height: 10px;
    bottom: -6px;
}

/* Full opacity solid colors when active */
.tab-btn[data-tab="executive"].active {
    background: var(--uva-blue);
    border-color: var(--uva-blue);
}

.tab-btn[data-tab="analytics"].active {
    background: var(--uva-orange);
    border-color: var(--uva-orange);
}

.tab-btn[data-tab="sprout"].active {
    background: #2E8B57;
    border-color: #2E8B57;
}

.tab-btn[data-tab="mentions"].active {
    background: #9B59B6;
    border-color: #9B59B6;
}

.tab-btn[data-tab="meltwater"].active {
    background: #5A9FBD;
    border-color: #5A9FBD;
}

.tab-btn[data-tab="salesforce"].active {
    background: #E91E63;
    border-color: #E91E63;
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-text {
    font-size: 1rem;
}

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 2rem 2rem 2rem;
    max-width: 2200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.dashboard-container.single-column {
    grid-template-columns: 1fr;
}

.api-panel {
    background: var(--uva-white);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 20px rgba(35, 45, 75, 0.15);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 3px solid var(--uva-blue);
    border-top: none;
    display: none;
}

/* Panel border colors to match their tabs */
#executive-panel {
    border-color: var(--uva-blue);
}

#analytics-panel {
    border-color: var(--uva-orange);
}

#sprout-panel {
    border-color: #2E8B57;
}

#meltwater-panel {
    border-color: #5A9FBD;
}

#salesforce-panel {
    border-color: #E91E63;
}

.api-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.api-panel:hover {
    box-shadow: 0 12px 28px rgba(35, 45, 75, 0.2);
}

.panel-header {
    background: var(--uva-blue);
    color: var(--uva-white);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--uva-orange);
}

#meltwater-panel .panel-header {
    border-bottom-color: var(--uva-light-blue);
}

#sprout-panel .panel-header {
    border-bottom-color: var(--uva-success);
}

#analytics-panel .panel-header {
    border-bottom-color: var(--uva-orange);
}

#salesforce-panel .panel-header {
    border-bottom-color: #E91E63;
}

#executive-panel .panel-header {
    border-bottom-color: var(--uva-blue);
}

.panel-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--uva-white) !important;
}

.data-source-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--uva-orange);
    color: var(--uva-white);
    padding: 0.35rem 0.8rem;
    border-radius: 16px;
    letter-spacing: 0.5px;
    border: 2px solid var(--uva-white);
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Badge color variants */
.data-source-badge.badge-orange {
    background: var(--uva-orange);
}

.data-source-badge.badge-green {
    background: var(--uva-success);
}

.data-source-badge.badge-blue {
    background: #0077B5;
}

.data-source-badge.badge-pink {
    background: #E91E63;
}

.data-source-badge.badge-lightblue {
    background: var(--uva-light-blue);
    color: var(--uva-blue);
}

.date-range-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--uva-white);
    color: var(--uva-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.date-range-select:hover {
    background: var(--uva-white);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.date-range-select:focus {
    border-color: var(--uva-orange);
    box-shadow: 0 0 0 3px rgba(229, 114, 0, 0.2);
}

.refresh-btn {
    background: transparent;
    border: 2px solid var(--uva-white);
    color: var(--uva-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--uva-white);
    color: var(--uva-blue);
    transform: translateY(-1px);
}

/* Per-panel date range dropdown */
.panel-date-range {
    background: transparent;
    border: 2px solid var(--uva-white);
    color: var(--uva-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
    min-width: 140px;
}

.panel-date-range:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.panel-date-range:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.panel-date-range option {
    background: var(--uva-blue);
    color: var(--uva-white);
    padding: 0.5rem;
}

/* Date controls container */
.date-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Custom date range picker */
.custom-date-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.date-input {
    background: transparent;
    border: 2px solid var(--uva-white);
    color: var(--uva-white);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-input:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.date-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Webkit date picker styling */
.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.date-separator {
    color: var(--uva-white);
    font-size: 0.85rem;
    opacity: 0.8;
}

.apply-date-btn {
    background: var(--uva-orange);
    border: 2px solid var(--uva-orange);
    color: var(--uva-white);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apply-date-btn:hover {
    background: var(--uva-white);
    color: var(--uva-orange);
    transform: translateY(-1px);
}

.panel-info {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--uva-light-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.panel-info p {
    margin: 0.5rem 0;
    color: var(--uva-dark-blue);
}

.panel-info strong {
    color: var(--uva-blue);
    font-weight: 600;
}

.panel-content {
    padding: 2rem;
    min-height: 350px;
    position: relative;
    background: var(--uva-white);
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--uva-gray);
    font-style: italic;
    font-size: 1.1rem;
}

.data-display {
    display: none;
}

.data-display.show {
    display: block;
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.chart-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.chart-item canvas {
    max-width: 100%;
    height: 300px !important;
}

.chart-item h3 {
    color: var(--uva-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Analytics Multi-Chart Layout */
.chart-container-full {
    margin-bottom: 2rem;
    background: var(--uva-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(35, 45, 75, 0.08);
}

.chart-container-full canvas {
    max-height: 350px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--uva-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(35, 45, 75, 0.15);
    box-shadow:
        0 6px 20px rgba(35, 45, 75, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(35, 45, 75, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chart-card canvas {
    max-height: 300px;
}

@media (max-width: 1024px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(229, 114, 0, 0.1);
    border-top-color: var(--uva-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

/* Data Item Styles */
.data-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #FAFBFC;
    border-radius: 8px;
    border-left: 4px solid var(--uva-orange);
    box-shadow: 0 2px 8px rgba(35, 45, 75, 0.08);
}

.data-item h3 {
    margin-bottom: 0.75rem;
    color: var(--uva-dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
}

.data-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--uva-gray);
    line-height: 1.5;
}

/* Details Section */
.details-section {
    background: var(--uva-white);
    border: 1px solid var(--uva-light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(35, 45, 75, 0.06);
}

.details-section h4 {
    color: var(--uva-dark-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--uva-orange);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expand-arrow {
    font-size: 1.2rem;
    color: var(--uva-orange);
    transition: transform 0.3s ease;
}

.expand-arrow.expanded {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.expandable-content.expanded {
    max-height: 2000px;
}

/* Summary Stats Section */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(135, 175, 199, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--uva-light-blue);
}

.summary-stats .stat-label {
    font-weight: 600;
    color: var(--uva-dark-blue);
    font-size: 0.9rem;
}

.summary-stats .stat-value {
    font-weight: 700;
    color: var(--uva-blue);
    font-size: 1rem;
    text-align: right;
}

/* Error & Success States */
.error {
    color: var(--uva-danger);
    background: #FFF5F5;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #FECACA;
    box-shadow: 0 2px 8px rgba(178, 34, 34, 0.1);
}

.success {
    color: var(--uva-success);
    background: #F0FDF4;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #BBF7D0;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.1);
}

/* Top Post Cards */
.top-posts-grid {
    display: grid;
    gap: 1rem;
}

.top-post-card {
    background: var(--uva-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(35, 45, 75, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.top-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 45, 75, 0.15);
}

.top-post-rank {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--uva-orange);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(229, 114, 0, 0.3);
}

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

.top-post-network {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-post-date {
    font-size: 0.8rem;
    color: var(--uva-gray);
}

.top-post-text {
    color: var(--uva-dark-blue);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.top-post-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--uva-light-gray);
}

.metric-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.metric-icon {
    font-size: 1.2rem;
}

.metric-value {
    font-weight: 700;
    color: var(--uva-dark-blue);
    font-size: 0.95rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--uva-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--uva-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.post-link:hover {
    text-decoration: underline;
}

/* Platform Posts Section */
.platform-posts-section {
    margin-bottom: 1.5rem;
}

.platform-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.platform-posts-list {
    padding-left: 1rem;
}

.post-summary {
    padding: 0.75rem;
    border-bottom: 1px solid var(--uva-light-gray);
}

.post-summary:last-child {
    border-bottom: none;
}

.post-summary-text {
    color: var(--uva-dark-blue);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.post-summary-meta {
    font-size: 0.75rem;
    color: var(--uva-gray);
}

.post-summary-more {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: var(--uva-gray);
    font-style: italic;
    font-size: 0.85rem;
}

/* Expandable Content Animations */
.expandable-content {
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.expand-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.expand-arrow.collapsed {
    transform: rotate(-90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .tab-btn {
        max-width: none;
        flex: 1 1 45%;
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .metrics-summary {
        padding: 1rem;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .tab-navigation {
        padding: 1rem;
        gap: 0.25rem;
    }

    .tab-btn {
        flex: 1 1 100%;
        padding: 0.75rem 1rem 1rem 1rem;
        border-radius: 8px 8px 0 0;
    }

    .tab-text {
        font-size: 0.9rem;
    }

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

    .dashboard-container {
        padding: 0 1rem 1rem 1rem;
        grid-template-columns: 1fr;
    }

    .panel-content {
        padding: 1rem;
    }
}

/* Google Analytics Specific Styles */
.analytics-summary {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    border: 1px solid var(--uva-light-gray);
}

.analytics-summary h3 {
    color: var(--uva-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--uva-orange);
    padding-bottom: 0.5rem;
}

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

.stats-grid .stat-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--uva-orange);
    box-shadow: 0 2px 6px rgba(35, 45, 75, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-grid .stat-label {
    font-size: 0.85rem;
    color: var(--uva-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stats-grid .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uva-blue);
    line-height: 1;
}

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

.breakdown-column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--uva-light-gray);
    box-shadow: 0 2px 8px rgba(35, 45, 75, 0.08);
}

.breakdown-column h3 {
    color: var(--uva-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--uva-orange);
    padding-bottom: 0.5rem;
}

.pages-list, .sources-list, .devices-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-item, .source-item, .device-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--uva-light-blue);
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(35, 45, 75, 0.08);
}

.page-item:hover, .source-item:hover, .device-item:hover {
    border-left-color: var(--uva-orange);
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(35, 45, 75, 0.12);
}

.page-info, .source-info, .device-info {
    margin-bottom: 0.5rem;
}

.page-title, .source-channel, .device-name {
    font-weight: 600;
    color: var(--uva-blue);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.page-path {
    font-size: 0.8rem;
    color: var(--uva-gray);
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    margin-top: 0.25rem;
}

.page-stats, .source-stats, .device-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-views, .page-time, .source-sessions, .source-engagement,
.device-sessions, .device-views {
    font-size: 0.85rem;
    color: var(--uva-gray);
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
}

.device-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--uva-orange);
}

/* Sprout Social Specific Styles */
.metric-card-sprout {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--uva-blue);
    border-left: 4px solid var(--uva-blue);
    box-shadow:
        0 6px 20px rgba(35, 45, 75, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.metric-card-sprout:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(35, 45, 75, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.metric-card-sprout .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uva-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-card-sprout .metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--uva-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.metric-card-sprout .metric-sublabel {
    font-size: 0.8rem;
    color: var(--uva-gray);
}
