/* ==============================
   Global Layout
============================== */

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 40px 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: auto;
}

/* ==============================
   Header
============================== */

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==============================
   Table Styling
============================== */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

th {
    background: linear-gradient(90deg, #007BFF, #0056b3);
    color: #ffffff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

tr:hover {
    background: #f1f7ff;
    transition: 0.2s ease;
}

/* ==============================
   Status Badge
============================== */

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: #d4edda;
    color: #155724;
    font-size: 12px;
    font-weight: 600;
}

/* ==============================
   Manage Button
============================== */

.manage-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #28a745;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.manage-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Center only Manage column */
th:last-child,
td:last-child {
    text-align: center;
}

/* ==============================
   Empty State
============================== */

.empty {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    color: #777;
}

/* ==============================
   Responsive Design
============================== */

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        display: none;
    }

    td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: #555;
    }
}
