/* Additional styles for reports page */
.avt-filters {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.avt-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.avt-filter-group label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.avt-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

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

.avt-chart-legend {
    display: flex;
    gap: 16px;
}

.avt-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}

.avt-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.avt-chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.avt-platform-comparison {
    display: grid;
    gap: 20px;
}

.avt-platform-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.avt-platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.avt-platform-score {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.avt-platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.avt-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avt-stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.avt-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.avt-stat-change {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.avt-stat-change.avt-positive {
    color: #059669;
}

.avt-stat-change.avt-negative {
    color: #dc2626;
}

.avt-stat-change.avt-neutral {
    color: #64748b;
}

.avt-keywords-performance {
    display: grid;
    gap: 16px;
}

.avt-keyword-performance-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.avt-rank {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    min-width: 40px;
}

.avt-keyword-info {
    flex: 1;
}

.avt-domain {
    color: #64748b;
    font-size: 14px;
    margin-left: 8px;
}

.avt-visibility-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avt-score-number {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.avt-score-platforms {
    display: flex;
    gap: 4px;
}

.avt-platform-mini {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.avt-export-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Additional visibility status colors */
.avt-visibility-mentioned {
    color: #059669;
    font-weight: 500;
}

.avt-visibility-featured {
    color: #2563eb;
    font-weight: 600;
}

.avt-visibility-not_found {
    color: #dc2626;
}

/* Status indicators */
.avt-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.avt-status-active {
    background: #d1fae5;
    color: #065f46;
}

.avt-status-paused {
    background: #fef3c7;
    color: #92400e;
}

.avt-status-deleted {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive design */
@media (max-width: 768px) {
    .avt-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .avt-platform-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .avt-keyword-performance-item {
        flex-direction: column;
        text-align: center;
    }
    
    .avt-export-options {
        flex-direction: column;
    }
}

/* Admin styles */
.avt-admin-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
}

.avt-admin-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

/* Bulk actions */
.avt-bulk-actions {
    display: flex;
    gap: 8px;
}

.avt-btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.avt-btn-text {
    background: transparent;
    color: #2563eb;
    border: none;
    text-decoration: underline;
}

.avt-btn-text:hover {
    color: #1d4ed8;
    background: transparent;
}

/* Form improvements */
.avt-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Loading states */
.avt-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.avt-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: avt-spin 1s linear infinite;
}

@keyframes avt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty states */
.avt-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.avt-empty-state h3 {
    margin-bottom: 8px;
    color: #374151;
}

/* Success/error messages */
.avt-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.avt-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.avt-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.avt-message-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Tooltips */
.avt-tooltip {
    position: relative;
    cursor: help;
}

.avt-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.avt-tooltip:hover::after {
    opacity: 1;
}