/* ==========================================================
   CURL AI MONITORING PLATFORM
   APP.CSS
   PART 1
   ========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Segoe UI",Arial,sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{

    background:#0f172a;

    color:#f8fafc;

    display:flex;

    min-height:100vh;

    overflow-x:hidden;

}

a{

    color:inherit;

    text-decoration:none;

}

ul{

    list-style:none;

}

img{

    max-width:100%;

}

/* ===========================
SIDEBAR
=========================== */

.sidebar{

    width:260px;

    position:fixed;

    left:0;

    top:0;

    bottom:0;

    background:#111827;

    border-right:1px solid #1f2937;

    overflow:auto;

    z-index:999;

}

.logo{

    padding:35px 25px;

    border-bottom:1px solid #1f2937;

}

.logo h1{

    color:#38bdf8;

    font-size:30px;

    font-weight:700;

}

.logo p{

    color:#94a3b8;

    margin-top:8px;

    font-size:14px;

}

.sidebar ul{

    padding:20px 15px;

}

.sidebar li{

    margin-bottom:10px;

}

.sidebar a{

    display:flex;

    align-items:center;

    gap:14px;

    padding:14px 18px;

    border-radius:12px;

    transition:.25s;

    color:#cbd5e1;

    font-size:15px;

}

.sidebar a:hover{

    background:#1e293b;

    color:#38bdf8;

}

.sidebar a.active{

    background:#2563eb;

    color:white;

    font-weight:600;

    box-shadow:0 10px 25px rgba(37,99,235,.30);

}

.sidebar a i{

    width:24px;

    text-align:center;

}

/* ===========================
MAIN
=========================== */

.main{

    margin-left:260px;

    width:calc(100% - 260px);

    min-height:100vh;

    background:#0f172a;

}

/* ===========================
NAVBAR
=========================== */

.navbar{

    height:72px;

    background:#111827;

    border-bottom:1px solid #1f2937;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 35px;

    position:sticky;

    top:0;

    z-index:100;

}

.navbar h2{

    font-size:28px;

    margin-bottom:5px;

}

.navbar small{

    color:#94a3b8;

}

.navbar-right{

    display:flex;

    align-items:center;

    gap:22px;

}

.nav-icon{

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

.nav-icon:hover{

    color:#38bdf8;

}

.status-online{

    background:#14532d;

    color:#22c55e;

    padding:8px 15px;

    border-radius:25px;

    font-size:13px;

    font-weight:600;

}

.status-online i{

    font-size:10px;

    margin-right:8px;

}

#refreshTime{

    color:#94a3b8;

    font-size:14px;

}

/* ===========================
PAGE
=========================== */

.page-content{

    padding:35px;

}

.page-title{

    font-size:34px;

    font-weight:700;

    margin-bottom:30px;

}

.section-title{

    font-size:24px;

    margin-bottom:20px;

    color:#38bdf8;

}

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

.grid{

    display:grid;

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

    gap:22px;

    margin-bottom:30px;

}

.metric{

    background:#1e293b;

    border-radius:18px;

    padding:28px;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

    transition:.25s;

}

.metric:hover{

    transform:translateY(-6px);

}

.metric h4{

    color:#94a3b8;

    margin-bottom:15px;

    font-size:16px;

}

.metric h2{

    color:#38bdf8;

    font-size:42px;

}

/* ===========================
CHARTS
=========================== */

.chart-row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:22px;

    margin-bottom:30px;

}

.chart-card{

    background:#1e293b;

    border-radius:18px;

    padding:22px;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.chart-card h3{

    margin-bottom:20px;

    color:#f8fafc;

    font-size:18px;

}

canvas{

    width:100%!important;

    height:320px!important;

}

/* ===========================
SUMMARY CARDS
=========================== */

.summary-grid{

    display:grid;

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

    gap:22px;

    margin-bottom:30px;

}

.summary-card{

    background:#1e293b;

    border-radius:18px;

    padding:24px;

    transition:.25s;

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

}

.summary-card:hover{

    transform:translateY(-5px);

}

.summary-card h4{

    color:#94a3b8;

    margin-bottom:15px;

}

.summary-card h2{

    font-size:36px;

    color:#38bdf8;

}

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

.table-card{

    background:#1e293b;

    border-radius:18px;

    padding:22px;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.table-card h3{

    margin-bottom:20px;

}

table{

    width:100%;

    border-collapse:collapse;

}

thead{

    background:#111827;

}

th{

    padding:15px;

    text-align:left;

    color:#cbd5e1;

    font-size:14px;

}

td{

    padding:14px;

    border-bottom:1px solid #334155;

    color:#e2e8f0;

    font-size:14px;

}

tr:hover{

    background:#263445;

}

/* ===========================
SEARCH
=========================== */

.search-box{

    margin-bottom:25px;

}

.search-box input{

    width:100%;

    padding:15px;

    border:none;

    outline:none;

    border-radius:12px;

    background:#111827;

    color:white;

    font-size:15px;

}

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

.badge{

    display:inline-block;

    padding:6px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}

.online{

    color:#22c55e;

}

.offline{

    color:#ef4444;

}

.running{

    background:#14532d;

    color:#22c55e;

}

.stopped{

    background:#450a0a;

    color:#ef4444;

}

.healthy{

    background:#164e63;

    color:#38bdf8;

}

.unhealthy{

    background:#450a0a;

    color:#ef4444;

}

.warning{

    color:#f59e0b;

}

/* ===========================
DOCKER CARD
=========================== */

.docker-grid{

    display:grid;

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

    gap:22px;

}

.container-card{

    background:#1e293b;

    border-radius:18px;

    padding:22px;

    transition:.25s;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.container-card:hover{

    transform:translateY(-5px);

}

.container-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.metric{

    margin-top:14px;

    line-height:1.8;

}

/* ===========================
HEADSCALE
=========================== */

.device-grid{

    display:grid;

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

    gap:22px;

}

.device-card{

    background:#1e293b;

    padding:22px;

    border-radius:18px;

    transition:.25s;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.device-card:hover{

    transform:translateY(-5px);

}

.device-card h2{

    margin-bottom:10px;

}

.device-card .metric{

    margin-top:12px;

    line-height:1.7;

}
/* ==========================================================
   FOOTER
========================================================== */

footer{

    margin-top:60px;

    padding:30px;

    text-align:center;

    color:#94a3b8;

    font-size:14px;

}

footer hr{

    border:none;

    border-top:1px solid #334155;

    margin-bottom:20px;

}

/* ==========================================================
   BUTTONS
========================================================== */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:12px 22px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

    font-size:15px;

    font-weight:600;

}

.btn-primary{

    background:#2563eb;

    color:white;

}

.btn-primary:hover{

    background:#1d4ed8;

}

.btn-success{

    background:#16a34a;

    color:white;

}

.btn-danger{

    background:#dc2626;

    color:white;

}

/* ==========================================================
   INPUTS
========================================================== */

input,
select,
textarea{

    width:100%;

    background:#111827;

    color:white;

    border:1px solid #334155;

    border-radius:10px;

    padding:12px;

    outline:none;

}

input:focus,
textarea:focus,
select:focus{

    border-color:#38bdf8;

}

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

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-track{

    background:#0f172a;

}

::-webkit-scrollbar-thumb{

    background:#475569;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#64748b;

}

/* ==========================================================
   ANIMATION
========================================================== */

.fade-in{

    animation:fade .5s ease;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ==========================================================
   LOADER
========================================================== */

.loader{

    width:45px;

    height:45px;

    border:5px solid #1e293b;

    border-top:5px solid #38bdf8;

    border-radius:50%;

    animation:spin 1s linear infinite;

    margin:auto;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================================
   ALERTS
========================================================== */

.alert{

    padding:15px 18px;

    border-radius:12px;

    margin-bottom:20px;

}

.alert-success{

    background:#14532d;

    color:#bbf7d0;

}

.alert-danger{

    background:#450a0a;

    color:#fecaca;

}

.alert-warning{

    background:#78350f;

    color:#fde68a;

}

.alert-info{

    background:#0c4a6e;

    color:#bae6fd;

}

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

@media(max-width:1400px){

.grid{

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

}

.summary-grid{

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

}

.chart-row{

grid-template-columns:1fr;

}

.docker-grid{

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

}

.device-grid{

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

}

}

@media(max-width:900px){

.sidebar{

left:-260px;

transition:.4s;

}

.sidebar.show{

left:0;

}

.main{

margin-left:0;

width:100%;

}

.grid{

grid-template-columns:1fr;

}

.summary-grid{

grid-template-columns:1fr;

}

.chart-row{

grid-template-columns:1fr;

}

.docker-grid{

grid-template-columns:1fr;

}

.device-grid{

grid-template-columns:1fr;

}

.navbar{

padding:0 20px;

}

.page-content{

padding:20px;

}

}

/* ==========================================================
   CARD HOVER
========================================================== */

.metric,
.summary-card,
.chart-card,
.container-card,
.device-card,
.table-card{

transition:.25s;

}

.metric:hover,
.summary-card:hover,
.chart-card:hover,
.container-card:hover,
.device-card:hover,
.table-card:hover{

transform:translateY(-4px);

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

}

/* ==========================================================
   UTILITIES
========================================================== */

.text-center{

text-align:center;

}

.text-right{

text-align:right;

}

.mt-10{

margin-top:10px;

}

.mt-20{

margin-top:20px;

}

.mt-30{

margin-top:30px;

}

.mb-20{

margin-bottom:20px;

}

.hidden{

display:none;

}

.w-100{

width:100%;

}
