/* ===================== */
/* タイトル余白 */
/* ===================== */

.title {

    margin-bottom: 50px;

}

/* ===================== */
/* サマリー */
/* ===================== */

.userCard:hover {

    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(79, 124, 255, 0.15);

    border-color: #4f7cff;

}

.summaryGrid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 50px;

}

.summaryCard {

    background: white;

    border-radius: 25px;

    padding: 25px;

    text-align: center;

    border: 2px solid #edf2fb;

    cursor: default;

}

.summaryCard i {

    font-size: 40px;

    color: #4f7cff;

    margin-bottom: 15px;

}

.summaryCard h3 {

    font-size: 20px;

    margin-bottom: 10px;

    color: #2d3c6b;

}

.summaryCard p {

    font-size: 28px;

    font-weight: bold;

}

.okText {

    color: #22c55e;

}

.ngText {

    color: #ef4444;

}

.notConnectedText {

    color: #6b7280;

}

/* ===================== */
/* 検索 */
/* ===================== */

.searchArea {

    margin-top: 40px;

    margin-bottom: 30px;

}

.searchArea input {

    width: 100%;

    padding: 18px 24px;

    border-radius: 16px;

    border: 2px solid #edf2fb;

    font-size: 18px;

    box-sizing: border-box;

}

.searchArea input:focus {

    outline: none;

    border-color: #4f7cff;

    box-shadow:
        0 0 0 4px rgba(79,
            124,
            255,
            0.15);

}

/* ===================== */
/* 利用者一覧 */
/* ===================== */

.userStatusGrid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}

.userCard {

    display: flex;

    flex-direction: column;

    gap: 10px;

    text-decoration: none;

    color: inherit;

    background: white;

    border-radius: 25px;

    padding: 24px;

    border: 2px solid #edf2fb;

    transition: 0.3s;

    cursor: pointer;

}

.cardHeader {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 10px;

}

.cardHeader h2 {

    margin: 0;

    font-size: 24px;

    color: #2d3c6b;

}

/* ===================== */
/* 状態バッジ */
/* ===================== */

.okBadge {

    background: #dcfce7;

    color: #22c55e;

    padding: 8px 16px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: bold;

}

.ngBadge {

    background: #fee2e2;

    color: #ef4444;

    padding: 8px 16px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: bold;

}

.okBadge,
.waitBadge,
.ngBadge {

    padding: 10px 18px;

    border-radius: 999px;

    font-size: 15px;

    font-weight: 700;

}



/* ===================== */
/* BLE-ID */
/* ===================== */

.bleId {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #7d879d;

    font-size: 17px;

    font-weight: 600;

}

.bleId i {

    color: #4f7cff;

}

/* ===================== */
/* 最終受信 */
/* ===================== */

.lastSeen {

    color: #7f8aa3;

    font-size: 15px;

    font-weight: 600;

}

/* ===================== */
/* ローディング */
/* ===================== */

.loadingCard {

    background: white;

    border-radius: 25px;

    padding: 30px;

    text-align: center;

    color: #7d879d;

    border: 2px solid #edf2fb;

}

.infoRow {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 15px;

    font-weight: 600;

    color: #64748b;

}

.infoRow i {

    width: 18px;

    color: #4f7cff;

}

.waitBadge {

    background: #fef3c7;

    color: #d97706;

    padding: 8px 16px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: bold;

}

.userCard.ok {

    border-left: 6px solid #22c55e;
    background: #f7fff9;

}

.userCard.wait {

    border-left: 6px solid #f59e0b;
    background: #fffdf5;

}

.userCard.ng {

    border-left: 6px solid #ef4444;
    background: #fff5f5;

}

.userCard.notConnected {
    border-left: 6px solid #9ca3af;
    background: #f8fafc;
}

.notConnectedBadge {
    background: #e5e7eb;
    color: #6b7280;
}

.userList {

    display: grid;

    gap: 20px;

    min-height: 800px;

}

@media (max-width: 1200px) {

    .userStatusGrid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}

/* =====================
   タブレット
===================== */

@media (max-width: 1024px) {

    .userStatusGrid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .summaryGrid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}

/* ===================== */
/* タブレット */
/* ===================== */

@media (max-width: 768px) {

    .userStatusGrid {

        grid-template-columns:
            1fr;

    }

    .summaryGrid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;

    }

    .summaryCard {

        padding: 16px;

    }

    .summaryCard h3 {

        font-size: 15px;

    }

    .summaryCard p {

        font-size: 24px;

    }

    .summaryCard i {

        font-size: 26px;

    }

    .searchArea {

        margin-top: 25px;

        margin-bottom: 20px;

    }

    .searchArea input {

        padding: 14px 18px;

        font-size: 16px;

    }

    .userCard {

        padding: 18px;

    }

    .cardHeader h2 {

        font-size: 20px;

    }

    .bleId {

        font-size: 15px;

    }

    .infoRow {

        font-size: 14px;

    }

    .container {

        padding: 16px;

    }


}

/* ===================== */
/* スマホ */
/* ===================== */

@media (max-width: 480px) {

    .summaryGrid {

        grid-template-columns: repeat(2, 1fr);

        gap: 12px;

    }

    .summaryCard {

        padding: 14px;

    }

    .summaryCard h3 {

        font-size: 14px;

        white-space: nowrap;

    }

    .summaryCard p {

        font-size: 22px;

    }

    .summaryCard i {

        font-size: 24px;

        margin-bottom: 10px;

    }

}