/* =========================
   Base Reset
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f5f7fb;
    padding: 24px;
    color: #222;
}

/* =========================
   Page Header
========================= */
h2 {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
}

/* =========================
   Table Wrapper
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* =========================
   Table Head
========================= */
thead {
    background: #111827;
    color: #fff;
}

thead th {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.3px;
}

/* =========================
   Table Body
========================= */
tbody td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* =========================
   Hover Effect
========================= */
tbody tr:hover {
    background: #f9fafb;
}

/* =========================
   Column Styling
========================= */
td:nth-child(1) {
    white-space: nowrap;
    color: #555;
    font-size: 13px;
}

td:nth-child(2) {
    font-family: monospace;
    font-size: 12px;
    color: #374151;
}

td:nth-child(3) {
    text-transform: capitalize;
    font-weight: 600;
    font-size: 13px;
}

/* =========================
   Feedback Type Badges
========================= */
td:nth-child(3)::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: #9ca3af;
}

td:nth-child(3):contains("bug")::before {
    background: #ef4444;
}

td:nth-child(3):contains("suggestion")::before {
    background: #3b82f6;
}

/* =========================
   Message Column
========================= */
td:nth-child(4) {
    line-height: 1.5;
    color: #111827;
}

/* =========================
   Empty / Loading State
========================= */
tbody tr td[colspan] {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-size: 14px;
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    table {
        font-size: 13px;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        margin-right: 8px;
    }
}