
.camera-grid-v1-1 {
    width: 100%;
}


/* =====================================================
   CAMERA GRID STATUS HEADER
   ===================================================== */

.camera-grid-header {

    width: 100%;

    min-height: 30px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    margin-bottom: 16px;

}


.camera-grid-status {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;

    flex-shrink: 0;

}


/* =====================================================
   TOTAL CAMERA
   ===================================================== */

.camera-grid-count {

    min-height: 30px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid rgba(40, 194, 238, .35);

    border-radius: 15px;

    background: rgba(5, 25, 36, .8);

    color: #5dd5f7;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .4px;

}


/* =====================================================
   ONLINE / OFFLINE
   ===================================================== */

.camera-grid-status-item {

    min-height: 30px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 0 10px;

    box-sizing: border-box;

    border-radius: 15px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .3px;

}


.camera-grid-status-item.online {

    border: 1px solid rgba(0, 220, 170, .35);

    background: rgba(0, 120, 95, .12);

    color: #00e0ae;

}


.camera-grid-status-item.offline {

    border: 1px solid rgba(255, 75, 75, .35);

    background: rgba(120, 20, 20, .12);

    color: #ff6868;

}


.status-dot {

    width: 7px;

    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

}


.online .status-dot {

    background: #00e0ae;

    box-shadow:
        0 0 7px rgba(0, 224, 174, .65);

}


.offline .status-dot {

    background: #ff6868;

}


/* =====================================================
   CAMERA GRID
   ===================================================== */

.camera-grid-list {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;

    align-items: start;

}


/* =====================================================
   CAMERA CARD
   ===================================================== */

.camera-card-v1-1 {

    position: relative;

    width: 100%;

    min-width: 0;

    overflow: hidden;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #0b2634 0%,
            #061923 52%,
            #031017 100%
        );

    border: 1px solid #087fa9;

    border-radius: 11px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .35);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;

}


.camera-card-v1-1:hover {

    transform: translateY(-2px);

    border-color: #18c5f1;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .45),
        0 0 15px rgba(0, 190, 235, .16);

}


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

.camera-card-header-v1-1 {

    position: relative;

    width: 100%;

    height: 39px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 9px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #0b2634,
            #061821
        );

    border-bottom:
        1px solid rgba(25, 131, 162, .38);

}


/* =====================================================
   PTZ
   ===================================================== */

.camera-ptz-v1-1 {

    min-width: 56px;

    height: 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #ff343d;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            rgba(125, 10, 18, .65),
            rgba(48, 5, 10, .8)
        );

    color: #ff4b52;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .8px;

    cursor: pointer;

    user-select: none;

    transition:
        background .18s ease,
        box-shadow .18s ease;

}


.camera-ptz-v1-1:hover {

    background:
        linear-gradient(
            135deg,
            rgba(165, 15, 25, .75),
            rgba(65, 5, 12, .9)
        );

    box-shadow:
        0 0 12px rgba(255, 45, 55, .22);

}


/* =====================================================
   LIVE
   ===================================================== */

.camera-live-v1-1 {

    min-width: 57px;

    height: 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #00c98b;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 92, 69, .55),
            rgba(0, 48, 37, .72)
        );

    color: #00edaa;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .7px;

}


.camera-live-v1-1::before {

    content: "";

    width: 7px;

    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background: #00efa8;

    box-shadow:
        0 0 8px rgba(0, 239, 168, .85);

}


/* =====================================================
   VIDEO
   ===================================================== */

.camera-video-v1-1 {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #000;

    border-bottom:
        1px solid rgba(19, 108, 137, .4);

}


.camera-video-v1-1 .camera-native-video-v1-1 {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: block;

    margin: 0;

    padding: 0;

    border: 0;

    background: #000;

    object-fit: cover;

    object-position: center center;

}


/* =====================================================
   CAMERA NAME
   ===================================================== */

.camera-name-v1-1 {

    position: relative;

    width: 100%;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 12px;

    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            #092330,
            #04131b
        );

    color: #f0fbff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .6px;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.camera-name-v1-1::after {

    content: "";

    position: absolute;

    bottom: 4px;

    left: 50%;

    width: 32px;

    height: 2px;

    transform: translateX(-50%);

    border-radius: 3px;

    background: #19c7f2;

    box-shadow:
        0 0 8px rgba(25, 199, 242, .7);

}


/* =====================================================
   DECORATIVE CORNERS
   ===================================================== */

.camera-card-v1-1::before,
.camera-card-v1-1::after {

    content: "";

    position: absolute;

    z-index: 20;

    width: 16px;

    height: 16px;

    pointer-events: none;

}


.camera-card-v1-1::before {

    top: 0;

    left: 0;

    border-top: 2px solid #1bc9f4;

    border-left: 2px solid #1bc9f4;

    border-top-left-radius: 10px;

}


.camera-card-v1-1::after {

    right: 0;

    bottom: 0;

    border-right: 2px solid #1bc9f4;

    border-bottom: 2px solid #1bc9f4;

    border-bottom-right-radius: 10px;

}


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

@media (min-width: 1000px) and (max-width: 1399px) {

    .camera-grid-list {

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

    }

}


@media (min-width: 700px) and (max-width: 999px) {

    .camera-grid-list {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


@media (max-width: 699px) {

    .camera-grid-header {

        margin-bottom: 16px;

    }

    .camera-grid-status {

        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;

    }

    .camera-grid-list {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;

    }

    .camera-card-header-v1-1 {

        height: 36px;

        padding: 0 7px;

    }

    .camera-ptz-v1-1,
    .camera-live-v1-1 {

        min-width: 45px;

        height: 23px;

        padding: 0 7px;

        font-size: 8px;

    }

    .camera-name-v1-1 {

        height: 35px;

        font-size: 10px;

    }

}


/* =====================================================
   FULLSCREEN
   ===================================================== */

.camera-card-v1-1:fullscreen {

    width: 100vw;

    height: 100vh;

    border: 0;

    border-radius: 0;

    background: #000;

}


.camera-card-v1-1:fullscreen .camera-video-v1-1 {

    height: calc(100vh - 40px);

    aspect-ratio: auto;

}


.camera-card-v1-1:fullscreen .camera-name-v1-1 {

    height: 40px;

}


.camera-card-v1-1:fullscreen .camera-ptz-v1-1,
.camera-card-v1-1:-webkit-full-screen .camera-ptz-v1-1 {

    display: none !important;

}

