/* Limited Admin Role — Settings CSS */

.limadro-wrap { max-width: 1100px; }

/* Header */
.limadro-header h1 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.limadro-version { font-size: 12px; color: #888; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; font-weight: normal; }

/* Tab nav */
.limadro-tab-nav {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #2271b1;
    margin: 16px 0 0 0;
    flex-wrap: wrap;
}
.limadro-tab-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
    transition: background 0.15s;
    margin-bottom: 0;
}
.limadro-tab-btn:hover { background: #e0eaf8; color: #2271b1; }
.limadro-tab-btn.active {
    background: #fff;
    border-color: #2271b1;
    border-bottom: 2px solid #fff;
    color: #2271b1;
    font-weight: 600;
    margin-bottom: -2px;
}

/* Panels — hidden by default via PHP inline style; JS toggles them */
.lar-panel { margin-top: 20px; }

/* Cards */
.limadro-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 16px;
}
.limadro-card h2 { margin-top: 0; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 14px; }
.limadro-card-info  { border-left: 4px solid #2271b1; }
.limadro-card-danger { border-left: 4px solid #d63638; }

/* Capabilities toolbar */
.limadro-caps-toolbar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.limadro-caps-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Cap category grid */
#limadro-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.limadro-cat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.limadro-cat-head {
    background: #f6f7f7;
    border-bottom: 1px solid #eee;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}
.limadro-cat-head:hover { background: #eef3fb; }
.limadro-cat-icon  { font-size: 15px; }
.limadro-cat-title { font-weight: 600; font-size: 13px; flex: 1; }
.limadro-cat-count { font-size: 11px; color: #888; white-space: nowrap; }
.limadro-cat-actions { display: flex; gap: 4px; }
.limadro-cat-actions .button-small { font-size: 11px; padding: 2px 7px; height: auto; line-height: 1.8; }
.limadro-chevron { font-size: 10px; color: #888; transition: transform 0.2s; flex-shrink: 0; }
.limadro-cat-card.collapsed .limadro-chevron { transform: rotate(-90deg); }
.limadro-cat-card.collapsed .limadro-cat-body { display: none; }

/* Cap rows */
.limadro-cat-body { padding: 2px 0; }
.limadro-cap-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-bottom: 1px solid #f6f7f7;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.1s;
}
.limadro-cap-row:last-child { border-bottom: none; }
.limadro-cap-row:hover { background: #f0f4fb; }
.limadro-cap-row.is-on { background: #f0faf4; }
.limadro-cap-row.is-on:hover { background: #e4f5eb; }
.limadro-cap-label { flex: 1; font-weight: 500; }
.limadro-cap-code  { font-size: 11px; color: #888; background: #f0f0f0; padding: 1px 5px; border-radius: 3px; font-family: monospace; }
.limadro-cap-row.is-on .limadro-cap-code { background: #d4edda; }

/* Badges */
.limadro-cap-badge { font-size: 10px; padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
.badge-on  { background: #d4edda; color: #155724; }
.badge-off { background: #f8d7da; color: #721c24; }

/* Toggle switch (for block rows) */
.lar-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.lar-switch input { opacity: 0; width: 0; height: 0; }
.lar-switch-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #ccc; border-radius: 22px; transition: .3s;
}
.lar-switch-slider::before {
    content: ''; position: absolute;
    width: 16px; height: 16px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .3s;
}
.lar-switch input:checked + .lar-switch-slider { background: #2271b1; }
.lar-switch input:checked + .lar-switch-slider::before { transform: translateX(18px); }

/* Plugins admin list — hide action controls for view-only */
.plugins-php .page-title-action,
.plugins-php .bulkactions,
.plugins-php #bulk-action-selector-top,
.plugins-php #bulk-action-selector-bottom,
.plugins-php .check-column { display: none !important; }
