﻿/* ==========================================
   Paliwal Infotech WhatsApp SaaS Admin Theme
   Version : 2.0
==========================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0F4CC9;
    --primary-light: #2E6BFF;
    --sidebar: #111827;
    --sidebar-hover: #1F2937;
    --success: #25D366;
    --warning: #FFC107;
    --danger: #DC3545;
    --bg: #F5F7FB;
    --card: #FFFFFF;
    --text: #212529;
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Inter',sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Sidebar */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Logo */

.logo {
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .logo img {
        width: 180px;
    }

/* Menu */

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-bottom: 40px;
}

.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #3b4556;
    border-radius: 20px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #5b6577;
}

    .sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 14px 18px;
        margin-bottom: 8px;
        border-radius: 12px;
        color: #d1d5db;
        transition: .25s;
        font-size: 15px;
        font-weight: 500;
    }

        .sidebar-menu a:hover {
            background: var(--sidebar-hover);
            color: white;
        }

        .sidebar-menu a.active {
            background: var(--primary);
            color: white;
        }

    .sidebar-menu i {
        width: 22px;
        text-align: center;
        font-size: 18px;
    }

/* Main */

.main {
    margin-left: 260px;
    min-height: 100vh;
}

/* Topbar */

.topbar {
    height: 75px;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.page {
    padding: 30px;
}

/* Cards */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 20px;
}
.workflow-step-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step-no {
    background: #0F4CC9;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.step-type {
    margin-left: 10px;
    font-weight: 600;
    color: #0F4CC9;
}

.step-body {
    color: #555;
    line-height: 28px;
}

.workflow-arrow {
    text-align: center;
    color: #0F4CC9;
    margin-bottom: 12px;
    font-size: 22px;
}


.card-modern {
    background: white;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: .3s;
}

    .card-modern:hover {
        transform: translateY(-4px);
    }



.bg-success-soft {
    background: #EAF8EE;
    color: #198754;
}

.bg-warning-soft {
    background: #FFF8E5;
    color: #f59e0b;
}

.bg-danger-soft {
    background: #FDECEC;
    color: #dc3545;
}

.bg-info-soft {
    background: #EAF7FF;
    color: #0dcaf0;
}
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
}

.bg-primary-soft {
    background: var(--primary);
}

.bg-success-soft {
    background: var(--success);
}

.bg-warning-soft {
    background: var(--warning);
}

.bg-danger-soft {
    background: var(--danger);
}

/* Buttons */

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 10px;
}

    .btn-primary:hover {
        background: var(--primary-light);
    }

/* Profile */

.profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.submenu {
    display: none;
    padding-left: 20px;
}

    .submenu.show {
        display: block;
    }

/* Table */

.table {
    background: white;
}

/* Responsive */

@media(max-width:992px) {

    .sidebar {
        width: 80px;
    }

        .sidebar span {
            display: none;
        }

    .logo img {
        width: 50px;
    }

    .main {
        margin-left: 80px;
    }
}

/* ==========================================
   Dashboard Cards
==========================================*/

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    transition: .30s;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    height: 100%;
}

    .stat-card:hover {
        transform: translateY(-6px);
    }

.stat-title {
    color: #6b7280;
    font-size: 14px;
    margin-top: 15px;
}

.stat-number {
    font-size: 34px;
    font-weight: 700;
}

.stat-growth {
    color: #22c55e;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================
   Search Box
==========================================*/

.search-box {
    width: 320px;
    position: relative;
}

    .search-box input {
        border-radius: 12px;
        border: 1px solid #E5E7EB;
        padding-left: 42px;
        height: 45px;
    }

    .search-box i {
        position: absolute;
        left: 15px;
        top: 14px;
        color: gray;
    }

/* ==========================================
   Dropdown
==========================================*/

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

/* ==========================================
   Table
==========================================*/

.table thead {
    background: #f8fafc;
}

.table th {
    font-weight: 600;
}

/* ==========================================
   Badge
==========================================*/

.badge {
    font-size: 10px;
}

/* ==========================================
   Scrollbar
==========================================*/

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 20px;
}
