/* TIPOGRAFIA */
.poligons-content,
.poligons-content *,
.poligons-hero,
.poligons-hero * {
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   HERO
========================= */

.poligons-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin: -60px -60px 0 -60px;
    padding-left: 70px;
    position: relative;
}

.poligons-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.list-header .poligons-title {
    margin: 0;
}

.btn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    background: #21b5d0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-create:hover {
    background: #1f9db5;
    color: #ffffff;
    text-decoration: none;
}

/* =========================
   CONTINGUT
========================= */

.poligons-content {
    padding-top: 40px;
}

.poligons-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #1f1f1f;
    letter-spacing: -0.4px;
}

/* =========================
   FILTRES
========================= */

.poligons-filters {
    margin-bottom: 26px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px 18px;
}

.filters-row-break {
    grid-column: 1 / -1;
    height: 0;
}

.filter-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #1f1f1f;
}

.filter-item input,
.filter-item select {
    width: 100%;
    height: 46px;
    border: 1.5px solid #8a8a8a;
    border-radius: 10px;
    padding: 0 14px;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.filter-buttons {
    display: flex;
    align-items: end;
    gap: 12px;
}

.btn-filter {
    height: 46px;
    background: #b79b7a;
    border: none;
    padding: 0 26px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 46px;
    text-decoration: none;
    font-size: 24px;
    color: #1f1f1f;
}

.poligons-divider {
    margin: 30px 0 26px 0;
    border: none;
    border-top: 1px solid #000000;
    opacity: 100%;
}

/* =========================
   TAULA
========================= */

.poligons-table {
    margin-top: 10px;
}

.table-head-row,
.table-data-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

.table-head-row {
    margin-bottom: 12px;
}

.table-data-row {
    margin-bottom: 14px;
}

.table-head-left,
.table-data-left {
    box-sizing: border-box;
    padding: 0 18px;
}

.table-head-left {
    min-height: 34px;
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    border: 0;
    background: transparent;
}

.table-data-left {
    min-height: 46px;
    border: 1px solid #000000;
    border-radius: 10px;
    background: #ffffff;
    display: grid;
    align-items: center;
    color: #111111;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.4fr 1.2fr 0.9fr 0.9fr;
    align-items: center;
}

.user-grid {
    display: grid;
    grid-template-columns: 2.4fr 1.1fr 1.4fr;
    align-items: center;
}

.head-center,
.col-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-nom {
    font-size: 16px;
}

/* =========================
   ESPAIS BOTONS
========================= */

.admin-actions-space {
    width: 348px;
}

.user-actions-space {
    width: 224px;
}

/* =========================
   CHECKS
========================= */

.status-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.status-ok {
    background: #14b339;
}

.status-no {
    background: #d90808;
}

/* =========================
   BOTONS ACCIONS
========================= */

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-edit,
.btn-delete,
.btn-detail,
.btn-report {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

.btn-edit {
    background: #19b7df;
    color: #ffffff;
}

.btn-delete {
    background: #e10600;
    color: #ffffff;
}

.btn-detail {
    background: #1f1f1f;
    color: #ffffff;
}

.btn-report {
    background: #7b6653;
    color: #ffffff;
}

/* =========================
   BUIDA
========================= */

.table-empty {
    padding: 18px;
    border: 1px solid #8d8d8d;
    border-radius: 12px;
    background: #ffffff;
    color: #555555;
}

/* =========================
   PAGINACIÓ
========================= */

.pagination {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #1f1f1f;
}

.pagination a {
    text-decoration: none;
    color: #1f1f1f;
    font-weight: 700;
}

.page-arrow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef1f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1400px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 1200px) {
    .admin-grid {
        grid-template-columns: 2fr 1.2fr 1fr 0.8fr 0.8fr;
    }

    .user-grid {
        grid-template-columns: 2fr 1fr 1.2fr;
    }

    .row-actions {
        gap: 8px;
    }

    .btn-edit,
    .btn-delete,
    .btn-detail,
    .btn-report {
        min-width: 88px;
        height: 40px;
        font-size: 13px;
    }

    .admin-actions-space {
        width: 308px;
    }

    .user-actions-space {
        width: 196px;
    }
}

@media (max-width: 900px) {
    .poligons-hero {
        margin: -30px -20px 0 -20px;
        padding-left: 34px;
        height: 260px;
    }

    .hero-text {
        font-size: 40px;
        max-width: 420px;
    }

    .poligons-content {
        padding-top: 28px;
    }

    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .poligons-title {
        font-size: 30px;
    }

    .hero-text {
        font-size: 32px;
        line-height: 1.18;
    }
}