/* =====================================================
   CURL Enterprise Alerts Dashboard
   alerts.css
===================================================== */

.alerts-page{

    width:100%;

    padding:30px;

}

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

.page-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.page-title{

    color:#fff;

    font-size:34px;

    font-weight:700;

}

.page-subtitle{

    color:#94a3b8;

    margin-top:6px;

    font-size:15px;

}

.live-status{

    display:flex;

    align-items:center;

    gap:10px;

    background:#0f172a;

    color:#22c55e;

    padding:12px 22px;

    border-radius:30px;

    font-weight:600;

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

}

.live-dot{

    width:12px;

    height:12px;

    background:#22c55e;

    border-radius:50%;

    animation:pulse 1.5s infinite;

}

@keyframes pulse{

    0%{

        transform:scale(1);

        opacity:1;

    }

    50%{

        transform:scale(1.5);

        opacity:.3;

    }

    100%{

        transform:scale(1);

        opacity:1;

    }

}

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

.grid{

    display:grid;

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

    gap:25px;

    margin-bottom:30px;

}

.metric{

    position:relative;

    background:#1e293b;

    border-radius:18px;

    padding:28px;

    overflow:hidden;

    transition:.3s;

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

}

.metric:hover{

    transform:translateY(-6px);

}

.metric .icon{

    font-size:32px;

    margin-bottom:15px;

}

.metric h4{

    color:#94a3b8;

    margin-bottom:10px;

    font-size:15px;

}

.metric h2{

    color:white;

    font-size:38px;

    font-weight:700;

}

/* =====================================================
   COLORS
===================================================== */

.critical{

    border-top:5px solid #ef4444;

}

.warning{

    border-top:5px solid #f59e0b;

}

.info{

    border-top:5px solid #3b82f6;

}

.total{

    border-top:5px solid #22c55e;

}

/* =====================================================
   CHART ROW
===================================================== */

.chart-row{

    display:grid;

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

    gap:25px;

    margin-bottom:30px;

}

.chart-card{

    background:#1e293b;

    border-radius:18px;

    padding:25px;

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

    transition:.3s;

}

.chart-card:hover{

    transform:translateY(-5px);

}

.chart-card h3{

    color:#fff;

    margin-bottom:20px;

    font-size:20px;

}

.chart-container{

    position:relative;

    width:100%;

    height:330px;

}

canvas{

    width:100%!important;

    height:100%!important;

}

/* =====================================================
   HEALTH
===================================================== */

.health-list{

    display:flex;

    flex-direction:column;

    gap:25px;

}

.health-item{

    display:grid;

    grid-template-columns:130px 1fr 60px;

    align-items:center;

    gap:15px;

}

.health-item label{

    color:#fff;

}

.progress{

    width:100%;

    height:12px;

    background:#334155;

    border-radius:20px;

    overflow:hidden;

}

.progress-fill{

    height:100%;

    width:0%;

    transition:1s;

    border-radius:20px;

}

.cpu{

    background:#ef4444;

}

.ram{

    background:#3b82f6;

}

.disk{

    background:#22c55e;

}

/* =====================================================
   TABLE
===================================================== */

.table-card{

    background:#1e293b;

    border-radius:18px;

    padding:25px;

    margin-bottom:30px;

}

.table-card h3{

    color:white;

    margin-bottom:20px;

}

table{

    width:100%;

    border-collapse:collapse;

}

thead{

    background:#0f172a;

}

th{

    padding:15px;

    color:#38bdf8;

    text-align:left;

}

td{

    padding:15px;

    color:#e2e8f0;

    border-bottom:1px solid rgba(255,255,255,.08);

}

tbody tr:hover{

    background:#273449;

}

/* =====================================================
   STATUS
===================================================== */

.status-ok{

    color:#22c55e;

    font-weight:600;

}

.status-warning{

    color:#f59e0b;

    font-weight:600;

}

.status-critical{

    color:#ef4444;

    font-weight:700;

    animation:blink 1s infinite;

}

@keyframes blink{

    50%{

        opacity:.4;

    }

}

/* =====================================================
   SERVICE TABLE
===================================================== */

.service-table{

    width:100%;

}

.service-table td{

    padding:16px;

    color:white;

}

/* =====================================================
   TIMELINE
===================================================== */

.timeline{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.timeline-item{

    display:flex;

    gap:15px;

    align-items:flex-start;

    padding:14px;

    border-left:4px solid #3b82f6;

    background:#273449;

    border-radius:8px;

}

.timeline-time{

    color:#94a3b8;

    font-size:13px;

    min-width:70px;

}

.timeline-content{

    color:white;

    flex:1;

}

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

@media(max-width:1200px){

    .grid{

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

    }

    .chart-row{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .grid{

        grid-template-columns:1fr;

    }

    .page-header{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .health-item{

        grid-template-columns:1fr;

    }

}

/* =====================================================
   SCROLLBAR
===================================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#0f172a;

}

::-webkit-scrollbar-thumb{

    background:#475569;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#64748b;

}
