:root {
    --fb-primary: #1877F2;
    --fb-secondary: #166FE5;
    --ig-primary: #E4405F;
    --ig-secondary: #D93651;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success-color: #22c55e;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    margin-bottom: 2rem;
    /* text-align: center; */
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.report-period {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

input[type="date"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.trend.positive {
    color: var(--success-color);
}

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.platform-reports {
    margin-top: 2rem;
}

.platform-report {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.platform-report.active {
    display: block;
}

.chart-container {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
    margin-bottom: 1.5rem;
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.25rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.platform-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.platform-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.platform-card h3 {
    margin-bottom: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.top-posts {
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.post-card {
    background-color: var(--card-background);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1rem;
}

.post-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    color: white;
}

.download-btn.facebook {
    background-color: var(--fb-primary);
}

.download-btn.facebook:hover {
    background-color: var(--fb-secondary);
}

.download-btn.instagram {
    background-color: var(--ig-primary);
}

.download-btn.instagram:hover {
    background-color: var(--ig-secondary);
}

.download-btn svg {
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .charts {
        grid-template-columns: 1fr;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        justify-content: center;
    }
}

.tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.tab-btn svg {
    width: 24px;
    height: 24px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

canvas {
    max-width: 100%;
    height: 100% !important;
}

.ads-performance {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ads-performance h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.agency-logo {
    max-width: 150px;
    height: auto;
}

.report-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.coming-soon h3 {
    color: #1877f2;
    font-size: 24px;
    margin-bottom: 16px;
}

.coming-soon p {
    color: #666;
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.download-btn.youtube {
    background-color: #ff0000;
    color: white;
}

.download-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.download-btn.other-tasks {
    background-color: #4a5568;
    color: white;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.task-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.task-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    color: #4a5568;
}

.task-content {
    flex: 1;
}

.task-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.task-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .task-card {
        padding: 1rem;
    }
    
    .task-icon {
        width: 40px;
        height: 40px;
    }
}

.image-gallery {
    margin-top: 3rem;
    padding: 2rem 0;
}

.image-gallery h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .image-gallery h3 {
        font-size: 1.25rem;
    }
} 