/* Styles for Vanguard Admin Protection Dashboard */
.ap-wrap {
    max-width: 1200px;
    margin-top: 20px;
}

.ap-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ap-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ap-card h3 {
    margin: 0 0 12px 0;
    color: #50575e;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; /* To align text and icon */
    align-items: center;
    justify-content: center;
    gap: 5px; /* Space between text and icon */
}

.ap-card h3 .dashicons-info {
    font-size: 16px; /* Icon size */
    color: #8c8f94; /* Icon color */
    cursor: help; /* Help cursor to indicate tooltip */
}

.ap-stat {
    font-size: 42px;
    font-weight: 700;
    color: #2271b1;
    line-height: 1;
}

.ap-warning .ap-stat { color: #f56e28; }
.ap-danger .ap-stat { color: #d63638; }
.ap-success .ap-stat { color: #00a0d2; }
.ap-info .ap-stat { color: #6c757d; } /* New color for info/rejected */


.ap-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.ap-audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* For responsive */
    gap: 15px; /* Space between elements */
}

.ap-audit-header form {
    display: flex;
    gap: 10px;
}

.ap-audit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ap-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f1;
    color: #3c434a;
}

.ap-unauthorized-create-users-attempt,
.ap-unauthorized-promote-users-attempt,
.ap-unauthorized-admin-promotion-blocked,
.ap-config-file-modified {
    background: #fcf0f1;
    color: #d63638;
}

.ap-unauthorized-admin-removed,
.ap-admin-unauthorized-and-degraded { /* New style for degraded admins */
    background: #f0f6fc;
    color: #2271b1;
}

.ap-admin-promotion-pending {
    background: #fff8e1; /* Light yellow for pending */
    color: #ff9800; /* Orange text */
}

.ap-admin-authorized {
    background: #e8f5e9; /* Light green for authorized */
    color: #4caf50; /* Green text */
}

.ap-admin-promotion-rejected { /* New style for rejected promotions */
    background: #fde0e0; /* Light red for rejected */
    color: #dc3545; /* Red text */
}

.ap-audit-logs-deleted { /* New style for deleted logs */
    background: #e0f2f7; /* Light blue for deleted logs */
    color: #007cba; /* Blue text */
}

.mt-4 { margin-top: 20px; }

/* Styles for tabs */
.nav-tab-wrapper {
    margin-bottom: 20px;
    border-bottom: 1px solid #c3c4c7;
    padding-bottom: 0;
    line-height: 30px;
}

.nav-tab {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 6px 0 0;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    color: #50575e;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f0f0f1;
    border-radius: 4px 4px 0 0;
    box-shadow: none;
    transition: all 0.1s ease-in-out;
}

.nav-tab:hover {
    color: #2271b1;
    background: #f8f8f8;
    border-color: #c3c4c7;
}

.nav-tab-active,
.nav-tab-active:hover {
    background: #fff;
    border-color: #c3c4c7;
    border-bottom-color: #fff;
    color: #000;
    box-shadow: none;
}

.ap-tab-content {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ap-tab-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #2c3338;
}

/* Danger button */
.button-danger {
    background-color: #dc3232;
    color: #fff;
    border-color: #dc3232;
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
    vertical-align: top;
}

.button-danger:hover,
.button-danger:focus {
    background-color: #cc1818;
    border-color: #cc1818;
    color: #fff;
}
