/**
 * BioBlitz Plugin Styles
 */

.bioblitz-container {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bioblitz-content {
    padding: 20px 0;
}

.bioblitz-header {
    margin-bottom: 20px;
}

.bioblitz-title {
    margin-top: 0;
    color: #333;
}

.bioblitz-title a {
    color: #333;
    text-decoration: none;
}

.bioblitz-title a:hover {
    color: #5cb85c;
    text-decoration: underline;
}

.bioblitz-title small {
    color: #777;
    font-size: 0.5em;
}

.bioblitz-stats {
    margin-bottom: 15px;
}

.bioblitz-stats .badge {
    background-color: #5cb85c;
}

.bioblitz-progress {
    height: 25px;
    margin-bottom: 20px;
}

.bioblitz-progress .progress-bar {
    line-height: 25px;
    font-size: 14px;
    background-color: #5cb85c;
}

.bioblitz-description {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

.bioblitz-charts h3 {
    font-size: 18px;
    margin-top: 20px;
}

.bioblitz-chart-table {
    font-size: 13px;
}

.bioblitz-chart-table .chart-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 2px;
}

.bioblitz-chart-table tr.active {
    background-color: #d9edf7 !important;
}

.bioblitz-map {
    width: 100%;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
}

.bioblitz-species-table {
    margin-top: 20px;
}

#bioblitz_species_table {
    font-size: 12px;
}

.bioblitz-species-table canvas {
    max-width: 100%;
}

/* Rarity kleuren */
.rare-1 { color: #5cb85c; }
.rare-2 { color: #f0ad4e; }
.rare-3 { color: #d9534f; }
.rare-4 { color: #d9534f; }

/* Soort styling */
.species-common-name {
    font-weight: bold;
}

.species-scientific-name {
    font-style: italic;
    color: #666;
}

/* Filter links */
.filter-link {
    cursor: pointer;
    text-decoration: none;
    color: #337ab7;
}

.filter-link:hover {
    text-decoration: underline;
}

.filter-link.active {
    font-weight: bold;
}

.filter-reset {
    cursor: pointer;
    color: #337ab7;
    font-size: 12px;
    margin-left: 10px;
    font-weight: normal;
}

.filter-reset:hover {
    text-decoration: underline;
}

/* Footer */
.bioblitz-footer {
    margin-top: 20px;
    font-size: 12px;
}

/* Refresh button */
.bioblitz-refresh-btn {
    margin-left: 10px;
}

.bioblitz-refresh-btn i.fa-spin {
    animation: fa-spin 1s infinite linear;
}

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

/* Loading indicator */
.bioblitz-loading {
    margin-bottom: 15px;
}

.bioblitz-loading .alert {
    margin-bottom: 0;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .bioblitz-map {
        height: 300px;
        margin-top: 30px;
    }

    .bioblitz-title small {
        display: block;
        margin-top: 5px;
    }
}

/* Widget styles */
.bioblitz-widget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bioblitz-widget-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.bioblitz-widget-table tr:last-child {
    border-bottom: none;
}

.bioblitz-widget-table td {
    padding: 6px 4px;
    vertical-align: middle;
}

.bioblitz-widget-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bioblitz-widget-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.bioblitz-widget-name {
    color: #333;
}

.bioblitz-widget-count {
    text-align: right;
    font-weight: 600;
    color: #555;
}

.bioblitz-widget-total {
    margin: 12px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.bioblitz-widget-link {
    margin: 12px 0 0 0;
}

.bioblitz-widget-link a {
    color: #5cb85c;
    text-decoration: none;
    font-weight: 500;
}

.bioblitz-widget-link a:hover {
    text-decoration: underline;
}

.bioblitz-widget-empty {
    color: #888;
    font-style: italic;
}
