/* =========================================================
   WP Latest Notifications — Modern Frontend CSS
   ========================================================= */

/* Core Variables mapped to backend choices */
:root {
    --wpnotif-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --wpnotif-base-size: 14px;
    --wpnotif-txt-main: #1e293b;
    --wpnotif-brand-primary: #2563eb;
    --wpnotif-accent-red: #ef4444;
    --wpnotif-bg-card: #ffffff;
    --wpnotif-border-light: #f1f5f9;
}

/* Base Wrapper Reset[cite: 3] */
.wpnotif-full-wrap *,
.wpnotif-widget-wrap * {
    box-sizing: border-box;
}

.wpnotif-full-wrap {
    width: 100%;
    overflow-x: auto;
    font-family: var(--wpnotif-font-stack) !important;
    font-size: var(--wpnotif-base-size) !important;
    color: var(--wpnotif-txt-main) !important;
    background: var(--wpnotif-bg-card);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Modern Minimalist Table Framework[cite: 3] */
.wpnotif-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: var(--wpnotif-base-size);
    line-height: 1.5;
}

.wpnotif-table thead tr {
    background: transparent;
}

.wpnotif-table thead th {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
}

/* Card Row Styles[cite: 3] */
.wpnotif-table tbody .wpnotif-row {
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpnotif-table tbody .wpnotif-row:hover {
    transform: translateY(-1px);
    background: #f8fafc;
}

.wpnotif-table td {
    padding: 16px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.wpnotif-table td:first-child {
    border-left: 1px solid #f1f5f9;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.wpnotif-table td:last-child {
    border-right: 1px solid #f1f5f9;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Highlighted New Rows[cite: 3] */
.wpnotif-table tbody .wpnotif-row.wpnotif-is-new {
    background: #fff8f8;
}

.wpnotif-table tbody .wpnotif-row.wpnotif-is-new td:first-child {
    border-left: 4px solid var(--wpnotif-accent-red);
}

/* Typography elements[cite: 3] */
.wpnotif-col-sno {
    width: 60px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
}

.wpnotif-title-link {
    color: var(--wpnotif-txt-main);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.wpnotif-title-link:hover {
    color: var(--wpnotif-brand-primary);
}

.wpnotif-ext-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.wpnotif-date-chip {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

/* Modern Pill Buttons[cite: 3] */
.wpnotif-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.wpnotif-dl-btn:hover {
    background: var(--wpnotif-brand-primary);
    border-color: var(--wpnotif-brand-primary);
    color: #ffffff;
}

.wpnotif-dl-btn svg {
    width: 14px;
    height: 14px;
}

/* Elegant Red Dividers[cite: 3] */
.wpnotif-new-divider-row td {
    padding: 0;
    border: none;
    background: transparent;
}

.wpnotif-new-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.wpnotif-new-divider::before,
.wpnotif-new-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wpnotif-accent-red);
    opacity: .2;
}

.wpnotif-new-badge {
    font-size: 10px;
    font-weight: 800;
    background: var(--wpnotif-accent-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .08em;
}

/* Pagination Bar Styles */
.wpnotif-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.wpnotif-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.wpnotif-page-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.wpnotif-page-link.active {
    color: #ffffff !important;
    background: var(--wpnotif-brand-primary) !important;
    border-color: var(--wpnotif-brand-primary) !important;
}

/* =====================================================================
   SIDEBAR WIDGET UI PACK[cite: 3]
   ===================================================================== */
.wpnotif-widget-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.wpnotif-widget-header {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.wpnotif-widget-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.wpnotif-widget-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.wpnotif-widget-row:hover {
    background: #f8fafc;
}

.wpnotif-widget-row.wpnotif-is-new {
    border-left: 3px solid var(--wpnotif-accent-red);
}

.wpnotif-widget-sno {
    font-size: 11px;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
}

.wpnotif-widget-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wpnotif-widget-link {
    font-weight: 600;
    color: var(--wpnotif-txt-main);
    text-decoration: none;
}

.wpnotif-widget-link:hover {
    color: var(--wpnotif-brand-primary);
}

.wpnotif-widget-date {
    font-size: 11px;
    color: #94a3b8;
}

.wpnotif-widget-sep {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff8f8;
}

.wpnotif-widget-sep::before,
.wpnotif-widget-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--wpnotif-accent-red);
    opacity: 0.15;
}

.wpnotif-widget-sep span {
    font-size: 9px;
    font-weight: 800;
    color: var(--wpnotif-accent-red);
    letter-spacing: 0.05em;
}
