.cctv-container {
    margin: 40px auto;
    width: 90%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}

.camera-card {
    position: relative;
    background: #00000026;
    border-radius: 10px;
    border: 2px solid #222;
    overflow: hidden;
}

.camera-card video {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px 10px;
    background: #00000026;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cam-title {
    color: #00ff04;
    font-size: 16px;
    font-family: monospace;
}

.cam-time {
    color: #ffffff;
    font-size: 14px;
    font-family: monospace;
}



.camera-overlay .cam-time {
    font-weight: bold;
    transition: color 0.3s ease;
}

/* ✅ Loader Overlay */
.loader {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ✅ Spinner Animation */
.loader::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 6px solid #fff;
    border-top: 6px solid lime;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}