html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: #4A90E2;
    transition: color 0.2s ease;
}

a:hover {
    color: #357abd;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

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

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    min-width: 250px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e8ebed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

.sidebar-header {
    padding: 16px 14px;
    border-bottom: 1px solid #e8ebed;
    background: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.logo-image {
    max-width: 100%;
    width: 200px;
    height: auto;
    object-fit: contain;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav {
    padding: 0;
}

/* Override default link styling for navigation */
.sidebar-nav a,
.sidebar-nav a:link,
.sidebar-nav a:visited,
.sidebar-nav a:hover,
.sidebar-nav a:active {
    text-decoration: none !important;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
}

.nav-section-header:hover {
    background: #efefef;
}

.nav-section-header .oi {
    font-size: 12px;
}

.nav-section-header .toggle-icon {
    transition: transform 0.2s;
}

.nav-section-header.expanded .toggle-icon {
    transform: rotate(180deg);
}

.nav-items {
    padding-left: 0;
}

.section-label {
    padding: 12px 16px 6px 16px;
    margin: 8px 0 4px 0;
    color: #8492a6 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin: 2px 12px;
    color: #5a6c7d !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: calc(100% - 24px);
    text-align: left;
}

.nav-item:hover {
    background: linear-gradient(135deg, #f1f3f5 0%, #e8ebed 100%);
    color: #2c3e50 !important;
    transform: translateX(2px);
}

.nav-item:visited {
    color: #5a6c7d !important;
}

.nav-item.active {
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.nav-item.active .nav-icon {
    color: white;
}

.nav-item.active:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    color: white !important;
}

.nav-icon {
    width: 17px;
    height: 17px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    stroke-width: 2;
    color: #6b7280;
}

.nav-text {
    flex: 1;
    color: inherit;
}

.nav-group {
    margin: 2px 0;
}

.nav-toggle {
    justify-content: space-between;
}

.nav-toggle.active {
    background-color: transparent;
}

.chevron {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s ease;
    color: #9ca3af;
}

.nav-toggle.active .chevron {
    transform: rotate(90deg);
}

.nav-submenu {
    padding: 4px 0;
    margin-left: 8px;
}

.nav-subitem {
    display: block;
    padding: 8px 16px 8px 44px;
    margin: 1px 8px;
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-subitem:hover {
    background-color: #f9fafb;
    color: #374151 !important;
}

.nav-subitem:visited {
    color: #6b7280 !important;
}

.nav-subitem.active {
    background-color: transparent;
    color: #374151 !important;
    font-weight: 400;
}

.nav-subitem.discover {
    color: #dc2626 !important;
    font-weight: 400;
}

.nav-subitem.discover:hover {
    color: #b91c1c !important;
}

.nav-subitem.discover:visited {
    color: #dc2626 !important;
}

/* ── Platform switcher row inside Reports submenu ─────────── */
.nav-platform-switcher {
    display: flex;
    gap: 4px;
    margin: 6px 8px 4px 8px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.nav-platform-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af !important;
    text-decoration: none !important;
    border-radius: 5px;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-platform-tab:hover {
    background: white;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-platform-tab.active {
    background: white !important;
    color: #111827 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ── Platform badge on Reports nav button ─────────────────── */
.platform-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.platform-badge--google  { background: rgba(66,133,244,.15); color: #3b82f6; }
.platform-badge--meta    { background: rgba(24,119,242,.15);  color: #1877f2; }
.platform-badge--linkedin { background: rgba(10,102,194,.15); color: #0a66c2; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #efefef;
    color: #333;
}

.nav-link.active {
    background: #fff;
    color: #D97634;
    border-left-color: #D97634;
    font-weight: 500;
}

.nav-link .oi {
    font-size: 14px;
}

.nav-link .report-icon {
    font-size: 16px;
}

/* Top Navigation */
.top-row {
    height: 60px;
    background: white;
    border-bottom: 1px solid #e8ebed;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px;
    gap: 16px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
}

.top-row .btn-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.top-row .btn-primary {
    padding: 10px 24px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Authentication Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    padding: 12px 28px;
    border: 2px solid #4A90E2;
    background: white;
    color: #4A90E2;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #4A90E2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

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

.btn-signup {
    padding: 12px 28px;
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-signup:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

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

/* User Info and Account Dropdown */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-radius: 4px;
    font-size: 12px;
}

.credits-badge svg {
    color: #4A90E2;
}

.credits-text {
    color: #2c3e50;
}

.user-email {
    font-size: 13px;
    color: #666;
}

.account-dropdown {
    position: relative;
}

.btn-account {
    padding: 8px 12px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.btn-account:hover {
    color: #4A90E2;
}

.btn-account svg {
    width: 18px;
    height: 18px;
}

.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    margin-top: 8px;
    z-index: 100;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.account-menu-item:hover {
    background-color: #f8f9fa;
}

.account-menu-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.account-menu-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 8px 0;
}

/* Main Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-row {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

main {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.content {
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Footer Styles */
.app-footer {
    background: #0d1117;
    color: #9ca3af;
    font-size: 14px;
    margin-top: auto;
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 32px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.footer-logo span {
    color: #ef4444;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 20px;
    max-width: 300px;
}

.footer-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-platform-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.footer-platform-badge.google { background: rgba(66,133,244,.15); color: #60a5fa; }
.footer-platform-badge.meta { background: rgba(24,119,242,.15); color: #93c5fd; }
.footer-platform-badge.linkedin { background: rgba(10,102,194,.15); color: #7dd3fc; }

.footer-col h4 {
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: color .15s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 12px;
    color: #4b5563;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 12px;
    color: #4b5563;
    text-decoration: none;
    transition: color .15s;
}

.footer-bottom-links a:hover {
    color: #9ca3af;
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 24px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

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

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

.dashboard-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Benchmarks Table */
.benchmarks-table {
    background: white;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.benchmarks-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.benchmarks-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benchmarks-table th.industry-col {
    width: 250px;
}

.benchmarks-table th.metric-col {
    width: auto;
}

.benchmarks-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.benchmarks-table tbody tr:hover {
    background-color: #f8f9fa;
}

.benchmarks-table td {
    padding: 1rem;
    vertical-align: middle;
}

.industry-name {
    font-weight: 500;
    color: #2c3e50;
}

.grade-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.grade-circle.grade-Aplus,
.grade-circle.grade-A,
.grade-circle.grade-Aminus {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
}

.grade-circle.grade-Bplus,
.grade-circle.grade-B,
.grade-circle.grade-Bminus {
    background: linear-gradient(135deg, #5bc0de 0%, #46b8da 100%);
}

.bar-container {
    position: relative;
    width: 100%;
    height: 32px;
    background: #f1f3f5;
    border-radius: 0;
    overflow: hidden;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    border-radius: 0;
    transition: width 0.4s ease;
    min-width: 50px;
}

.bar-orange {
    background: linear-gradient(90deg, #FFB366 0%, #FF8533 100%);
}

.bar-pink {
    background: linear-gradient(90deg, #FFB3BA 0%, #FF6B7A 100%);
}

.bar-magenta {
    background: linear-gradient(90deg, #E991C7 0%, #D946A0 100%);
}

.bar-blue {
    background: linear-gradient(90deg, #6DB3F2 0%, #3B8CD9 100%);
}

.bar-value {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

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

.detail-card {
    background: white;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.detail-card .card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 3rem;
}

.empty-state h4 {
    color: #6c757d;
    margin-top: 1rem;
}

.empty-state p {
    color: #adb5bd;
}

.text-center {
    text-align: center;
}

/* Report Components Shared Styles */
.summary-card.info {
    border-left-color: #17a2b8;
    background: linear-gradient(to right, #e8f7fa 0%, white 100%);
}

.rec-header .rec-type {
    flex: 1;
}

@media (max-width: 640px) {
    .content-row {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        min-height: auto;
    }

    .top-row {
        position: sticky;
        top: 0;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
    
    .benchmarks-table {
        overflow-x: auto;
    }
    
    .campaign-details {
        grid-template-columns: 1fr;
    }
    
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Homepage Creative Library Layout */
.ads-grader-layout {
    display: flex;
    flex: 1;
    width: 100%;
}

.main-content-area {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    width: 100%;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e8ebed;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5a6c7d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white;
    border-color: #4A90E2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Search Section */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e8ebed;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: #4A90E2;
}

.search-bar svg {
    margin-right: 12px;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #2c3e50;
}

.search-bar input::placeholder {
    color: #999;
}

.filter-select {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e8ebed;
    border-radius: 8px;
    font-size: 14px;
    color: #5a6c7d;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 150px;
}

.filter-select:hover {
    border-color: #4A90E2;
}

.search-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #FF6B35 0%, #D97634 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #D97634 0%, #C26829 100%);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

/* Signup Prompt */
.signup-prompt {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ebed 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    color: #5a6c7d;
    border: 1px solid #e8ebed;
}

.signup-prompt a {
    color: #4A90E2;
    font-weight: 600;
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #4A90E2 0%, #357abd 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.info-banner .highlight {
    color: #FFEB3B;
    font-weight: 700;
}

.create-account-btn {
    background: white;
    color: #4A90E2;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-account-btn:hover {
    background: #FFEB3B;
    color: #357abd;
    transform: scale(1.05);
}

/* Brands Header */
.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #e8ebed;
    font-size: 14px;
    color: #5a6c7d;
    font-weight: 600;
}

.filters {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox .count {
    background: #e8ebed;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #5a6c7d;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state h3 {
    color: #2c3e50;
    font-size: 24px;
    margin: 24px 0 12px;
}

.empty-state p {
    color: #5a6c7d;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* Results Section */
.results-section {
    margin-top: 24px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

/* Ads Grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ad-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.ad-preview {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.ad-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8ebed 100%);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-content {
    padding: 16px;
}

.ad-advertiser {
    color: #5a6c7d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.ad-headline {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ad-body {
    color: #5a6c7d;
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.ad-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ad-date, .ad-domain, .ad-platform {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #5a6c7d;
}

.click-hint {
    color: #999;
    font-size: 12px;
    text-align: center;
    margin: 12px 0;
}

.ad-actions {
    display: flex;
    gap: 8px;
}

.btn-save-ad, .btn-add-collection {
    flex: 1;
    padding: 8px;
    border: 1px solid #e8ebed;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save-ad:hover {
    background: #FFF3E0;
    border-color: #FF6B35;
    color: #FF6B35;
}

.btn-add-collection:hover {
    background: #E3F2FD;
    border-color: #4A90E2;
    color: #4A90E2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content-area {
        padding: 16px;
    }
    
    .platform-tabs {
        flex-direction: column;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .ads-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Creative Library: Full-bleed layout override ─────────────────────── */
/* Applied via JS body class addition in CreativeSearch.razor */
body.page-creative-library .sidebar {
    display: none !important;
}
body.page-creative-library .content-row {
    overflow: visible !important;
}
body.page-creative-library main {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
body.page-creative-library article.content,
body.page-creative-library article.content.px-4 {
    padding: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    width: 100% !important;
}
