/* ===================================================
   NOKKHOTROLAB ISP ERP
   Premium Common Style
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root{

    --primary:#00b96b;
    --primary-dark:#00975a;

    --sidebar:#1d2939;
    --sidebar-hover:#2b3b52;

    --bg:#eef3f8;

    --white:#ffffff;

    --text:#222;

    --text2:#666;

    --border:#dde5ec;

    --danger:#e53935;

    --warning:#ff9800;

    --shadow:
    0 8px 20px rgba(0,0,0,.08);

    --radius:14px;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--text);

    overflow:hidden;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#c8d3df;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

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

.sidebar{

    position:fixed;

    top:0;

    left:0;

    width:270px;

    height:100vh;

    background:var(--sidebar);

    overflow:auto;

    z-index:999;

}

.logo{

    height:65px;

    display:flex;

    align-items:center;

    padding-left:24px;

    font-size:24px;

    font-weight:800;

    color:#fff;

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

}

.logo span{

    color:var(--primary);

}

.menu{

    padding:15px;

}

.menu a{

    display:flex;

    align-items:center;

    gap:14px;

    padding:13px 16px;

    border-radius:10px;

    color:#d9e3ee;

    margin-bottom:6px;

    transition:.25s;

    font-size:15px;

}

.menu a i{

    width:22px;

    text-align:center;

}

.menu a:hover{

    background:var(--sidebar-hover);

    color:#fff;

}



/* Administrator */

.adminMenu{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:13px 16px;

    color:#d9e3ee;

    cursor:pointer;

    border-radius:10px;

    transition:.25s;

}

.adminMenu:hover{

    background:var(--sidebar-hover);

}

.subMenu{

    display:none;

    margin-left:18px;

    margin-top:8px;

}

.subMenu a{

    font-size:14px;

    padding:11px 14px;

}

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

.main{

    margin-left:270px;

    height:100vh;

    display:flex;

    flex-direction:column;

}

/* =======================================
TOPBAR
======================================= */

.topbar{

    height:58px;

    background:#fff;

    border-bottom:1px solid var(--border);

    display:flex;

    justify-content:flex-end;

    align-items:center;

    padding:0 22px;

    gap:20px;

    box-shadow:0 2px 10px rgba(0,0,0,.04);

    z-index:100;

}

/* Notification */

.notification{

    position:relative;

    font-size:19px;

    color:#555;

    cursor:pointer;

}

.notification span{

    position:absolute;

    top:-6px;

    right:-8px;

    width:18px;

    height:18px;

    background:#ff3b30;

    color:#fff;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:10px;

}

/* Profile */

.profile{

    display:flex;

    align-items:center;

    gap:10px;

}

.avatar{

    width:36px;

    height:36px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-weight:700;

    font-size:15px;

}

.profileName{

    font-size:14px;

    font-weight:700;

}

/* =======================================
CONTENT
======================================= */

.content{

    flex:1;

    overflow:auto;

    padding:22px;

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

.page{

    display:none;

}

.page.active{

    display:block;

}

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

.pageTitle{

    font-size:28px;

    font-weight:700;

    color:#1d2939;

    margin-bottom:22px;

}

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

.card{

    background:#fff;

    border-radius:14px;

    padding:22px;

    margin-bottom:22px;

    box-shadow:var(--shadow);

    border:1px solid #edf1f6;

}

.card h2{

    font-size:24px;

    font-weight:700;

    margin-bottom:20px;

    color:#1d2939;

}

.card h3{

    font-size:18px;

    margin-bottom:15px;

    color:#333;

}

.card p{

    color:#666;

    line-height:26px;

}

/* =======================================
   DASHBOARD CARDS
======================================= */

.dashboardCards{

    display:grid;

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

    gap:20px;

    margin-bottom:25px;

}

.statCard{

    background:#fff;

    border-radius:14px;

    padding:22px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:var(--shadow);

    transition:.25s;

}

.statCard:hover{

    transform:translateY(-4px);

}

.statLeft h4{

    font-size:14px;

    color:#777;

    margin-bottom:8px;

}

.statLeft h2{

    font-size:30px;

    color:#222;

}

.statIcon{

    width:58px;

    height:58px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    color:#fff;

}

.bgGreen{

    background:#00b96b;

}

.bgBlue{

    background:#2196f3;

}

.bgOrange{

    background:#ff9800;

}

.bgRed{

    background:#e53935;

}

/* =======================================
   FORM
======================================= */

.form-group{

    margin-bottom:18px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

}

.form-group input,

.form-group select,

.form-group textarea{

    width:100%;

    padding:12px 14px;

    border:1px solid var(--border);

    border-radius:10px;

    outline:none;

    font-size:14px;

    transition:.25s;

    background:#fff;

}

.form-group textarea{

    resize:vertical;

    min-height:160px;

}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(0,185,107,.15);

}

/* =======================================
   PERMISSION
======================================= */

.permission{

    display:grid;

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

    gap:14px;

    margin:22px 0;

}

.permission label{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:14px;

    cursor:pointer;

}

.permission input{

    width:18px;

    height:18px;

}

/* =======================================
   BUTTON
======================================= */

.btn{

    border:none;

    outline:none;

    padding:12px 24px;

    border-radius:10px;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.25s;

}

.btn:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}

.btnEdit{

    background:#2196f3;

}

.btnDelete{

    background:#e53935;

}

.btnWarning{

    background:#ff9800;

}

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

.tableWrapper{

    overflow:auto;

    border-radius:12px;

}

table{

    width:100%;

    border-collapse:collapse;

    background:#fff;

}

table thead{

    background:#f5f8fc;

}

table th{

    padding:15px;

    text-align:left;

    font-size:14px;

    font-weight:700;

    color:#333;

}

table td{

    padding:14px;

    border-bottom:1px solid #edf1f6;

    font-size:14px;

}

table tbody tr{

    transition:.2s;

}

table tbody tr:hover{

    background:#f8fcfb;

}

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

.statusActive{

    color:#00b96b;

    font-weight:700;

}

.statusInactive{

    color:#e53935;

    font-weight:700;

}
/* ===========================================
   DASHBOARD GRID
=========================================== */

.dashboard-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:22px;

    margin-bottom:22px;

}

.graphCard,
.noticeCard,
.activityCard,
.systemCard{

    background:#fff;

    border-radius:14px;

    padding:22px;

    box-shadow:var(--shadow);

    border:1px solid #edf2f7;

}

.graphCard h3,
.noticeCard h3,
.activityCard h3,
.systemCard h3{

    font-size:20px;

    margin-bottom:20px;

    color:#1d2939;

}

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

.searchBox{

    position:relative;

    margin-bottom:20px;

}

.searchBox input{

    width:100%;

    padding:13px 45px 13px 15px;

    border:1px solid var(--border);

    border-radius:10px;

    outline:none;

    font-size:14px;

    transition:.25s;

}

.searchBox input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(0,185,107,.15);

}

.searchBox i{

    position:absolute;

    right:16px;

    top:50%;

    transform:translateY(-50%);

    color:#777;

}

/* ===========================================
   NOTIFICATION
=========================================== */

.noticeItem{

    border:1px solid #e8eef5;

    border-radius:10px;

    padding:16px;

    margin-bottom:14px;

    transition:.25s;

}

.noticeItem:hover{

    border-color:var(--primary);

    transform:translateY(-2px);

}

.noticeItem h4{

    color:#1d2939;

    margin-bottom:8px;

}

.noticeItem p{

    color:#666;

    line-height:24px;

    margin-bottom:10px;

}

.noticeDate{

    font-size:12px;

    color:#888;

}

/* ===========================================
   ACTIVITY
=========================================== */

.activityList{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.activityItem{

    display:flex;

    align-items:center;

    gap:15px;

    padding:14px;

    border-radius:10px;

    background:#f8fafc;

}

.activityIcon{

    width:42px;

    height:42px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:16px;

}

.activityText h4{

    font-size:15px;

    margin-bottom:4px;

}

.activityText p{

    font-size:13px;

    color:#777;

}

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

.systemStatus{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.statusBox{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 16px;

    background:#f8fafc;

    border-radius:10px;

}

.statusOnline{

    color:#00b96b;

    font-weight:700;

}

.statusOffline{

    color:#e53935;

    font-weight:700;

}

/* ===========================================
   ACCESS DENIED
=========================================== */

.accessDenied{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    height:65vh;

    text-align:center;

}

.accessDenied i{

    font-size:70px;

    color:#ff3b30;

    margin-bottom:20px;

}

.accessDenied h1{

    font-size:34px;

    margin-bottom:12px;

    color:#1d2939;

}

.accessDenied p{

    color:#666;

    line-height:28px;

    font-size:15px;

}

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

.footer{

    margin-top:25px;

    text-align:center;

    padding:18px;

    color:#666;

    font-size:14px;

    border-top:1px solid #e5e7eb;

}

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

.card,
.statCard,
.graphCard,
.noticeCard,
.activityCard,
.systemCard{

    animation:fadeUp .35s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* ===========================================
   RESPONSIVE DESIGN
=========================================== */

@media (max-width:1200px){

.dashboardCards{

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

}

.dashboard-grid{

grid-template-columns:1fr;

}

.permission{

grid-template-columns:1fr;

}

}

@media (max-width:991px){

.sidebar{

width:75px;

}

.logo{

justify-content:center;

padding:0;

font-size:18px;

}

.logo span{

display:none;

}

.menu a{

justify-content:center;

padding:14px;

}

.menu a span{

display:none;

}

.menu a i{

margin:0;

font-size:18px;

width:auto;

}

.adminMenu{

justify-content:center;

}

.adminMenu span{

display:none;

}

#adminArrow{

display:none;

}

.subMenu{

display:none !important;

}

.main{

margin-left:75px;

}

.topbar{

padding:0 15px;

}

.profileName{

display:none;

}

}

@media (max-width:768px){

body{

overflow:auto;

}

.main{

margin-left:0;

}

.sidebar{

position:fixed;

left:-270px;

transition:.35s;

width:270px;

}

.sidebar.active{

left:0;

}

.topbar{

height:55px;

padding:0 15px;

}

.content{

padding:15px;

}

.dashboardCards{

grid-template-columns:1fr;

}

.card{

padding:18px;

}

table{

font-size:13px;

}

table th,

table td{

padding:10px;

}

.permission{

grid-template-columns:1fr;

}

.btn{

width:100%;

margin-top:8px;

}

}

@media (max-width:480px){

.logo{

font-size:20px;

}

.card h2{

font-size:20px;

}

.pageTitle{

font-size:22px;

}

.avatar{

width:34px;

height:34px;

font-size:14px;

}

.notification{

font-size:18px;

}

.topbar{

gap:12px;

}

}

/* ===========================================
   HOVER EFFECT
=========================================== */

.card:hover,

.graphCard:hover,

.noticeCard:hover,

.activityCard:hover,

.systemCard:hover{

transform:translateY(-3px);

transition:.25s;

}

table tbody tr:hover{

background:#f8fbfd;

}

input:hover,

select:hover,

textarea:hover{

border-color:#cfd8e3;

}

/* ===========================================
   BUTTON EFFECT
=========================================== */

.btn{

transition:.25s;

}

.btn:hover{

transform:translateY(-2px);

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

}

.btnDelete:hover{

background:#c62828;

}

.btnEdit:hover{

background:#1976d2;

}

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

.loader{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:#fff;

display:flex;

justify-content:center;

align-items:center;

z-index:99999;

}

.loader::after{

content:"";

width:55px;

height:55px;

border-radius:50%;

border:5px solid #ddd;

border-top:5px solid var(--primary);

animation:spin .8s linear infinite;

}

@keyframes spin{

100%{

transform:rotate(360deg);

}

}

/* ===========================================
   BADGE
=========================================== */

.badge{

display:inline-block;

padding:4px 10px;

border-radius:20px;

font-size:12px;

font-weight:600;

}

.badge-success{

background:#d9f7ea;

color:#00a65a;

}

.badge-danger{

background:#fde2e2;

color:#d32f2f;

}

.badge-warning{

background:#fff4d6;

color:#f57c00;

}

/* ===========================================
   COPYRIGHT
=========================================== */

.footer{

font-size:13px;

color:#7a8797;

}

.footer strong{

color:var(--primary);

}

/* ===========================================
   END
=========================================== */

.user-name-link {
    color: #00b96b !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.user-name-link:hover {
    color: #00975a !important;
    text-decoration: underline;
    transform: translateX(4px);
}

/* All Customers Specific */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.date-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-filters input[type="date"] {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.right-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.clients-table td {
    vertical-align: top;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive, .status-badge.expired {
    background: #f8d7da;
    color: #721c24;
}
/* এটি আপনার টেবিলের সব ডেটাকে উপর থেকে অ্যালাইন করবে */
table td {
    vertical-align: top !important;
}