/* =========================
   SPOT TYPES PAGE
========================= */

.spot-type-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 50px;
    min-height: 90vh;
    box-sizing: border-box;
}

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

.spot-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.spot-type-header h1 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.btn-add-spot-type {
    background: #cd1218;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}

.btn-add-spot-type:hover {
    background: #a70e14;
}

/* =========================
   CARDS
========================= */

.spot-type-card {
    display: grid;
    grid-template-columns: 42px minmax(160px, 1.1fr) minmax(220px, 1.7fr) minmax(90px, .6fr) auto;
    align-items: center;
    gap: 18px;

    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    box-sizing: border-box;
}

.spot-type-color-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-type-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

.spot-type-col {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.spot-type-name {
    font-weight: 800;
    color: #111;
}

.spot-type-description {
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

.spot-type-count {
    font-weight: 800;
    color: #cd1218;
    white-space: nowrap;
}

/* =========================
   ACTIONS
========================= */

.spot-type-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

.spot-type-actions form {
    margin: 0;
}

/* SWITCH */

.switch-btn {
    width: 44px;
    height: 24px;
    border-radius: 50px;
    border: none;
    background: #ccc;
    position: relative;
    cursor: pointer;
    transition: .25s;
    padding: 0;
    flex: 0 0 auto;
}

.switch-btn span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: .25s;
}

.switch-btn.active {
    background: #cd1218;
}

.switch-btn.active span {
    left: 23px;
}

/* CIRCLE BUTTONS */

.btn-circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: .25s;
}

.btn-edit {
    background: #f4f4f4;
}

.btn-edit:hover {
    background: #ddd;
}

.btn-delete {
    background: #ffe6e6;
}

.btn-delete:hover {
    background: #ffcccc;
}

/* =========================
   EMPTY
========================= */

.spot-type-empty {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    color: #777;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

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

.spot-type-pagination {
    margin-top: 22px;
}

/* =========================
   MODAL
========================= */

.spot-type-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 18px;
    box-sizing: border-box;
}

.spot-type-modal.is-open {
    display: flex;
}

.spot-type-modal-box {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-sizing: border-box;
}

.spot-type-modal-box h2 {
    margin: 0 0 22px;
    font-size: 24px;
    font-weight: 800;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================
   FORM
========================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.color-input-row {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
}

.color-input-row input[type="color"] {
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.color-input-row input[type="text"] {
    background: #f7f7f7;
    color: #555;
}

.form-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.form-check-row label {
    font-weight: 800;
    margin: 0;
}

.form-check-row input {
    width: 18px;
    height: 18px;
    accent-color: #cd1218;
}

.btn-save {
    width: 100%;
    background: #cd1218;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-save:hover {
    background: #a70e14;
}

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

@media (max-width: 1200px) {
    .spot-type-page {
        padding: 70px 18px 45px;
    }

    .spot-type-card {
        grid-template-columns: 38px minmax(150px, 1fr) minmax(180px, 1.4fr) minmax(80px, .6fr) auto;
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .spot-type-page {
        padding: 40px 18px 40px;
    }

    .spot-type-card {
        grid-template-columns: 42px 1fr 1fr;
        gap: 14px 18px;
    }

    .spot-type-description {
        grid-column: 2 / -1;
    }

    .spot-type-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px;
    }

    .spot-type-page {
        padding: 28px 0 36px;
    }

    .spot-type-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .spot-type-header h1 {
        font-size: 26px;
    }

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

    .spot-type-card {
        grid-template-columns: 34px 1fr;
        padding: 18px;
        gap: 10px 14px;
    }

    .spot-type-name {
        font-size: 15px;
    }

    .spot-type-description,
    .spot-type-count {
        grid-column: 1 / -1;
    }

    .spot-type-actions {
        justify-content: space-between;
        padding-top: 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 14px;
    }

    .spot-type-page {
        padding: 22px 0 30px;
    }

    .spot-type-header h1 {
        font-size: 22px;
    }

    .spot-type-card {
        border-radius: 12px;
        padding: 16px;
    }

    .spot-type-actions {
        gap: 8px;
    }

    .btn-circle {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .switch-btn {
        width: 42px;
        height: 23px;
    }

    .switch-btn.active span {
        left: 21px;
    }

    .spot-type-modal-box {
        padding: 24px 18px;
        border-radius: 14px;
    }
}
