/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1e293b;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #fc0060;
    font-size: 1.1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(252, 0, 96, 0.2);
    border-top: 4px solid #fc0060;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #fc0060;
    text-align: center;
    padding: 2rem;
}

.error h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.error code {
    background: rgba(252, 0, 96, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #fc0060;
}

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

/* Header */
.header {
    background: #fc0060;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(252, 0, 96, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.client-name {
    color: #fbbf24;
    font-weight: 600;
}

.campaign-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
}

.header-logo {
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
}

/* Navigation Tabs */
.nav-tabs {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-list {
    display: flex;
    gap: 1rem;
}

.nav-item {
    color: #64748b;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.nav-item:hover {
    color: #fc0060;
    background: rgba(252, 0, 96, 0.05);
}

.nav-item.active {
    color: white;
    background: #fc0060;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Overview Tab Styles */
.overview-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.overview-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fc0060;
}

.overview-stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.overview-stat-value {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
}

.overview-countries {
    font-size: 1.2rem !important;
    line-height: 1.3;
}

/* Overview Breakdown Section */
.overview-breakdown-section {
    margin-top: 2rem;
}

.overview-breakdown-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.overview-breakdown-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.overview-breakdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.overview-breakdown-icon {
    font-size: 1.5rem;
    color: #fc0060;
}

.overview-breakdown-name {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.overview-breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overview-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.overview-breakdown-item-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
}

.overview-breakdown-item-value {
    color: #1e293b;
    font-weight: 600;
}

.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.platform-icon.tiktok {
    background-color: #000000;
}

.platform-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.platform-icon.youtube {
    background-color: #ff0000;
}

/* Search and Filter Section */
.search-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1e293b;
    transition: border-color 0.3s ease;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    outline: none;
    border-color: #fc0060;
}

.status-filter {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.status-filter:focus {
    outline: none;
    border-color: #fc0060;
}

.status-filter option {
    background: white;
    color: #1e293b;
}

.refresh-btn {
    padding: 0.75rem 1.5rem;
    background: #fc0060;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #e6005a;
    transform: translateY(-1px);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
    border: 2px solid #e2e8f0;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    color: #fc0060;
}

.view-toggle-btn.active {
    background: #fc0060;
    color: white;
}

.grid-icon::before {
    content: '⊞';
    font-size: 1rem;
}

.table-icon::before {
    content: '☰';
    font-size: 1rem;
}

/* Metrics Summary */
.metrics-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    justify-content: space-between;
}

.summary-metric {
    text-align: center;
    flex: 1;
}

.summary-metric-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary-metric-value {
    color: #fc0060;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Influencers Grid */
.influencers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.influencer-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.influencer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.influencer-info h3 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.handle {
    color: #64748b;
    font-size: 0.9rem;
}

.clickable-handle {
    color: #fc0060;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.clickable-handle:hover {
    color: #e6005a;
}

.profile-link-icon {
    font-size: 0.7rem;
    opacity: 0.8;
}

.influencer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.metric-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-value {
    color: #fc0060;
    font-size: 1.2rem;
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
}

.platform-badge.platform-tiktok {
    background-color: #000000;
    color: white;
}

.platform-badge.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.platform-badge.platform-youtube {
    background-color: #ff0000;
    color: white;
}

/* Influencers Table */
.influencers-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.table-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background: #f8fafc;
}

.table-row:last-child {
    border-bottom: none;
}

.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

.table-influencer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.table-name {
    color: #1e293b;
    font-weight: 600;
}

.table-handle {
    color: #64748b;
    font-size: 0.9rem;
}

.content-table-row .table-metric {
    font-weight: 600;
    color: #1e293b;
}

.table-metric {
    color: #1e293b;
    font-weight: 600;
}

.table-platform-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.table-platform-badge.platform-tiktok {
    background-color: #000000;
    color: white;
}

.table-platform-badge.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.table-platform-badge.platform-youtube {
    background-color: #ff0000;
    color: white;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.content-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.content-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-thumbnail-fallback {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
}

.stories-thumbnail-container {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.stories-icon-container {
    text-align: center;
    color: #fc0060;
}

.stories-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stories-count {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.stories-label {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fc0060;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.content-info {
    padding: 1rem;
}

.content-title {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-creator {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    color: #475569;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .content-creator {
        font-size: 0.8rem;
    }
}

/* Style specifically for the follower count */
.content-creator .creator-followers {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 400;
    opacity: 0.8;
}

.content-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.content-footer {
    padding: 0 1rem 1rem;
}

.content-platform-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.content-platform-badge.platform-tiktok {
    background-color: #000000;
    color: white;
}

.content-platform-badge.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.content-platform-badge.platform-youtube {
    background-color: #ff0000;
    color: white;
}

.content-metrics-expanded {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.content-metric[data-metric="reach"] {
    display: none;
}

.content-metric {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.metric-icon {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
    color: #fc0060;
}

.metric-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Content Table with Sorting */
.content-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.content-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sortable-header:hover {
    background-color: rgba(252, 0, 96, 0.05);
    color: #fc0060;
}

.sort-indicator {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    min-width: 12px;
    text-align: center;
    color: #fc0060;
}

.content-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.content-table-row:hover {
    background: #f8fafc;
}

.content-table-row:last-child {
    border-bottom: none;
}

.table-content-title {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.8em;
    word-break: break-word;
}

.table-content-title-link {
    color: #fc0060;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.table-content-title-link:hover {
    color: #e6005a;
    text-decoration: underline;
}

.external-link-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.table-content-creator {
    color: #64748b;
    font-weight: 500;
}

.table-content-date {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Results Tab */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.campaign-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.campaign-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

.platform-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-tab {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-tab:hover {
    border-color: #fc0060;
    color: #fc0060;
}

.platform-tab.active {
    background: #fc0060;
    border-color: #fc0060;
    color: white;
    font-weight: 600;
}

.filter-button {
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-button:hover {
  border-color: #fc0060;
  color: #fc0060;
}

.filter-button.active {
  background: #fc0060;
  border-color: #fc0060;
  color: white;
  font-weight: 600;
}

/* Optional: subtle separation between the two rows */
#platformFilters.platform-tabs { margin-bottom: 0.75rem; }
#subFilters.platform-tabs { margin-top: -0.25rem; }

/* Keyboard focus (accessibility) */
.filter-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 0, 96, 0.15);
}

/* Responsive behavior to match your .platform-tab rules */
@media (max-width: 1000px) {
  .filter-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Sub-filter row (e.g., Instagram: Posts/Reels/Stories) */
#subFilters.platform-tabs {
  gap: 0.4rem;
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

/* Chip-style buttons for sub-filters */
.subfilter-tab {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.5rem 1rem;
  border-radius: 9999px;      /* pill */
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.subfilter-tab:hover {
  background: #ffffff;
  border-color: #fc0060;
  color: #fc0060;
}

.subfilter-tab.active {
  background: #fc0060;
  border-color: #fc0060;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(252, 0, 96, 0.15);
}

/* Keyboard focus */
.subfilter-tab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 0, 96, 0.15);
}

/* Mobile: match your platform-tab behavior */
@media (max-width: 1000px) {
  .subfilter-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

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

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

.result-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.result-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fc0060;
}

.result-stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-stat-value {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Weekly Results Section */
.weekly-results-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.weekly-results-title {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weekly-results-icon {
    font-size: 1.8rem;
    color: #fc0060;
}

.chart-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.chart-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-control-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
    white-space: nowrap;
}

.chart-control-group select,
.chart-control-group button {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-control-group select:focus,
.chart-control-group button:focus {
    outline: none;
    border-color: #fc0060;
    box-shadow: 0 0 0 3px rgba(252, 0, 96, 0.1);
}

.chart-control-group select:hover {
    border-color: #9ca3af;
}

.chart-control-group button {
    background: #fc0060;
    color: white;
    border-color: #fc0060;
    font-weight: 500;
}

.chart-control-group button:hover {
    background: #e6005a;
    border-color: #e6005a;
}

/* Weekly Charts Grid - Updated for 10 weeks */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Chart container adjustments for better display with 10 weeks */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    min-height: 280px;
}

.chart-title {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chart-canvas {
    position: relative;
    height: 250px;
}

.chart-container canvas {
    max-width: 100%;
}

/* Loading state for charts */
.chart-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.chart-container.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(252, 0, 96, 0.2);
    border-top: 4px solid #fc0060;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Week range selector styles */
.week-range-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.week-range-selector label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.week-range-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    min-width: 100px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.week-range-selector select:focus {
    outline: none;
    border-color: #fc0060;
    box-shadow: 0 0 0 3px rgba(252, 0, 96, 0.1);
}

.week-range-selector select:hover {
    border-color: #9ca3af;
}

.week-range-selector .btn-secondary {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.week-range-selector .btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Weekly range summary */
.weekly-range-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.range-summary-title {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

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

.range-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.range-stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.range-stat-value {
    color: #fc0060;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.range-stat-avg {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Weekly growth indicator */
.weekly-growth-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.weekly-growth-indicator.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.weekly-growth-indicator.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.weekly-growth-indicator .arrow {
    font-size: 0.7rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.empty-state h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Campaign Info Section */
.campaign-info-section {
    margin-bottom: 2rem;
}

.campaign-info-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.campaign-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.campaign-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.campaign-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.campaign-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.campaign-info-icon {
    font-size: 1.5rem;
    color: #fc0060;
}

.campaign-info-card-title {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.campaign-info-content {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* Analysis Tab Styles */
.analysis-section {
    margin-bottom: 3rem;
}

.analysis-section:last-child {
    margin-bottom: 0;
}

.analysis-section-title {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analysis-section-icon {
    font-size: 1.8rem;
    color: #fc0060;
}

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

.analysis-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: fit-content;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.analysis-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.analysis-card-icon {
    font-size: 1.3rem;
    color: #fc0060;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.analysis-card-title {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.analysis-card-content {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* Key Findings Section Styling */
.key-findings {
    background: linear-gradient(135deg, rgba(252, 0, 96, 0.02) 0%, rgba(252, 0, 96, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.key-findings .analysis-card {
    background: white;
    border: 1px solid rgba(252, 0, 96, 0.1);
}

/* Recommendations Section Styling */
.recommendations {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
}

.recommendations .analysis-section-title {
    color: #1e293b;
}

.recommendations .analysis-section-icon {
    color: #3b82f6;
}

.recommendations .analysis-card {
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.recommendations .analysis-card-icon {
    color: #3b82f6;
}

/* Content Sort Container */
.content-sort-container {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.content-sort-container label {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.content-sort-container select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-sort-container select:focus {
    outline: none;
    border-color: #fc0060;
    box-shadow: 0 0 0 3px rgba(252, 0, 96, 0.1);
}

.content-sort-container select:hover {
    border-color: #9ca3af;
}

#contentGrid .content-sort-container {
    grid-column: 1 / -1;
}

/* Platform styles */
.platform-badge.platform-linkedin,
.platform-badge.platform-facebook,
.platform-badge.platform-twitter {
    background-color: #6b7280;
    color: white;
}

.table-platform-badge.platform-linkedin,
.table-platform-badge.platform-facebook,
.table-platform-badge.platform-twitter {
    background-color: #6b7280;
    color: white;
}

.content-platform-badge.platform-linkedin,
.content-platform-badge.platform-facebook,
.content-platform-badge.platform-twitter {
    background-color: #6b7280;
    color: white;
}

.platform-icon.linkedin,
.platform-icon.facebook,
.platform-icon.twitter {
    background-color: #6b7280;
}

/* Bonus content label */
.bonus-label {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #fbbf24;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Responsive Design - Charts specific */
@media (min-width: 1600px) {
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1.2fr 1fr 0.8fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr;
        font-size: 0.85rem;
    }
    
    .charts-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

@media (max-width: 1200px) {
    .dashboard {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: unset;
    }
    
    .metrics-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 1fr 0.8fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr;
        font-size: 0.8rem;
    }
    
    .sortable-header {
        padding: 0.25rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-canvas {
        height: 230px;
    }
    
    .analysis-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 1000px) {
    .overview-stats-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .overview-breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .influencers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .results-stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .platform-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 1fr 0.8fr 0.6fr 0.6fr 0.6fr 0.6fr;
    }
    
    .content-table-header > div:nth-child(10),
    .content-table-header > div:nth-child(11),
    .content-table-header > div:nth-child(12),
    .content-table-row > div:nth-child(10),
    .content-table-row > div:nth-child(11),
    .content-table-row > div:nth-child(12) {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .overview-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-stat-value {
        font-size: 1.4rem;
    }
    
    .influencers-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .results-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .table-header > div:nth-child(1),
    .table-header > div:nth-child(5),
    .table-row > div:nth-child(1),
    .table-row > div:nth-child(5) {
        display: none;
    }
    
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 0.8fr 0.6fr 0.6fr;
    }
    
    .content-table-header > div:nth-child(4),
    .content-table-header > div:nth-child(6),
    .content-table-header > div:nth-child(7),
    .content-table-header > div:nth-child(8),
    .content-table-row > div:nth-child(4),
    .content-table-row > div:nth-child(6),
    .content-table-row > div:nth-child(7),
    .content-table-row > div:nth-child(8) {
        display: none;
    }
    
    .campaign-info-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-info-card {
        padding: 1rem;
    }
    
    .campaign-info-content {
        font-size: 0.9rem;
    }
    
    .key-findings,
    .recommendations {
        padding: 1.5rem;
    }
    
    .analysis-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analysis-card {
        padding: 1.25rem;
    }
    
    .analysis-section-title {
        font-size: 1.5rem;
    }
    
    .analysis-card-content {
        font-size: 0.9rem;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-control-group {
        justify-content: space-between;
    }
    
    .chart-container {
        padding: 1.25rem;
        min-height: 250px;
    }
    
    .chart-canvas {
        height: 200px;
    }
    
    .week-range-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .week-range-selector select,
    .week-range-selector .btn-secondary {
        width: 100%;
    }
    
    .content-sort-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .content-sort-container select {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .overview-stats-row {
        grid-template-columns: 1fr;
    }
    
    .results-stats-container {
        grid-template-columns: 1fr;
    }
    
    .content-metrics-expanded {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 0.8fr;
    }
    
    .content-table-header > div:nth-child(n+4),
    .content-table-row > div:nth-child(n+4) {
        display: none;
    }
    
    .analysis-section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-container {
        padding: 1rem;
        min-height: 220px;
    }
    
    .chart-canvas {
        height: 180px;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .content-sort-container {
        padding: 0.75rem;
    }
    
    .content-sort-container label {
        font-size: 0.875rem;
    }
    
    .content-sort-container select {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .range-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* Export PDF Button Styles */
.export-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #fc0060;
    border: 2px solid #fc0060;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-pdf-btn:hover {
    background: #fc0060;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 0, 96, 0.3);
}

.export-pdf-btn:active {
    transform: translateY(0);
}

.export-icon {
    font-size: 18px;
}

/* If placed in header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* If placed in nav as separate button */
.nav-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-export {
    margin-left: auto;
}

/* Loading state for export button */
.export-pdf-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.export-pdf-btn.loading .export-icon {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .export-pdf-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .export-icon {
        font-size: 16px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* Add these styles to your styles.css file */

/* =============================================================================
   PAID MEDIA TAB STYLES
   ============================================================================= */

.paid-media-header {
    text-align: center;
    margin-bottom: 2rem;
}

.paid-media-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.paid-media-stat-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.paid-media-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #fc0060;
}

.paid-media-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fc0060, #ff8099);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paid-media-stat-box:hover::before {
    opacity: 1;
}

.paid-media-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fc0060;
    animation: fadeIn 0.5s ease;
}

.paid-media-stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.paid-media-stat-value {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

/* Special styling for percentage values */
.paid-media-stat-value:contains('%') {
    color: #10b981;
}

/* Special styling for currency values */
.paid-media-stat-box .paid-media-stat-value {
    font-variant-numeric: tabular-nums;
}

/* Platform filter active state for Paid Media */
#paidMediaFilters .platform-tab {
    position: relative;
}

#paidMediaFilters .platform-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #fc0060;
    border-radius: 2px;
}

/* Empty state for paid media */
#paidMedia .empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin: 2rem auto;
    max-width: 600px;
}

#paidMedia .empty-state h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#paidMedia .empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design for Paid Media */
@media (max-width: 1200px) {
    .paid-media-stats-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    .paid-media-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .paid-media-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .paid-media-stat-box {
        padding: 1.25rem;
    }
    
    .paid-media-stat-icon {
        font-size: 1.5rem;
    }
    
    .paid-media-stat-label {
        font-size: 0.85rem;
    }
    
    .paid-media-stat-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .paid-media-stats-container {
        grid-template-columns: 1fr;
    }
    
    .paid-media-stat-box {
        padding: 1rem;
    }
    
    .paid-media-header .campaign-title {
        font-size: 1.5rem;
    }
    
    .paid-media-header .campaign-subtitle {
        font-size: 1rem;
    }
}

/* Animation for card appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paid-media-stat-box {
    animation: slideInUp 0.4s ease backwards;
}

.paid-media-stat-box:nth-child(1) { animation-delay: 0.05s; }
.paid-media-stat-box:nth-child(2) { animation-delay: 0.1s; }
.paid-media-stat-box:nth-child(3) { animation-delay: 0.15s; }
.paid-media-stat-box:nth-child(4) { animation-delay: 0.2s; }
.paid-media-stat-box:nth-child(5) { animation-delay: 0.25s; }
.paid-media-stat-box:nth-child(6) { animation-delay: 0.3s; }
.paid-media-stat-box:nth-child(7) { animation-delay: 0.35s; }
.paid-media-stat-box:nth-child(8) { animation-delay: 0.4s; }
.paid-media-stat-box:nth-child(9) { animation-delay: 0.45s; }
.paid-media-stat-box:nth-child(10) { animation-delay: 0.5s; }