/* Magical Plugin Activation Admin Styles */
.magical-plugin-activation-plugins {
    padding: 20px 0;
    max-width: 1400px;
}
.magical-plugin-activation-plugins .description {
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 15px 20px;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}
.plugin-filter-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #ccd0d4;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #fff;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.filter-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    margin-right: 5px;
    cursor: pointer;
    color: #646970;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    position: relative;
}
.filter-tab:hover {
    color: #0073aa;
    background: #f6f7f7;
    border-bottom-color: #0073aa;
}
.filter-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: #fff;
    font-weight: 600;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.plugin-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
}
.plugin-card:hover {
    border-color: #0073aa;
    box-shadow: 0 8px 25px rgba(0,115,170,0.15);
    transform: translateY(-4px);
}
.plugin-card.featured {
    border-color: #00a32a;
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #f8fff9 100%);
}
.plugin-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a32a 0%, #46b450 50%, #00a32a 100%);
    background-size: 200% 100%;
    animation: featured-shimmer 3s ease-in-out infinite;
}
@keyframes featured-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}
.featured-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(45deg, #00a32a, #46b450);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 12px 0 12px;
    box-shadow: 0 2px 8px rgba(0,163,42,0.3);
    letter-spacing: 0.5px;
}
.required-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d63638;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(214, 54, 56, 0.3);
}
.plugin-card[data-required="1"] {
    border: 2px solid #d63638;
    box-shadow: 0 4px 12px rgba(214, 54, 56, 0.15);
}
.plugin-card[data-required="1"] .plugin-header h3 {
    color: #d63638;
    font-weight: 600;
}
.filter-tab[data-filter="required"] {
    background: #fff2f2;
    border-color: #d63638;
    color: #d63638;
}
.filter-tab[data-filter="required"].active {
    background: #d63638;
    color: white;
}
.plugin-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 15px;
}
.plugin-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.plugin-category {
    display: inline-block;
    background: linear-gradient(135deg, #f0f0f1 0%, #e8e8e9 100%);
    color: #50575e;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 16px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.plugin-description {
    margin-bottom: 25px;
    min-height: 60px;
}
.plugin-description p {
    margin: 0;
    color: #50575e;
    line-height: 1.6;
    font-size: 14px;
}
.plugin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
}
.plugin-actions .button {
    min-width: 100px;
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    text-transform: none;
}
.plugin-actions .button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,115,170,0.3);
}
.plugin-actions .button-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004866 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.4);
}
.plugin-actions .button.disabled {
    background: linear-gradient(135deg, #f0f0f1 0%, #e8e8e9 100%);
    color: #50575e;
    cursor: default;
    border-color: #ddd;
}
.plugin-status {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.plugin-status.status-active {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 100%);
    color: #0a3622;
    border: 1px solid #badbcc;
}
.plugin-status.status-inactive {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #664d03;
    border: 1px solid #f1c40f;
}
.plugin-status.status-not-installed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #58151c;
    border: 1px solid #f1556c;
}
.plugin-status.status-needs-update {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #d63031;
    border: 1px solid #fdcb6e;
    animation: updatePulse 2s ease-in-out infinite;
}
.plugin-status.status-inactive-needs-update {
    background: linear-gradient(135deg, #fab1a0 0%, #e17055 100%);
    color: #2d3436;
    border: 1px solid #e17055;
    animation: updatePulse 2s ease-in-out infinite;
}
@keyframes updatePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}
.button.update-plugin {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%) !important;
    border-color: #fdcb6e !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(253, 203, 110, 0.3) !important;
    overflow: hidden !important;
}
.button.update-plugin:hover {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(253, 203, 110, 0.4) !important;
}
.local-plugin-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}
.plugin-card[data-local="1"] {
    border: 2px solid #6c5ce7;
    background: linear-gradient(135deg, #fff 0%, #f8f7ff 100%);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}
.plugin-card[data-local="1"] .plugin-header h3 {
    color: #6c5ce7;
    font-weight: 600;
}
.version-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 11px;
    line-height: 1.3;
    opacity: 0.8;
}
.button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    overflow: hidden;
}
.button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: button-loading 1s linear infinite;
}
@keyframes button-loading {
    to { transform: rotate(360deg); }
}
.plugin-card.hidden { display: none; }
@media (max-width: 782px) {
    .plugins-grid { grid-template-columns: 1fr; gap: 15px; padding: 15px; }
    .filter-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 11px; }
    .plugin-card { padding: 20px; }
    .plugin-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .plugin-actions .button { width: 100%; }
}
