/* =======================
   タイトル
======================= */

.logCount {

    font-size: 28px;
    font-weight: 700;
    color: #2d3c6b;

}

.totalCount {

    font-size: 15px;
    color: #64748b;

    margin-top: 6px;
    margin-bottom: 24px;

}


/* =======================
   検索エリア
======================= */

.searchArea {

    display: flex;
    gap: 16px;

    align-items: center;
    flex-wrap: wrap;

    margin-bottom: 28px;

}

.searchBox {

    position: relative;

    flex: 1;

    min-width: 280px;
    max-width: 460px;

}

.searchBox i {

    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;

}

.searchBox input {

    width: 100%;
    height: 56px;

    padding-left: 50px;

    border: 2px solid #dbe5f4;
    border-radius: 16px;

    font-size: 16px;

    transition: .2s;

    box-sizing: border-box;

}

.searchBox input:focus {

    outline: none;

    border-color: #4f7cff;

}


/* =======================
   セレクトボックス
======================= */

#statusFilter,
#dateFilter {

    height: 56px;

    min-width: 180px;

    padding: 0 16px;

    border: 2px solid #dbe5f4;
    border-radius: 16px;

    background: white;

    color: #2d3c6b;
    font-size: 16px;

    cursor: pointer;

}

#statusFilter:focus,
#dateFilter:focus {

    outline: none;
    border-color: #4f7cff;

}


/* =======================
   統計カード
======================= */

.summaryArea {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 36px;

}

.summaryCard {

    width: 180px;

    background: white;

    border-radius: 20px;

    padding: 20px;

    text-align: center;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .05);

}

.summaryTitle {

    font-size: 17px;

    font-weight: 600;

    color: #475569;

    margin-bottom: 10px;

}

.summaryValue {

    font-size: 42px;
    font-weight: 700;

    color: #111827;

}

.summaryCard.all {

    border-left: 6px solid #2563eb;

}

.summaryCard.safe {

    border-left: 6px solid #22c55e;

}

.summaryCard.disconnect {

    border-left: 6px solid #f59e0b;

}

.summaryCard.alarm {

    border-left: 6px solid #ef4444;

}


/* =======================
   日付ヘッダー
======================= */

.dateHeader {

    display: flex;

    justify-content: space-between;
    align-items: center;

    font-size: 24px;
    font-weight: 700;

    color: #2d3c6b;

    margin-top: 40px;
    margin-bottom: 18px;

    padding-bottom: 10px;

    border-bottom: 2px solid #edf2fb;

}


/* =======================
   ログ一覧
======================= */

.logList {

    display: flex;

    flex-direction: column;

    gap: 16px;

}


/* =======================
   ログカード
======================= */

.logCard {

    background: white;

    border: 2px solid #edf2fb;
    border-radius: 24px;

    padding: 22px;

    transition: .25s;

}

.logCard:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(79, 124, 255, .10);

}


/* =======================
   カード上段
======================= */

.logHeader {

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

}

.logInfo {

    flex: 1;

}


/* =======================
   利用者名
======================= */

.logUser {

    font-size: 26px;
    font-weight: 700;

    color: #2d3c6b;

}


/* =======================
   タグID
======================= */

.logTag {

    margin-top: 6px;

    font-size: 14px;
    font-weight: 600;

    color: #64748b;

}


/* =======================
   時刻
======================= */

.logTime {

    margin-top: 12px;

    font-size: 14px;
    font-weight: 600;

    color: #94a3b8;

}


/* =======================
   ステータス
======================= */

.logStatus {

    flex-shrink: 0;

    padding: 10px 18px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;

}

.normal {

    background: #dcfce7;
    color: #22c55e;

}

.wait {

    background: #fef3c7;
    color: #d97706;

}

.alert {

    background: #fee2e2;
    color: #ef4444;

}

.notConnected {

    background: #e5e7eb;
    color: #6b7280;

}


/* =======================
   読み込み
======================= */

.loadingCard {

    background: white;

    border: 2px solid #edf2fb;
    border-radius: 24px;

    padding: 40px;

    text-align: center;

    color: #64748b;

}

.summaryCard.notConnected {

    border-left: 6px solid #6b7280;

}

.modal {

    display: none;

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    background:
        rgba(0, 0, 0, .35);

    justify-content: center;

    align-items: center;

    z-index: 999999;

}

.modal.show {

    display: flex;

}

/* =======================
   詳細検索モーダル
======================= */

.modalContent {

    display: block;

    position: relative;

    width: 500px;

    max-width: 90%;

    background: #ffffff;

    border-radius: 24px;

    padding: 32px;

    z-index: 1000000;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .20);

}

.modalContent label {

    display: block;

    margin-bottom: 8px;

    font-size: 15px;

    font-weight: 600;

    color: #475569;

}

.modalContent input[type="date"] {

    width: 100%;

    height: 52px;

    margin-top: 8px;

    margin-bottom: 16px;

    border: 2px solid #dbe5f4;

    border-radius: 12px;

    padding: 0 16px;

    font-size: 16px;

    box-sizing: border-box;

}

.modalHeader {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

}

.modalDescription {

    margin-bottom: 20px;

    color: #666;

}

.modalButtonArea {

    display: flex;

    gap: 10px;

    margin-top: 20px;

}

.detailSearchButton {

    height: 56px;

    min-width: 150px;

    background: #f8fafc;

    border: 2px solid #dbe5f4;

    color: #64748b;

    border-radius: 16px;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;

}


.detailSearchButton:hover {

    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;

}

.detailSearchButton i {

    color: #64748b;

    margin-right: 6px;

}

#applySearchButton {

    flex: 1;

    height: 50px;

    border: none;

    border-radius: 12px;

    background: #6b8cff;

    color: white;

    font-weight: 700;

    cursor: pointer;

}

#clearSearchButton {

    flex: 1;

    height: 50px;

    border: none;

    border-radius: 12px;

    background: #e5e7eb;

    color: #374151;

    font-weight: 700;

    cursor: pointer;

}

#closeSearchModal {

    width: 36px;

    height: 36px;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    cursor: pointer;

    font-size: 18px;

}

.modalHeader h3 {

    color: #2d3c6b;

    font-size: 24px;

    font-weight: 700;

}

.modalHeader h3 i {

    color: #64748b;

}

.dateHeader {

    cursor: pointer;

    user-select: none;

    padding: 10px;

    border-radius: 8px;

    transition: 0.2s;

}

.dateHeader:hover {

    background: #F5F8FF;

}


/* =======================
   タブレット
======================= */

@media (max-width: 900px) {

    .summaryArea {

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        gap: 20px;

    }

}


/* =======================
   スマホ
======================= */

@media (max-width: 768px) {

    .searchArea {

        flex-direction: column;

        align-items: stretch;

    }

    .searchBox {

        max-width: 100%;
        min-width: auto;

    }

    #statusFilter,
    #dateFilter {

        width: 100%;

    }

    .summaryArea {

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

    }

    .summaryCard {

        width: auto;

    }




    .logHeader {

        flex-direction: column;
        align-items: flex-start;

    }

    .logUser {

        font-size: 22px;

    }

    .dateHeader {

        font-size: 20px;

    }

}