/* =========================================
   STAPS CONNECT DASHBOARD CSS
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Poppins', sans-serif;
    background:#f4f7fb;
    overflow-x:hidden;
    color:#111827;

}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#f1f1f1;

}

::-webkit-scrollbar-thumb{

    background:#0ea5e9;
    border-radius:10px;

}

/* =========================================
   SIDEBAR
========================================= */

.sidebar{

    width:270px;
    height:100vh;

    background:#071a3a;

    position:fixed;
    left:0;
    top:0;

    overflow-y:auto;

    transition:0.3s ease;
    z-index:999;
    max-width:86vw;

}

.sidebar-header{

    padding:20px;
    display:grid;
    gap:10px;

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

}

.sidebar-logo{
    width:92px;
    max-height:58px;
    object-fit:contain;
    border-radius:8px;
    background:#ffffff;
    padding:4px;
}

.sidebar-header h3{

    color:white;
    font-weight:700;
    margin:0;
    font-size:24px;

}

.sidebar-menu{

    padding:20px 0;

}

.sidebar-menu a{

    display:flex;
    align-items:center;

    gap:15px;

    padding:14px 25px;

    color:#d1d5db;

    text-decoration:none;

    transition:0.3s;

    font-size:15px;
    font-weight:500;
    min-height:44px;
    overflow-wrap:anywhere;

}

.sidebar-menu a:hover{

    background:#102a54;
    border-left:4px solid #f6b343;
    color:white;

}

.sidebar-menu a.active{

    background:#102a54;
    border-left:4px solid #f6b343;
    color:white;

}

.sidebar-menu i{

    width:20px;
    text-align:center;
    font-size:17px;

}

/* =========================================
   SIDEBAR OVERLAY
========================================= */

.sidebar-overlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.5);

    z-index:998;

    display:none;

}

.sidebar-overlay.active{

    display:block;

}

/* =========================================
   MAIN CONTENT
========================================= */

.main-content{

    margin-left:270px;
    min-height:100vh;

    transition:0.3s;
    min-width:0;

}

/* =========================================
   TOPBAR
========================================= */

.topbar{

    background:white;

    padding:18px 30px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:
    0 2px 15px rgba(0,0,0,0.05);

    position:sticky;
    top:0;

    z-index:500;
    gap:16px;

}

.menu-toggle{

    display:none;

    border:none;
    background:none;

    font-size:24px;
    color:#111827;

}

.topbar-right{

    display:flex;
    align-items:center;
    gap:20px;
    min-width:0;

}

.search-box input{

    border:none;

    background:#f4f7fb;

    padding:11px 15px;

    border-radius:12px;

    width:280px;

    outline:none;

    font-size:14px;
    max-width:100%;

}

.search-box input:focus{

    border:1px solid #198754;

}

.user-avatar{

    width:45px;
    height:45px;

    border-radius:50%;
    object-fit:cover;

    border:2px solid #198754;

}

/* =========================================
   HERO CARD
========================================= */

.hero-card{

    background:
    linear-gradient(
        135deg,
        #198754,
        #14532d
    );

    border-radius:28px;

    padding:45px;

    color:white;

    position:relative;

    overflow:hidden;

}

.hero-card::before{

    content:'';

    position:absolute;

    width:220px;
    height:220px;

    background:
    rgba(255,255,255,0.08);

    border-radius:50%;

    top:-80px;
    right:-60px;

}

.hero-card h2{

    font-weight:700;
    font-size:34px;
    margin-bottom:15px;

}

.hero-card p{

    color:#f1f1f1;
    max-width:650px;
    line-height:1.8;

}

/* =========================================
   STATISTICS CARD
========================================= */

.stats-card{

    background:white;

    border-radius:22px;

    padding:25px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:
    0 5px 15px rgba(0,0,0,0.05);

    transition:0.3s;

    height:100%;

}

.stats-card:hover{

    transform:translateY(-5px);

}

.stats-card h6{

    color:#6b7280;
    margin-bottom:10px;

}

.stats-card h3{

    font-weight:700;
    margin:0;

}

.stats-icon{

    width:65px;
    height:65px;

    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    font-size:24px;

}

/* COLORS */

.green{

    background:#198754;

}

.blue{

    background:#0d6efd;

}

.red{

    background:#dc3545;

}

.orange{

    background:#f59e0b;

}

.purple{

    background:#7c3aed;

}

/* =========================================
   MODULE CARDS
========================================= */

.module-card{

    background:white;

    border-radius:24px;

    padding:30px 20px;

    text-align:center;

    transition:0.3s;

    box-shadow:
    0 5px 15px rgba(0,0,0,0.05);

    height:100%;

    border:none;

}

.module-card:hover{

    transform:translateY(-8px);

    box-shadow:
    0 15px 25px rgba(0,0,0,0.08);

}

.module-icon{

    width:90px;
    height:90px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:auto;
    margin-bottom:20px;

    color:white;
    font-size:35px;

}

.module-card h5{

    font-weight:600;
    margin-bottom:10px;

}

.module-card p{

    color:#6b7280;
    font-size:14px;
    line-height:1.7;

}

.module-link{

    text-decoration:none;
    color:inherit;

}

/* =========================================
   TABLES
========================================= */

.table{

    border-radius:18px;
    overflow:hidden;

}

.table thead{

    background:#f9fafb;

}

.table th{

    font-weight:600;
    color:#374151;
    border:none;

}

.table td{

    vertical-align:middle;
    border-color:#f3f4f6;

}

/* =========================================
   DASHBOARD CARDS
========================================= */

.dashboard-card{

    background:white;

    border-radius:22px;

    padding:25px;

    box-shadow:
    0 5px 20px rgba(0,0,0,0.05);

}

/* =========================================
   BUTTONS
========================================= */

.btn{

    border-radius:12px;
    font-weight:500;

}

.btn-success{

    background:#198754;
    border:none;

}

.btn-success:hover{

    background:#157347;

}

/* =========================================
   FORMS
========================================= */

.form-control,
.form-select{

    border-radius:12px;
    padding:12px 15px;

    border:1px solid #d1d5db;

    box-shadow:none;

}

.form-control:focus,
.form-select:focus{

    border-color:#198754;

    box-shadow:
    0 0 0 0.2rem
    rgba(25,135,84,0.15);

}

/* =========================================
   BADGES
========================================= */

.badge{

    padding:8px 12px;
    border-radius:10px;

}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:992px){

    .sidebar{

        left:-86vw;

    }

    .sidebar.active{

        left:0;

    }

    .main-content{

        margin-left:0;

    }

    .menu-toggle{

        display:block;

    }

}

@media(max-width:768px){

    .topbar{

        padding:15px;
        align-items:flex-start;
        gap:12px;

    }

    .hero-card{

        padding:30px;

    }

    .hero-card h2{

        font-size:28px;

    }

    .stats-card{

        padding:20px;

    }

    .module-card{

        padding:25px 15px;

    }

    .search-box{

        display:none;

    }

    .topbar-right{

        gap:12px;
        flex-wrap:wrap;
        justify-content:flex-end;

    }

    .table-responsive,
    .staps-table-wrap{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .table{
        min-width:720px;
    }

}

@media(max-width:576px){

    .hero-card{

        padding:25px;

    }

    .hero-card h2{

        font-size:24px;

    }

    .stats-card{

        flex-direction:column;
        text-align:center;
        gap:15px;

    }

    .topbar{

        flex-wrap:wrap;
        gap:10px;
        align-items:flex-start;

    }

    .topbar > .d-flex{
        width:100%;
        min-width:0;
    }

    .topbar h5,
    .topbar small,
    .topbar strong{
        overflow-wrap:anywhere;
    }

    .topbar-right{
        width:100%;
        justify-content:space-between;
    }

    .user-avatar{
        width:38px;
        height:38px;
    }

}

.hero-card.compact{
    padding:34px;
}

.section-heading p{
    line-height:1.6;
}

.feature-card{
    padding:26px;
}

.feature-icon{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#dcfce7;
    color:#166534;
    font-size:24px;
    margin-bottom:18px;
}

.feature-card h5{
    font-weight:700;
}

.feature-card p{
    color:#6b7280;
    margin-bottom:0;
    line-height:1.7;
}

.action-strip{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.max-form{
    max-width:860px;
}
