/* Log Visitor IPs — admin UI styling */

.lvips-wrap {
    margin: 20px 20px 0 0;
}

/* Header row: title + export button */
.lvips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.lvips-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.lvips-header h1 .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
}

.lvips-subtitle {
    width: 100%;
    margin: 4px 0 0;
    color: #646970;
    font-size: 13px;
}

/* Export button */
#lvips-export-excel.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

#lvips-export-excel .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Card wrapper around the table */
.lvips-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
}

/* DataTables top controls (length + search) */
.lvips-card .dataTables_wrapper .dataTables_length,
.lvips-card .dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
    color: #50575e;
    font-size: 13px;
}

.lvips-card .dataTables_wrapper .dataTables_filter input,
.lvips-card .dataTables_wrapper .dataTables_length select {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 6px 10px;
    margin-left: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lvips-card .dataTables_wrapper .dataTables_filter input:focus,
.lvips-card .dataTables_wrapper .dataTables_length select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Table */
#lvips-visitor-ips-table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
}

#lvips-visitor-ips-table thead th {
    background: #f6f7f7;
    color: #1d2327;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e4e7;
}

#lvips-visitor-ips-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #2c3338;
    border-bottom: 1px solid #f0f0f1;
}

#lvips-visitor-ips-table tbody tr:hover td {
    background: #f6f9fc;
}

#lvips-visitor-ips-table tbody tr:last-child td {
    border-bottom: none;
}

/* Monospace IP column for readability */
#lvips-visitor-ips-table tbody td:first-child {
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
    color: #2271b1;
    font-weight: 500;
}

/* Pagination + info */
.lvips-card .dataTables_wrapper .dataTables_info {
    color: #646970;
    font-size: 13px;
    padding-top: 14px;
}

.lvips-card .dataTables_wrapper .dataTables_paginate {
    padding-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.lvips-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    box-sizing: border-box;
    padding: 0 10px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e4e7 !important;
    background: #fff !important;
    color: #2271b1 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lvips-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f0f6fc !important;
    border-color: #2271b1 !important;
    color: #135e96 !important;
}

.lvips-card .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.lvips-card .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(34, 113, 177, 0.35);
}

.lvips-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.lvips-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #c3c4c7 !important;
    background: #fff !important;
    border-color: #f0f0f1 !important;
    cursor: default;
    box-shadow: none;
}

/* The "…" ellipsis span between page numbers */
.lvips-card .dataTables_wrapper .dataTables_paginate .ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: #a7aaad;
}

/* Processing indicator */
.lvips-card .dataTables_wrapper .dataTables_processing {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #50575e;
    font-weight: 500;
}
