/* ================================
   TASKS TABLE — PREMIUM STYLE
================================ */

.tasks-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.tasks-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f6;
    padding: 24px 28px;
}

.tasks-card .card-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
}

.tasks-card .card-body {
    background: #fff;
}

.tasks-table {
    margin: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tasks-table thead th {
    background: #f6f8fb;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 20px 28px;
    border: 0;
    white-space: nowrap;
}

.tasks-table tbody td {
    padding: 22px 28px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.tasks-table tbody tr:last-child td {
    border-bottom: 0;
}

.tasks-table tbody tr {
    transition: .22s ease;
}

.tasks-table tbody tr:hover {
    background: #fafafa;
}

.tasks-table .task-name span,
.tasks-table .task-name a {
    color: #111827;
    font-weight: 900;
    text-decoration: none;
}

.tasks-table .task-date {
    color: #111827;
    font-weight: 900;
}

.tasks-table .task-user {
    color: #1f2937;
    font-weight: 700;
}

.tasks-table .task-description {
    color: #64748b;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BUTTONS */
.task-action-btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0 !important;
}

.task-edit-btn {
    background: #6f7a83 !important;
    color: #fff !important;
}

.task-edit-btn:hover {
    background: #4b5563 !important;
    transform: translateY(-1px);
}

.task-delete-btn {
    background: #e73346 !important;
    color: #fff !important;
}

.task-delete-btn:hover {
    background: #c91f32 !important;
    transform: translateY(-1px);
}

/* PAGINATION */
.pagination-wrapper {
    margin-top: 28px;
    margin-bottom: 10px;
}

.custom-pagination {
    gap: 10px;
}

.custom-pagination .page-link {
    width: 50px;
    height: 50px;
    border-radius: 14px !important;
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.custom-pagination .page-item.active .page-link {
    background: #00416f;
    color: #fff;
}

.custom-pagination .page-link:hover {
    background: #e2e8f0;
    color: #111827;
}

.custom-pagination .page-item.disabled .page-link {
    opacity: .55;
    box-shadow: none;
}

/* MOBILE */
@media (max-width: 768px) {
    .tasks-card {
        border-radius: 20px;
    }

    .tasks-card .card-header {
        padding: 20px;
    }

    .tasks-card .card-title {
        font-size: 21px;
    }

    .tasks-table thead {
        display: none;
    }

    .tasks-table tbody tr {
        display: block;
        padding: 18px;
        border-bottom: 1px solid #f1f5f9;
    }

    .tasks-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0;
        border: 0;
    }

    .tasks-table tbody td::before {
        font-weight: 900;
        color: #94a3b8;
    }

    .tasks-table tbody td:nth-child(1)::before {
        content: "#";
    }

    .tasks-table tbody td:nth-child(2)::before {
        content: "Zadanie";
    }

    .tasks-table tbody td:nth-child(3)::before {
        content: "Data";
    }

    .tasks-table tbody td:nth-child(4)::before {
        content: "Pracownik";
    }
}