/* Reports page specific styles */

.main-container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 2rem;
}

.active {
    color: var(--primary-color);
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-title {
    margin-bottom: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-color);
}

.reports-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #2159b3;
}

.btn-secondary {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f5f7fa;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background-color: rgba(44, 110, 203, 0.05);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-down {
    font-size: 0.7rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f5f7fa;
}

.report-filters {
    background-color: white;
    border-radius: 6px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-box button {
    padding: 0.7rem 1.2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #2159b3;
}

.filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f0f4f8;
    border-radius: 16px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.chip-close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    color: #888;
}

.chip-close:hover {
    color: var(--danger-color);
}

.clear-filters {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-left: auto;
}

.clear-filters:hover {
    text-decoration: underline;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.report-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.report-date {
    font-size: 0.8rem;
    color: #666;
}

.report-content {
    padding: 1.2rem;
    min-height: 120px;
}

.report-content p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-tag.facebook {
    background-color: #3b5998;
    color: white;
}

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

.platform-tag.twitter {
    background-color: #1da1f2;
    color: white;
}

.report-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: #666;
    transition: color 0.2s;
    border-radius: 4px;
}

.action-btn:hover {
    color: var(--primary-color);
    background-color: #f5f7fa;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pagination-page {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-page:hover:not(.active) {
    background-color: #f5f7fa;
}

.pagination-page.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    display: inline-block;
    width: 32px;
    text-align: center;
}

@media (max-width: 992px) {
    .reports-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .reports-actions {
        width: 100%;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        flex: 1;
    }
}