/* Custom styling for the application */

/* Upload section styling */
.upload-container {
    border-style: dashed !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-container:hover, .upload-container.dragover {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-primary) !important;
}

.upload-icon {
    transition: transform 0.3s ease;
}

.upload-container:hover .upload-icon {
    transform: translateY(-5px);
}

/* Chart styling */
.chart-container {
    position: relative;
    height: 450px;
    margin-bottom: 1.5rem;
}

/* Card styling */
.keyword-card {
    transition: transform 0.2s ease;
}

.keyword-card:hover {
    transform: translateY(-3px);
}

/* Table styling for results */
.table thead th {
    border-top: none;
    border-bottom-width: 1px;
}

/* Custom scrollbar for tables */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--bs-secondary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background-color: var(--bs-tertiary-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* Query filter styling */
.query-filter {
    margin-bottom: 1.5rem;
}

.query-filter .form-control {
    background-color: var(--bs-dark);
    border-color: var(--bs-secondary);
    color: var(--bs-light);
}

.query-filter .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Filtered items */
.keyword-card.filtered-out {
    display: none;
}

/* Animation for loading */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.analysis-loading-icon {
    animation: pulse 1.5s infinite ease-in-out;
}

/* URL highlighting */
.dominant-url {
    font-weight: bold;
    background-color: rgba(var(--bs-success-rgb), 0.1);
}

.dominant-url-changed {
    animation: pulse 2s infinite;
}
