/* ===================================================
   Atlas Dashboard Components
=================================================== */

/* ========= Cards ========= */

.card{

    background:var(--card-bg);

    border:1px solid var(--border);

    border-radius:22px;

    padding:24px;

    box-shadow:var(--shadow-sm);

    transition:.25s;

}

.card:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow-md);

}

/* ========= Statistics Card ========= */

.stat-card{

    position:relative;

    overflow:hidden;

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:150px;

}

.stat-info h4{

    font-size:15px;

    color:var(--text-light);

    margin-bottom:10px;

}

.stat-info h2{

    font-size:34px;

    font-weight:700;

}

.stat-icon{

    width:70px;

    height:70px;

    border-radius:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(15,118,110,.12);

    color:var(--primary);

}

.stat-icon svg{

    width:32px;

    height:32px;

}

/* ========= Grid ========= */

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:24px;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:24px;

}

.grid-4{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

}

/* ========= Badge ========= */

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:6px 14px;

    border-radius:999px;

    font-size:13px;

    font-weight:600;

}

.badge-success{

    background:rgba(34,197,94,.12);

    color:#16A34A;

}

.badge-warning{

    background:rgba(245,158,11,.12);

    color:#D97706;

}

.badge-danger{

    background:rgba(239,68,68,.12);

    color:#DC2626;

}

.badge-info{

    background:rgba(59,130,246,.12);

    color:#2563EB;

}

/* ========= Table ========= */

.table-card{

    background:var(--card-bg);

    border-radius:22px;

    overflow:hidden;

    border:1px solid var(--border);

    box-shadow:var(--shadow-sm);

}

.table-header{

    padding:22px 24px;

    border-bottom:1px solid var(--border);

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.table-header h3{

    font-size:18px;

}

.table{

    width:100%;

}

.table thead{

    background:var(--surface-hover);

}

.table th{

    padding:18px;

    font-size:14px;

    color:var(--text-light);

    text-align:left;

}

.table td{

    padding:18px;

    border-top:1px solid var(--border);

}

.table tbody tr{

    transition:.25s;

}

.table tbody tr:hover{

    background:var(--surface-hover);

}

/* ========= Avatar ========= */

.avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

}

/* ========= Customer ========= */

.customer{

    display:flex;

    align-items:center;

    gap:12px;

}

.customer h5{

    font-size:15px;

}

.customer span{

    font-size:13px;

    color:var(--text-light);

}

/* ========= Buttons ========= */

.btn{

    height:46px;

    padding:0 22px;

    border-radius:14px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    font-weight:600;

    transition:.25s;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-dark);

}

.btn-outline{

    border:1px solid var(--border);

    background:var(--surface);

}

.btn-outline:hover{

    background:var(--surface-hover);

}

/* ========= Search ========= */

.search{

    position:relative;

}

.search input{

    width:320px;

    height:46px;

    padding:0 18px 0 48px;

    border-radius:14px;

    border:1px solid var(--border);

    background:var(--surface);

}

.search svg{

    position:absolute;

    left:16px;

    top:50%;

    transform:translateY(-50%);

    color:var(--text-light);

}

/* ========= Progress ========= */

.progress{

    width:100%;

    height:8px;

    background:var(--surface-hover);

    border-radius:999px;

    overflow:hidden;

}

.progress span{

    display:block;

    height:100%;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );

}

/* ========= Empty State ========= */

.empty{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    padding:80px 20px;

    text-align:center;

    color:var(--text-light);

}

.empty svg{

    width:80px;

    height:80px;

    margin-bottom:20px;

    color:var(--primary);

}

/* ========= Skeleton ========= */

.skeleton{

    background:linear-gradient(
        90deg,
        #ececec 25%,
        #f7f7f7 50%,
        #ececec 75%
    );

    background-size:400%;

    animation:skeleton 1.2s infinite;

    border-radius:12px;

}

[data-theme="dark"] .skeleton{

    background:linear-gradient(
        90deg,
        #23323e 25%,
        #2d3f4d 50%,
        #23323e 75%
    );

    background-size:400%;

}

@keyframes skeleton{

    0%{

        background-position:100% 0;

    }

    100%{

        background-position:-100% 0;

    }

}

/* ========= Toast ========= */

.toast{

    position:fixed;

    right:25px;

    bottom:25px;

    min-width:320px;

    padding:18px;

    border-radius:16px;

    background:var(--card-bg);

    border:1px solid var(--border);

    box-shadow:var(--shadow-lg);

    z-index:9999;

}

/* ========= Modal ========= */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    pointer-events:none;

    transition:.25s;

}

.modal.active{

    opacity:1;

    pointer-events:auto;

}

.modal-content{

    width:650px;

    max-width:95%;

    background:var(--card-bg);

    border-radius:24px;

    padding:28px;

}
/* Dashboard */

.page-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:30px;

}

.page-header h1{

font-size:34px;

margin-bottom:8px;

}

.page-header p{

color:var(--text-light);

}

#liveClock{

font-size:18px;

font-weight:600;

padding:12px 18px;

background:var(--card-bg);

border:1px solid var(--border);

border-radius:14px;

}

.activity-list{

display:flex;

flex-direction:column;

gap:18px;

margin-top:20px;

}

.activity-list li{

padding:14px;

background:var(--surface);

border-radius:14px;

border:1px solid var(--border);

transition:.25s;

}

.activity-list li:hover{

transform:translateX(6px);

}
/* ===============================
   Quick Actions
================================ */

.quick-actions{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

margin-bottom:30px;

}

.quick-card{

height:120px;

background:var(--card-bg);

border:1px solid var(--border);

border-radius:20px;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

gap:15px;

cursor:pointer;

transition:.25s;

box-shadow:var(--shadow-sm);

}

.quick-card:hover{

transform:translateY(-6px);

box-shadow:var(--shadow-md);

border-color:var(--primary);

}

.quick-card svg{

width:34px;

height:34px;

color:var(--primary);

}

.quick-card span{

font-weight:600;

}
.card-title{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:20px;

}

canvas{

width:100%!important;

height:320px!important;

}
/* =============================
Chat
============================= */

.chat-layout{

display:grid;

grid-template-columns:340px 1fr;

height:720px;

gap:20px;

}

.chat-sidebar{

background:var(--card-bg);

border:1px solid var(--border);

border-radius:22px;

overflow:hidden;

display:flex;

flex-direction:column;

}

.chat-search{

padding:18px;

border-bottom:1px solid var(--border);

}

.chat-search input{

width:100%;

height:46px;

padding:0 15px;

border-radius:14px;

background:var(--surface);

border:1px solid var(--border);

}

.conversation{

padding:18px;

cursor:pointer;

border-bottom:1px solid var(--border);

transition:.2s;

}

.conversation:hover{

background:var(--surface-hover);

}

.conversation.active{

background:rgba(20,184,166,.08);

}

.conversation h4{

font-size:15px;

margin-bottom:6px;

}

.conversation p{

font-size:13px;

color:var(--text-light);

}

.chat-window{

display:flex;

flex-direction:column;

background:var(--card-bg);

border-radius:22px;

border:1px solid var(--border);

overflow:hidden;

}

.chat-header{

padding:20px;

border-bottom:1px solid var(--border);

font-weight:600;

}

.chat-messages{

flex:1;

padding:20px;

overflow:auto;

display:flex;

flex-direction:column;

gap:14px;

background:var(--surface);

}

.message{

max-width:70%;

padding:14px 18px;

border-radius:18px;

}

.message.user{

background:var(--primary);

color:white;

align-self:flex-end;

}

.message.bot{

background:white;

border:1px solid var(--border);

}

[data-theme="dark"] .message.bot{

background:#22313e;

}

.chat-input{

display:flex;

gap:12px;

padding:20px;

border-top:1px solid var(--border);

}

.chat-input input{

flex:1;

height:48px;

padding:0 16px;

border-radius:14px;

background:var(--surface);

border:1px solid var(--border);

}