/* ActiLog Admin Event Monitor - Admin Styles */

.actilog-wrap {
    max-width: 1200px;
    margin-top: 20px;
}

/* Header */
.actilog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.actilog-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.actilog-title-icon {
    color: #3b82f6;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.actilog-date-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.actilog-date-form input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.actilog-date-sep {
    color: #6b7280;
}

/* Stats Cards */
.actilog-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.actilog-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.actilog-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.actilog-stat-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.actilog-stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.actilog-stat-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.actilog-stat-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.actilog-stat-icon-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.actilog-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.actilog-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Filters */
.actilog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.actilog-filters form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.actilog-filters select,
.actilog-filters input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.actilog-filters input[type="text"] {
    width: 140px;
}

.actilog-actions {
    display: flex;
    gap: 8px;
}

/* Table */
.actilog-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.actilog-table {
    width: 100%;
    border-collapse: collapse;
}

.actilog-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.actilog-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.actilog-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.actilog-table tbody tr:last-child {
    border-bottom: none;
}

.actilog-table tbody tr:hover {
    background: #f8fafc;
}

.actilog-table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    color: #1e293b;
    vertical-align: middle;
}

.actilog-col-date {
    width: 170px;
}

.actilog-col-user {
    width: 120px;
}

.actilog-col-activity {
    width: 140px;
}

.actilog-col-ip {
    width: 130px;
}

.actilog-cell-date {
    color: #6b7280;
    white-space: nowrap;
}

.actilog-cell-user {
    font-weight: 500;
}

.actilog-cell-activity {
    font-weight: 500;
    color: #374151;
}

.actilog-cell-ip {
    font-family: monospace;
    font-size: 12px;
    color: #6b7280;
}

/* Pagination */
.actilog-pagination {
    padding: 16px;
    text-align: center;
}

.actilog-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
}

.actilog-pagination .page-numbers.current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.actilog-pagination .page-numbers:hover:not(.current) {
    background: #f1f5f9;
}

/* Empty state */
.actilog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
}

.actilog-empty .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.actilog-empty p {
    font-size: 15px;
    margin: 0;
}

/* Settings page */
.actilog-wrap .form-table th h2 {
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 16px;
    color: #111827;
}

.actilog-wrap .form-table tr:first-child th h2 {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Responsive */
@media (max-width: 782px) {
    .actilog-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .actilog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .actilog-table-wrap {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .actilog-stats {
        grid-template-columns: 1fr;
    }
}
