/**
 * Authyo Security Logs - Admin Styles
 */

/* Top action buttons */
.authyo-logs-top-actions {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.authyo-logs-top-actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.authyo-clear-btn {
    color: #d63638 !important;
    border-color: #d63638 !important;
}

.authyo-clear-btn:hover {
    background: #d63638 !important;
    color: #fff !important;
}

/* Inline filters inside tablenav */
.authyo-logs-filters-inline {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.authyo-logs-filters-inline select {
    max-width: 200px;
}

.authyo-logs-filters-inline .authyo-date-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 400;
}

.authyo-logs-filters-inline input[type="date"] {
    max-width: 160px;
}

/* Action Badges */
.authyo-action-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.authyo-action-badge.auth-success {
    background: #d4edda;
    color: #155724;
}

.authyo-action-badge.auth-fail {
    background: #f8d7da;
    color: #721c24;
}

.authyo-action-badge.content {
    background: #d1ecf1;
    color: #0c5460;
}

.authyo-action-badge.user-mgmt {
    background: #fff3cd;
    color: #856404;
}

.authyo-action-badge.system {
    background: #e2e3e5;
    color: #383d41;
}

/* Time ago text */
.authyo-time-ago {
    color: #888;
    font-style: italic;
}

/* Settings section */
.authyo-logs-settings {
    background: #fff;
    padding: 15px 20px 5px;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
    max-width: 800px;
}

.authyo-logs-settings h2 {
    margin-top: 5px;
    padding-top: 0;
}

/* Table tweaks */
.wp-list-table .column-cb {
    width: 30px;
}

.wp-list-table .column-created_at {
    width: 160px;
}

.wp-list-table .column-user_id {
    width: 130px;
}

.wp-list-table .column-user_role {
    width: 100px;
}

.wp-list-table .column-action {
    width: 150px;
}

.wp-list-table .column-ip_address {
    width: 120px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .authyo-logs-top-actions {
        flex-direction: column;
    }

    .authyo-logs-filters-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .authyo-logs-filters-inline select,
    .authyo-logs-filters-inline input[type="date"] {
        max-width: 100%;
        width: 100%;
    }
}
