body{
    font-family:'Poppins',sans-serif;
    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #e2e8f0
        );
    margin:0;
    padding:30px;
}
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    background:white;
    padding:20px 30px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.header-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo{
    width:70px;
    height:70px;
    object-fit:contain;
}

.header-left h1{
    margin:0;
    font-size:28px;
    color:#1e293b;
}

.header-left p{
    margin:5px 0 0;
    color:#64748b;
}
#stats{
    display:inline-block;
    background:white;
    padding:15px 30px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    font-weight:bold;
    margin-top:10px;
}
.stats-grid{
    display:flex;
    justify-content:center;
    gap:20px;
    margin:30px 0;
}
@media (max-width:768px){

    .stats-grid{
        flex-direction:column;
        align-items:center;
    }

    .stat-card{
        width:100%;
        max-width:300px;
    }

}
.stat-card{
    background:white;
    padding:25px 40px;
    border-radius:20px;
    min-width:180px;

    box-shadow:
        0 10px 25px rgba(
            0,
            0,
            0,
            0.08
        );
}
.stat-card span{
    font-size:36px;
    font-weight:700;
    color:#2563eb;
}

#search{
    width:100%;
    padding:15px;
    border:none;
    border-radius:15px;
    margin-bottom:20px;
    box-sizing:border-box;
}

.filter-container{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.filter-btn{
    border:none;
    padding:12px 20px;
    border-radius:30px;
    background:#2563eb;
    color:white;
    cursor:pointer;
}

#cctv-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.card{
    background:white;

    border-radius:24px;

    padding:25px;

    cursor:pointer;

    border:1px solid #e2e8f0;

    transition:all .3s ease;

    box-shadow:
        0 5px 15px rgba(
            0,
            0,
            0,
            0.05
        );
}

.card:hover{

    transform:
        translateY(-8px);

    box-shadow:
        0 0 0 1px #2563eb,
        0 20px 40px rgba(
            37,
            99,
            235,
            0.2
        );

}

.card h3{
    margin-top:0;
    color:#222;
}

.badge{
    background:#2563eb;
    color:white;
    padding:8px 14px;
    border-radius:20px;
    font-size:12px;
}

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    z-index:999;
}

.modal-content{

    background:white;

    border-radius:30px;

    padding:25px;

    box-shadow:
        0 25px 60px rgba(
            0,
            0,
            0,
            0.25
        );
}
@media (max-width:768px){

    .modal-content{
        width:100%;
        height:100%;
        margin:0;
        border-radius:0;
    }

    #cctv-frame{
        height:80vh;
    }

}
.close{
    float:right;
    font-size:30px;
    cursor:pointer;
}

#cctv-frame{
    width:100%;
    height:75vh;
    border:none;
}

.status{
    margin-top:15px;
    display:inline-block;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.online{
    background:#dcfce7;
    color:#15803d;
}

@media (max-width: 768px){

    body{
        padding:10px;
    }

    header h1{
        font-size:28px;
    }

    header p{
        font-size:14px;
    }

    #search{
        font-size:14px;
        padding:12px;
    }

    #cctv-container{
        grid-template-columns:1fr;
    }

    .card{
        padding:18px;
    }

    .filter-container{
        justify-content:center;
    }

    .filter-btn{
        font-size:12px;
        padding:10px 15px;
    }

    .modal-content{
        width:95%;
        padding:10px;
    }

    #cctv-frame{
        height:60vh;
    }

}

@media (max-width:768px){

    header{
        flex-direction:column;
        text-align:center;
        gap:15px;
    }

    .header-left{
        flex-direction:column;
    }

    .logo{
        width:60px;
        height:60px;
    }

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

.footer{
    margin-top:40px;
    padding:20px;
    text-align:center;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    color:#64748b;
    font-size:8px;
}

.footer p{
    margin:5px 0;
}
.footer a{
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
}

.footer a:hover{
    text-decoration:underline;
}