/* ===========================
   NIKKI AI Dashboard
   Dashboard.css
=========================== */

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

body{
    background:#0b1020;
    color:#fff;
    display:flex;
    min-height:100vh;
    overflow:hidden;
}

/* ===========================
   Sidebar
=========================== */

.sidebar{
    width:270px;
    height:100vh;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(20px);
    border-right:1px solid rgba(255,255,255,.1);
    padding:25px;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:35px;
}

.logo img{
    width:55px;
}

.logo h2{
    font-size:24px;
    font-weight:700;
}

/* Navigation */

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    padding:14px 16px;
    border-radius:12px;
    cursor:pointer;
    margin-bottom:8px;
    transition:.3s;
}

.sidebar ul li:hover{
    background:#3b82f6;
    transform:translateX(8px);
}

.sidebar ul li i{
    width:28px;
}

.sidebar hr{
    border:none;
    border-top:1px solid rgba(255,255,255,.1);
    margin:20px 0;
}

/* ===========================
   Main Content
=========================== */

.main{
    flex:1;
    padding:35px;
    overflow-y:auto;
}

/* ===========================
   Header
=========================== */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:35px;
}

header h1{
    font-size:34px;
    font-weight:700;
    color:#ffffff;
}

header span{
    color:#4da3ff;
}

/* ===========================
   Welcome Banner
=========================== */

.welcome-box{
    width:100%;
    padding:30px;
    border-radius:22px;

    background:rgba(255,255,255,.06);

    backdrop-filter:blur(20px);

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

    margin-bottom:30px;
}

.welcome-box h2{
    font-size:28px;
    margin-bottom:10px;
}

.welcome-box p{
    color:#b8c2d8;
    line-height:1.8;
}

/* ===========================
   Status Row
=========================== */

.status-row{

    display:flex;

    gap:20px;

    margin-top:25px;

    flex-wrap:wrap;

}

.status{

    background:#10182f;

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

    border-radius:15px;

    padding:15px 20px;

    min-width:180px;

}

.status h3{

    font-size:15px;

    color:#a5b2d0;

    margin-bottom:8px;

}

.status p{

    font-size:20px;

    font-weight:600;

}

.online{

    color:#00ff88;

}

.warning{

    color:#ffc107;

}

.offline{

    color:#ff4d6d;

}

/* ===========================
   Dashboard Cards
=========================== */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:25px;

    margin-top:35px;

}

.card{

    background:rgba(255,255,255,.06);

    backdrop-filter:blur(20px);

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

    border-radius:20px;

    padding:25px;

    transition:.35s;

    cursor:pointer;

    position:relative;

    overflow:hidden;

}

.card::before{

    content:"";

    position:absolute;

    top:0;

    left:-100%;

    width:100%;

    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.15),
        transparent
    );

    transition:.6s;

}

.card:hover::before{

    left:100%;

}

.card:hover{

    transform:translateY(-8px);

    border-color:#3b82f6;

    box-shadow:0 15px 40px rgba(59,130,246,.25);

}

.card h2{

    font-size:22px;

    margin-bottom:15px;

}

.card p{

    color:#c8d2e4;

    line-height:1.7;

}

/* ===========================
   Quick Actions
=========================== */

.action-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    margin-top:20px;

    padding:12px 22px;

    border:none;

    border-radius:12px;

    background:#3b82f6;

    color:#fff;

    cursor:pointer;

    transition:.3s;

    font-size:15px;

    font-weight:600;

}

.action-btn:hover{

    background:#2563eb;

    transform:scale(1.05);

}

/* ===========================
   Card Icons
=========================== */

.card i{

    font-size:42px;

    margin-bottom:18px;

    color:#4da3ff;

}

/* ===========================
   Section Title
=========================== */

.section-title{

    margin-top:45px;

    margin-bottom:20px;

    font-size:28px;

    font-weight:700;

}

/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#0b1020;

}

::-webkit-scrollbar-thumb{

    background:#3b82f6;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#2563eb;

}

/* ===========================
   Online Status Animation
=========================== */

.online{

    animation:pulse 2s infinite;

}

@keyframes pulse{

    0%{

        opacity:1;

    }

    50%{

        opacity:.45;

    }

    100%{

        opacity:1;

    }

}

/* ===========================
   Fade Animation
=========================== */

.card,
.welcome-box,
.sidebar{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ===========================
   Logo Animation
=========================== */

.logo img{

    animation:float 3s ease-in-out infinite;

}

@keyframes float{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0px);

    }

}

/* ===========================
   Responsive Design
=========================== */

@media(max-width:992px){

    .sidebar{

        width:85px;

        padding:18px;

    }

    .logo h2{

        display:none;

    }

    .sidebar ul li{

        font-size:0;

        text-align:center;

    }

    .sidebar ul li i{

        font-size:20px;

        width:auto;

    }

}

@media(max-width:768px){

    body{

        flex-direction:column;

    }

    .sidebar{

        width:100%;

        height:auto;

        border-right:none;

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

    }

    .main{

        padding:20px;

    }

    header{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

    header h1{

        font-size:28px;

    }

    .cards{

        grid-template-columns:1fr;

    }

}

@media(max-width:480px){

    .welcome-box{

        padding:20px;

    }

    .welcome-box h2{

        font-size:22px;

    }

    .status{

        width:100%;

    }

}

.copyright{
    width:;
    text-align:center;
    padding:20px;
    color:#bdbdbd;
    font-size:14px;
    border-top:1px solid rgba(255,255,255,0.1);
    margin-top:50px;
}