/* All CSS from the original <style> tag goes here */
.std-plugin-wrapper {
    --primary-color: #0051ba;
    --secondary-color: #00a8e1;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-color: #dee2e6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
}

/* We scope the styles to our plugin wrapper to avoid conflicts with the theme */
.std-plugin-wrapper .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
    margin-bottom: 20px;
}

.std-plugin-wrapper .card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.std-plugin-wrapper .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.std-plugin-wrapper .btn-primary:hover {
    background-color: #004090;
    border-color: #004090;
}

.std-plugin-wrapper .table {
    border-radius: 8px;
    overflow: hidden;
}

.std-plugin-wrapper .table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.std-plugin-wrapper .table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.std-plugin-wrapper .table tbody tr:hover {
    background-color: rgba(0, 168, 225, 0.05);
}

.std-plugin-wrapper .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

.std-plugin-wrapper .pagination {
    margin-top: 20px;
}

.std-plugin-wrapper .page-link {
    color: var(--primary-color);
}

.std-plugin-wrapper .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-bg);
}

.std-plugin-wrapper .form-control,
.std-plugin-wrapper .form-select {
    border-radius: 6px;
}

.std-plugin-wrapper .form-control:focus,
.std-plugin-wrapper .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 168, 225, 0.25);
}

.std-plugin-wrapper .btn-download {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
}

.std-plugin-wrapper .btn-download:hover {
    background-color: #0089c4;
    border-color: #0089c4;
    color: white;
}

.std-plugin-wrapper .filter-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.std-plugin-wrapper .stats-card {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    margin-bottom: 20px;
}

.std-plugin-wrapper .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.std-plugin-wrapper .stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.std-plugin-wrapper .mobile-card {
    display: none;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}

.std-plugin-wrapper .mobile-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-weight: 600;
}

.std-plugin-wrapper .mobile-card-body {
    padding: 15px;
    background-color: white;
}

.std-plugin-wrapper .mobile-card-row {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.std-plugin-wrapper .mobile-card-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.std-plugin-wrapper .mobile-card-label {
    font-weight: 600;
    width: 40%;
    color: #495057;
}

.std-plugin-wrapper .mobile-card-value {
    width: 60%;
    text-align: right;
}

.std-plugin-wrapper .mobile-card-action {
    margin-top: 15px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .std-plugin-wrapper .table-container {
        display: none;
    }

    .std-plugin-wrapper .mobile-card {
        display: block;
    }

    .std-plugin-wrapper .stats-card {
        margin-bottom: 15px;
    }

    .std-plugin-wrapper .stats-number {
        font-size: 1.5rem;
    }

    .std-plugin-wrapper .filter-section {
        padding: 15px;
    }

    .std-plugin-wrapper .btn-download {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .std-plugin-wrapper .mobile-card {
        display: none;
    }

    .std-plugin-wrapper .table-container {
        display: block;
    }
}