.plugin-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.plugin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}

.plugin-toolbar-left,
.plugin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plugin-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
}

.plugin-search input {
    border: none;
    background: none;
    outline: none;
    color: var(--color-text-primary);
    font-size: 12px;
    min-width: 200px;
}

.plugin-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    font-size: 12px;
}

.plugin-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.plugin-stats .stat-item.enabled {
    color: var(--color-success);
}

.plugin-stats .stat-item.disabled {
    color: var(--color-text-secondary);
}

.plugin-view-mode {
    display: flex;
    gap: 2px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.plugin-view-mode button {
    padding: 4px 8px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.plugin-view-mode button:hover {
    background: var(--color-bg-hover);
}

.plugin-view-mode button.active {
    background: var(--color-primary);
    color: white;
}

.plugin-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.plugin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-secondary);
    gap: 16px;
}

.plugin-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plugin-category {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.plugin-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-bg-secondary);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.plugin-category-header:hover {
    background: var(--color-bg-hover);
}

.plugin-category-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.plugin-category-icon {
    font-size: 18px;
}

.plugin-category-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.plugin-category-count {
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--color-bg-tertiary);
    padding: 2px 8px;
    border-radius: 10px;
}

.plugin-category-content {
    padding: 12px;
}

.plugin-category-content.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.plugin-category-content.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Plugin Card (Grid View) */
.plugin-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s;
}

.plugin-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plugin-card.disabled {
    opacity: 0.6;
}

.plugin-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.plugin-card-icon {
    font-size: 24px;
    color: var(--color-primary);
}

.plugin-card-info {
    flex: 1;
}

.plugin-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.plugin-card-version {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.plugin-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all 0.2s;
    border-radius: 4px;
}

.plugin-toggle:hover {
    background: var(--color-bg-hover);
}

.plugin-toggle.enabled {
    color: var(--color-success);
}

.plugin-toggle.disabled {
    color: var(--color-text-secondary);
}

.plugin-card-description {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.plugin-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 11px;
}

.plugin-card-category {
    color: var(--color-text-secondary);
}

.plugin-card-installed {
    color: var(--color-text-tertiary);
}

/* Plugin List (List View) */
.plugin-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.2s;
}

.plugin-list-item:hover {
    border-color: var(--color-primary);
}

.plugin-list-item.disabled {
    opacity: 0.6;
}

.plugin-list-icon {
    font-size: 20px;
    color: var(--color-primary);
}

.plugin-list-info {
    flex: 1;
}

.plugin-list-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.plugin-list-version {
    font-size: 11px;
    font-weight: normal;
    color: var(--color-text-secondary);
}

.plugin-list-description {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.plugin-list-status {
    margin-right: 8px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.enabled {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.status-badge.disabled {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
}

.plugin-list-toggle {
    padding: 6px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.plugin-list-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Scrollbar */
.plugin-content::-webkit-scrollbar {
    width: 8px;
}

.plugin-content::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

.plugin-content::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.plugin-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}
