/* ==========================================
   TASK LIST PREMIUM STYLE
========================================== */

:root {
    --blue: #3473BA;
    --blue-dark: #2C629D;
    --dark: #111827;
    --text: #374151;
    --muted: #6b7280;
    --light-muted: #9ca3af;
    --border: #e5e7eb;
    --soft: #f8fafc;
}

/* PAGE */

.task-page-wrapper {
    padding: 24px 0;
}

/* ==========================================
   HEADER
========================================== */

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.task-title-box h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -.8px;
}

.task-title-box p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.btn-task-add {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        var(--blue),
        #4E80BD
    );

    color: #fff !important;
    font-size: 15px;
    font-weight: 800;

    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    box-shadow:
        0 14px 30px rgba(52, 115, 186,.22);

    transition: .25s ease;
}

.btn-task-add:hover {
    transform: translateY(-2px);
}

/* ==========================================
   FILTERS
========================================== */

.task-filter-card {
    background: #fff;
    border-radius: 30px;
    border: 1px solid rgba(15,23,42,.05);
    box-shadow: 0 14px 40px rgba(15,23,42,.05);
    padding: 26px;
    margin-bottom: 28px;
}

.task-input-wrap {
    position: relative;
}

.task-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 18px;
    z-index: 2;
}

.task-filter-input,
.task-filter-select {
    min-height: 58px;
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;

    padding-left: 52px !important;

    font-size: 15px;
    font-weight: 600;

    box-shadow: none !important;
    transition: .25s ease;
}

.task-filter-input:focus,
.task-filter-select:focus {
    border-color: rgba(52, 115, 186,.35) !important;
    box-shadow:
        0 0 0 5px rgba(52, 115, 186,.10) !important;
}

.btn-task-filter {
    min-height: 58px;
    border: 0 !important;
    border-radius: 18px !important;

    background: var(--blue) !important;
    color: #fff !important;

    font-size: 15px;
    font-weight: 800;

    transition: .25s ease;
}

.btn-task-filter:hover {
    background: var(--blue-dark) !important;
}

.btn-task-clear {
    min-height: 58px;
    border-radius: 18px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    font-weight: 700;
}

/* PREMIUM TASK MODAL - styl jak pracownik */

.premium-task-modal .modal-dialog {
    max-width: 1180px;
}

.premium-task-modal .modal-content {
    border: 0;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .18);
}

.premium-task-modal .modal-header {
    border: 0;
    padding: 30px 34px;
    background: linear-gradient(135deg, rgba(52, 115, 186,.08), rgba(255,255,255,0));
}

.premium-task-modal .modal-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.8px;
    color: #111827;
}

.premium-task-modal .btn-close {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background-color: rgba(15,23,42,.04);
    opacity: 1;
}

.premium-task-modal .modal-body {
    padding: 28px 34px 10px;
}

.premium-task-modal .modal-footer {
    border: 0;
    padding: 20px 34px 34px;
}

.premium-task-modal .mb-3 {
    padding: 24px;
    border-radius: 26px;
    background: #fcfcfc;
    border: 1px solid #f1f3f5;
    margin-bottom: 18px !important;
}

.premium-task-modal .form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #374151;
}

.premium-task-modal .form-control,
.premium-task-modal .form-select {
    min-height: 58px;
    border-radius: 18px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    padding: 14px 18px !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
}

.premium-task-modal textarea.form-control {
    min-height: 150px;
    border-radius: 22px !important;
    resize: vertical;
}

.premium-task-modal .form-control:focus,
.premium-task-modal .form-select:focus {
    border-color: rgba(52, 115, 186,.35) !important;
    box-shadow: 0 0 0 5px rgba(52, 115, 186,.10) !important;
}

.task-status-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 26px;
    background: #fcfcfc;
    border: 1px solid #f1f3f5;
}

.task-status-box .form-check-input {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    border: 0;
    background-color: #d1d5db;
    cursor: pointer;
}

.task-status-box .form-check-input:checked {
    background-color: #3473BA;
}

.task-status-box .form-check-label {
    font-size: 15px;
    font-weight: 800;
    color: #374151;
}

.edit-task-btn {
    width: 100%;
    min-height: 58px;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #3473BA, #4E80BD) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(52, 115, 186,.22);
}

.delete-task-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px !important;
    border: 1px solid rgba(239,68,68,.14) !important;
    background: rgba(239,68,68,.08) !important;
    color: #dc2626 !important;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .premium-task-modal .modal-dialog {
        margin: 14px;
    }

    .premium-task-modal .modal-header,
    .premium-task-modal .modal-body,
    .premium-task-modal .modal-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .premium-task-modal .modal-title {
        font-size: 27px;
    }

    .premium-task-modal .mb-3 {
        padding: 20px;
    }
}

/* ==========================================
   TABLE CARD
========================================== */
.employee-add-btn:hover {
    background: #2C629D !important;
    transform: translateY(-1px);
}

/* PREMIUM TASK MODAL - styl jak pracownik */

.premium-task-modal .modal-dialog {
    max-width: 1180px;
}

.premium-task-modal .modal-content {
    border: 0;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .18);
}

.premium-task-modal .modal-header {
    border: 0;
    padding: 30px 34px;
    background: linear-gradient(135deg, rgba(52, 115, 186,.08), rgba(255,255,255,0));
}

.premium-task-modal .modal-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.8px;
    color: #111827;
}

.premium-task-modal .btn-close {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background-color: rgba(15,23,42,.04);
    opacity: 1;
}

.premium-task-modal .modal-body {
    padding: 28px 34px 10px;
}

.premium-task-modal .modal-footer {
    border: 0;
    padding: 20px 34px 34px;
}

.premium-task-modal .mb-3 {
    padding: 24px;
    border-radius: 26px;
    background: #fcfcfc;
    border: 1px solid #f1f3f5;
    margin-bottom: 18px !important;
}

.premium-task-modal .form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #374151;
}

.premium-task-modal .form-control,
.premium-task-modal .form-select {
    min-height: 58px;
    border-radius: 18px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    padding: 14px 18px !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
}

.premium-task-modal textarea.form-control {
    min-height: 150px;
    border-radius: 22px !important;
    resize: vertical;
}

.premium-task-modal .form-control:focus,
.premium-task-modal .form-select:focus {
    border-color: rgba(52, 115, 186,.35) !important;
    box-shadow: 0 0 0 5px rgba(52, 115, 186,.10) !important;
}

.task-status-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 26px;
    background: #fcfcfc;
    border: 1px solid #f1f3f5;
}

.task-status-box .form-check-input {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    border: 0;
    background-color: #d1d5db;
    cursor: pointer;
}

.task-status-box .form-check-input:checked {
    background-color: #3473BA;
}

.task-status-box .form-check-label {
    font-size: 15px;
    font-weight: 800;
    color: #374151;
}

.edit-task-btn {
    width: 100%;
    min-height: 58px;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #3473BA, #4E80BD) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(52, 115, 186,.22);
}

.delete-task-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px !important;
    border: 1px solid rgba(239,68,68,.14) !important;
    background: rgba(239,68,68,.08) !important;
    color: #dc2626 !important;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .premium-task-modal .modal-dialog {
        margin: 14px;
    }

    .premium-task-modal .modal-header,
    .premium-task-modal .modal-body,
    .premium-task-modal .modal-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .premium-task-modal .modal-title {
        font-size: 27px;
    }

    .premium-task-modal .mb-3 {
        padding: 20px;
    }
}

.task-table-card {
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,.05);

    box-shadow:
        0 20px 60px rgba(15,23,42,.06);
}

.task-table-header {
    padding: 28px 32px;
    border-bottom: 1px solid #f3f4f6;
}

.task-table-header h5 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.task-table-header small {
    color: var(--muted);
}

/* ==========================================
   TABLE
========================================== */

.premium-task-table {
    margin: 0;
}

.premium-task-table thead th {
    border: 0 !important;
    background: #fafafa;

    padding: 20px 24px;

    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.premium-task-table tbody td {
    padding: 22px 24px;
    vertical-align: middle;
    border-color: #f3f4f6 !important;
}

.premium-task-table tbody tr {
    transition: .2s ease;
}

.premium-task-table tbody tr:hover {
    background: rgba(52, 115, 186,.02);
}

/* TASK NAME */

.task-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
}

/* DESCRIPTION */

.task-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* USER */

.task-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;

    background: rgba(52, 115, 186,.10);
    color: var(--blue);

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

    font-weight: 800;
}

.task-user-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

/* DATE */

.task-date {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

/* ==========================================
   PREMIUM FILTERS CARD
========================================== */

.filters-card {
    background: #fff;
    border-radius: 34px;
    padding: 30px;
    border: 1px solid rgba(15,23,42,.05);

    box-shadow:
        0 20px 60px rgba(15,23,42,.06);

    margin-bottom: 28px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 28px;
}

.filter-header h5 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
}

.filter-header small {
    color: #6b7280;
    font-size: 14px;
}

/* LABEL */

.filter-label {
    display: block;
    margin-bottom: 10px;

    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

/* INPUT */

.filter-input-wrap {
    position: relative;
}

.filter-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;

    color: #3473BA;
    font-size: 18px;
}

.premium-filter-input {
    min-height: 60px;

    border-radius: 20px !important;
    border: 1px solid #e5e7eb !important;

    background: #fff !important;

    padding-left: 54px !important;
    padding-right: 18px !important;

    font-size: 15px;
    font-weight: 600;

    box-shadow: none !important;
    transition: .25s ease;
}

.premium-filter-input:focus {
    border-color: rgba(52, 115, 186,.35) !important;

    box-shadow:
        0 0 0 5px rgba(52, 115, 186,.10) !important;
}

/* BUTTONS */

.search-task-btn {
    width: 100%;
    min-height: 60px;

    border: 0 !important;
    border-radius: 20px !important;

    background:
        linear-gradient(
            135deg,
            #3473BA,
            #4E80BD
        ) !important;

    color: #fff !important;

    font-size: 16px;
    font-weight: 900;

    box-shadow:
        0 16px 34px rgba(52, 115, 186,.20);

    transition: .2s ease;
}

.search-task-btn:hover {
    transform: translateY(-2px);
}

.clear-filter-btn {
    min-height: 48px;

    border-radius: 16px !important;
    border: 1px solid #e5e7eb !important;

    background: #fff !important;
    color: #6b7280 !important;

    font-size: 14px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: .2s ease;
}

.clear-filter-btn:hover {
    background: rgba(239,68,68,.08) !important;
    color: #dc2626 !important;
}

/* MOBILE */

@media (max-width: 768px) {

    .filters-card {
        padding: 22px;
        border-radius: 28px;
    }

    .filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .clear-filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* STATUS */

.task-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}

.task-status.done {
    background: rgba(34,197,94,.12);
    color: #16a34a;
}

.task-status.pending {
    background: rgba(245,158,11,.12);
    color: #d97706;
}

/* ACTIONS */

.task-actions {
    display: flex;
    gap: 10px;
}

.btn-task-edit,
.btn-task-delete {
    width: 42px;
    height: 42px;
    border-radius: 14px;

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

    border: 0;
    transition: .2s ease;
}

.btn-task-edit {
    background: rgba(59,130,246,.10);
    color: #2563eb;
}

.btn-task-delete {
    background: rgba(239,68,68,.10);
    color: #dc2626;
}

.btn-task-edit:hover,
.btn-task-delete:hover {
    transform: translateY(-2px);
}

/* ==========================================
   PAGINATION
========================================== */

.custom-pagination {
    gap: 10px;
}

.custom-pagination .page-link {
    width: 48px;
    height: 48px;
    border: 0 !important;
    border-radius: 16px !important;

    background: #fff;
    color: var(--dark);

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

    font-weight: 700;

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

.custom-pagination .page-item.active .page-link {
    background: var(--blue);
    color: #fff;
}

.custom-pagination .page-link:hover {
    background: rgba(52, 115, 186,.10);
    color: var(--blue);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 991px) {

    .task-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-task-add {
        width: 100%;
        justify-content: center;
    }

    .task-filter-card {
        padding: 20px;
    }

    .task-table-card {
        border-radius: 26px;
        overflow-x: auto;
    }

    .premium-task-table {
        min-width: 900px;
    }
}