/* Custom styles for the ransomware dashboard */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.card {
    height: 100%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

.navbar-brand i {
    margin-right: 10px;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin: 100px auto;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #007bff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status message styles */
#statusRow {
    margin-bottom: 20px;
}

/* Hover effect for table rows */
.table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Pagination styles - Dark theme compatible */
.pagination-info {
    font-size: 0.9rem;
    color: #adb5bd;
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #fff;
    background-color: #343a40;
    border-color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #343a40;
    border-color: #495057;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: #495057;
    border-color: #6c757d;
}

.pagination .page-link:focus {
    color: #fff;
    background-color: #495057;
    border-color: #6c757d;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
    
    .pagination {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .chart-container {
        height: 200px;
    }
}
