/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f4f6f9;
    overflow-x:hidden;
}

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

.sidebar{
    position:fixed;
    top:0;
    left:0;

    width:260px;
    height:100vh;

    background:#172033;

    overflow-y:auto;

    transition:0.3s;

    z-index:1000;
}

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

.sidebar-header{
    height:75px;

    display:flex;
    align-items:center;
    gap:12px;

    padding:0 20px;

    color:#fff;

    font-size:22px;
    font-weight:700;

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

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

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;

    color:#fff;
    text-decoration:none;

    padding:14px 20px;

    font-size:15px;

    transition:0.3s;
}

/* =========================================
   ICONS
========================================= */

.sidebar i{
    width:18px;
    text-align:center;
}

/* =========================================
   LINK HOVER
========================================= */

.sidebar a:hover{
    background:#243047;
}

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

.dropdown-btn{
    width:100%;

    border:none;
    outline:none;

    background:none;

    color:#fff;

    cursor:pointer;

    padding:14px 20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:15px;

    transition:0.3s;
}

.dropdown-btn:hover{
    background:#243047;
}

/* =========================================
   ACTIVE DROPDOWN
========================================= */

.dropdown-btn.active{
    background:#243047;
}

/* =========================================
   MENU LEFT
========================================= */

.menu-left{
    display:flex;
    align-items:center;
    gap:12px;
}

/* =========================================
   DROPDOWN CONTAINER
========================================= */

.dropdown-container{
    display:none;
    background:#1d2940;
}

/* =========================================
   SUBMENU LINKS
========================================= */

.dropdown-container a{
    padding-left:50px;
    font-size:14px;
}

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

.logout-btn{
    margin-top:20px;
    background:#8b1e1e;
}

.logout-btn:hover{
    background:#b91c1c !important;
}

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

.main{
    margin-left:260px;
    padding:25px;
    min-height:100vh;
    transition:0.3s;
}

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

.topbar{
    background:#fff;

    border-radius:16px;

    padding:18px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    box-shadow:0 2px 12px rgba(0,0,0,0.08);
}

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

/* =========================================
   TOP TITLE
========================================= */

.top-title{
    font-size:22px;
    font-weight:700;
}

/* =========================================
   PROFILE BOX
========================================= */

.profile-box{
    font-weight:600;
    font-size:17px;
}

/* =========================================
   DASHBOARD TITLE
========================================= */

.dashboard-title{
    font-size:30px;
    font-weight:700;
    margin-bottom:25px;
    color:#111;
}

/* =========================================
   DASH CARDS
========================================= */

.dash-card{
    border:none !important;

    border-radius:20px !important;

    overflow:hidden;

    box-shadow:0 4px 14px rgba(0,0,0,0.08);

    transition:0.3s;

    height:100%;
}

.dash-card:hover{
    transform:translateY(-5px);
}

@media(max-width:768px){

    .dash-card .card-body{
        padding:20px 15px;
    }

    .icon{
        font-size:35px;
    }

    .value{
        font-size:28px;
    }

    .label{
        font-size:15px;
    }
}

/* =========================================
   DASH ICON
========================================= */

.icon{
    font-size:45px;
    margin-bottom:15px;
}

/* =========================================
   VALUE
========================================= */

.value{
    font-size:34px;
    font-weight:700;
    color:#111;
}

/* =========================================
   LABEL
========================================= */

.label{
    font-size:17px;
    color:#666;
    margin-top:6px;
}

/* =========================================
   COLOR CARDS
========================================= */

.income-card{
    background:linear-gradient(135deg,#00b16a,#00d084);
    color:#fff;
}

.expense-card{
    background:linear-gradient(135deg,#ff4d4d,#ff6b6b);
    color:#fff;
}

.profit-card{
    background:linear-gradient(135deg,#4b6cff,#6f86ff);
    color:#fff;
}

.income-card h2,
.expense-card h2,
.profit-card h2{
    font-size:38px;
    margin-top:10px;
}

/* =========================================
   QUICK MENU
========================================= */

.menu-card{
    background:#fff;

    border-radius:20px;

    min-height:180px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    color:#111 !important;

    font-weight:700;

    font-size:18px;

    box-shadow:0 4px 14px rgba(0,0,0,0.08);

    transition:0.3s;
}

.menu-card:hover{
    transform:translateY(-5px);
    color:#0d6efd !important;
}

/* =========================================
   MENU ICON
========================================= */

.menu-icon{
    font-size:48px;
    margin-bottom:15px;
}

/* =========================================
   CHART CARD
========================================= */
.row.g-4{
    align-items:stretch;
}
.chart-card{
   	background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    min-height:380px;
    display:flex;
    flex-direction:column;
}
  /* BUTTON */
.menu-btn{
	display:none;
}

.chart-card h5{
    margin-bottom:20px;
    font-size:22px;
    font-weight:700;
}

.chart-card canvas{
    width:100% !important;
    height:350px !important;
	flex:1;
}

/* =========================================
   OVERLAY
========================================= */

.sidebar-overlay,
.overlay{
    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.5);

    display:none;

    z-index:999;
}

.sidebar-overlay.active,
.overlay.show{
    display:block;
}


/* =========================================
   SCROLLBAR
========================================= */

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:10px;
}

.register-link{
text-align:center;
margin-top:15px;
}

.register-link button{
border:none;
background:none;
color:#198754;
font-weight:600;
cursor:pointer;
}

.device-box{
margin-top:15px;
padding:10px;
background:#f8f9fa;
border-radius:8px;
font-size:13px;
word-break:break-all;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:991px){

    /* REMOVE ANY EXTRA SPACE */
    html,
    body{
        margin:0 !important;
        padding:0 !important;
    }

    /* SIDEBAR */
    .sidebar{
        left:-260px;
    }

    .sidebar.active{
        left:0;
    }

    /* MAIN CONTENT */
    .main{
        margin-left:0;
        padding:10px;
    }

    /* BUTTON */
    .menu-btn{
	    width:42px;
	    height:42px;
	    border:none;
	    background:#172033;
	    color:#fff;
	    border-radius:10px;
	    font-size:18px;
	    cursor:pointer;
	
	    display:flex;
	    align-items:center;
	    justify-content:center;
	
	    flex-shrink:0;
	}

    /* HIDE EXTRA MOBILE BUTTON IF EXISTS */
    .mobile-menu-btn{
        display:none !important;
    }

    /* TOPBAR */
    .topbar{
        margin-top:0 !important;
        margin-bottom:15px;
        padding:12px 15px;
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    .top-title{
        font-size:18px;
        text-align:center;
        flex:1;
    }

    .profile-box{
        font-size:14px;
        white-space:nowrap;
    }

    /* DASHBOARD TITLE */
    .dashboard-title{
        font-size:24px;
        margin-top:0;
    }

    /* CARDS */
    .dash-card .card-body{
        padding:20px 15px;
    }

    .icon{
        font-size:35px;
    }

    .value{
        font-size:28px;
    }

    .label{
        font-size:15px;
    }

    /* QUICK MENU */
    .menu-card{
        min-height:130px;
        font-size:15px;
    }

    .menu-icon{
        font-size:36px;
    }

    /* CHART */
    .chart-card{
        min-height:auto;
        padding:15px;
    }

    .chart-card canvas{
        height:250px !important;
    }
}