/* Reports Page Specific Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #4f46e5;
    --accent-color: #06b6d4;
    --dark-bg: #ffffff;
    --medium-bg: #f8fafc;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-dark: #111827;      /* Even darker text color for maximum contrast */
    --text-light: #ffffff;
    --text-muted: #374151;     /* Darker muted text color for better visibility */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><path d="M100,0L0,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 10;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Reports Introduction Section */
.reports-intro {
    padding: 20px 0;
    background-color: #ffffff;
}

.reports-intro .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.intro-content h2 {
    font-size: 2rem;
    color: #1e293b; /* Explicitly set dark color for headings */
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-content p {
    font-size: 1.05rem;
    color: #4b5563; /* Darker color for better visibility */
    margin-bottom: 15px;
    line-height: 1.5;
}

.report-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.report-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #374151; /* Darker color for list items */
}

.report-features li i {
    color: #10b981; /* Keep success color for icons */
    margin-right: 10px;
    margin-top: 3px;
}

.note {
    padding: 10px 15px;
    background-color: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4b5563; /* Darker color for note text */
    font-style: italic;
    margin-top: 10px;
}

.intro-image {
    position: relative;
}

.rounded-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* Reports Filter Section */
.reports-filter {
    padding: 12px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.search-box {
    flex-grow: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

#report-search {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

#report-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    background-color: #ffffff;
}

.filter-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-box label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

#filter-options {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--text-dark);
    min-width: 150px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

#filter-options:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
}

/* Reports List Section */
.reports-list {
    padding: 15px 0 30px;
    background-color: #ffffff;
}

.report-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.report-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.report-date {
    width: 90px;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 500;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.3;
}

.report-content {
    flex-grow: 1;
    padding: 15px;
    position: relative;
}

.report-content h3 {
    font-size: 1.2rem;
    color: #1e293b; /* Explicitly set dark color for report titles */
    margin-bottom: 6px;
    font-weight: 700;
}

.report-content p {
    font-size: 0.95rem;
    color: #4b5563; /* Darker color for report description */
    margin-bottom: 8px;
    line-height: 1.4;
    max-width: 85%;
}

.report-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #4b5563; /* Darker color for stat labels */
    text-align: center;
    line-height: 1.1;
}

.report-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.report-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.report-link i {
    margin-left: 3px;
    font-size: 0.8rem;
}

.report-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.report-tag.film {
    background-color: var(--primary-color);
}

.report-tag.series {
    background-color: var(--secondary-color);
}

.report-tag.telegram {
    background-color: #0088cc;
}

.report-tag.terabox {
    background-color: var(--warning-color);
}

/* Report Preview Section */
.report-preview {
    padding: 50px 0;
    background-color: #f8fafc;
}

.report-preview .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.report-preview .section-header h2 {
    font-size: 2.5rem;
    color: #1e293b; /* Explicitly set dark color for headings */
    margin-bottom: 15px;
    font-weight: 700;
}

.report-preview .section-header p {
    font-size: 1.125rem;
    color: #4b5563; /* Darker color for better visibility */
    max-width: 700px;
    margin: 0 auto;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.preview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.preview-content h3 {
    font-size: 1.75rem;
    color: #1e293b; /* Explicitly set dark color for headings */
    margin-bottom: 30px;
    font-weight: 700;
}

.preview-features {
    list-style: none;
    padding: 0;
}

.preview-features li {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.preview-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b; /* Explicitly set dark color for feature titles */
    margin-bottom: 10px;
}

.preview-features li p {
    font-size: 1rem;
    color: #4b5563; /* Darker color for better visibility of paragraph text */
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--text-light);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background: transparent;
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--text-light);
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.report-item {
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

.report-item:nth-child(1) { animation-delay: 0.1s; }
.report-item:nth-child(2) { animation-delay: 0.2s; }
.report-item:nth-child(3) { animation-delay: 0.3s; }
.report-item:nth-child(4) { animation-delay: 0.4s; }
.report-item:nth-child(5) { animation-delay: 0.5s; }
.report-item:nth-child(6) { animation-delay: 0.6s; }
.report-item:nth-child(7) { animation-delay: 0.7s; }

/* Force Visibility for Sections with Animation Issues */
.reports-intro, .report-preview,
.intro-content, .intro-image,
.preview-image, .preview-content,
.section-header, .preview-features li {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    -webkit-animation: none !important;
    transition: none !important;
}

/* Ensure text is clearly visible */
.reports-intro h2, .report-preview h2, 
.reports-intro p, .report-preview p,
.report-features li, .preview-features li p,
.feature-title, .intro-content p {
    color: var(--text-dark) !important;
}

/* Fix any AOS animation artifacts */
[data-aos=fade-up], [data-aos=fade-left], 
[data-aos=fade-right], [data-aos=fade-down] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Interactive Dashboard Styles */
.interactive-dashboard {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dashboard-buttons {
    display: flex;
    gap: 5px;
}

.dashboard-btn {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dashboard-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.dashboard-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-panel {
    display: none;
    flex-grow: 1;
}

.dashboard-panel.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric-box {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.metric-trend {
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 600;
}

.metric-trend.positive {
    color: var(--success-color);
}

.metric-trend.negative {
    color: var(--danger-color);
}

.dashboard-chart {
    flex-grow: 1;
    min-height: 200px;
}

.chart-container {
    height: 100%;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
}

/* Detail Dashboard */
.detail-dashboard .dashboard-content {
    gap: 20px;
}

.detailed-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-label {
    width: 150px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.stat-bar-container {
    flex-grow: 1;
    height: 25px;
    background-color: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    position: relative;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.stat-bar-label {
    white-space: nowrap;
}

.stat-bar.telegram {
    background-color: #0088cc;
}

.stat-bar.terabox {
    background-color: var(--warning-color);
}

.stat-bar.websites {
    background-color: var(--accent-color);
}

.takedown-timeline {
    margin-top: 20px;
}

.timeline-header {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-chart {
    padding: 20px 0;
    position: relative;
}

.timeline-bar {
    height: 6px;
    background-color: var(--light-bg);
    border-radius: 3px;
    position: relative;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--success-color);
    border-radius: 3px;
}

.timeline-marker {
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: 2px solid white;
    border-radius: 50%;
}

.timeline-marker span {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    color: var(--text-dark);
}

.timeline-marker.future {
    background-color: var(--light-bg);
    border-color: var(--border-color);
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* Movie Leak Alert Styling */
.leak-detected {
    display: flex;
    align-items: center;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0 10px;
    font-size: 1.05rem;
    border-left: 4px solid var(--danger-color);
}

.leak-detected i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Make report stats more compact when following leak-detected */
.leak-detected + .report-stats {
    margin-top: 0;
    margin-bottom: 15px;
    padding: 0 10px;
}

.leak-detected + .report-stats .stat {
    min-width: 80px;
    margin-right: 5px;
}

/* Responsive adjustments for dashboards */
@media screen and (max-width: 768px) {
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
    
    .stat-label {
        width: 120px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .dashboard-controls {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    .reports-intro .container,
    .preview-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-image {
        order: -1;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .report-content p {
        max-width: 100%;
    }
    
    .report-preview .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .reports-intro {
        padding: 15px 0;
    }
    
    .reports-intro .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .intro-content p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .report-features li {
        margin-bottom: 6px;
    }
    
    .page-header {
        padding: 20px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .reports-filter {
        padding: 10px 0;
    }
    
    .reports-list {
        padding: 10px 0 20px;
    }
    
    .report-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .filter-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-box {
        width: 100%;
    }
    
    #filter-options {
        width: 100%;
    }
    
    .report-date {
        width: 70px;
        padding: 10px 5px;
    }
    
    .report-content p {
        max-width: 100%;
    }
    
    .report-tag {
        top: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 0.75rem;
    }
    
    .report-stats {
        gap: 8px;
    }
    
    .stat {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p,
    .intro-content p,
    .cta p {
        font-size: 1rem;
    }
    
    .report-features li,
    .report-content p {
        font-size: 0.95rem;
    }
    
    .report-content h3 {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .report-content {
        padding: 20px;
    }
}
