/* Prevent horizontal overflow globally */
body {
  overflow-x: hidden;
  transition: all 0.2s ease;
}

img, video {
  max-width: 100%;
  height: auto;
}

/*==============================
 (SUPER PREMIUM HIDE STYLE)
=============================*/

/* Hide by default */
body::-webkit-scrollbar {
    width: 0px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 999px;
}

/* =========================
   PROFILE IMAGE
========================= */

.user-avatar-img{
    width:72px;
    height:72px;

    border-radius:50%;
    object-fit:cover;

    border:2px solid #f1f5f9;
}

/* =========================
   FIXED SCROLL SYSTEM
========================= */

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ✅ allow growth */
}

/* BODY */
.app-body {
    display: flex;
    flex: 1;
    padding-top:var(--topbar-height);
}

/* MAIN */
.main {
    flex:1;
    display:flex;
    flex-direction:column;
    min-height:0;
}

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

.main {
  transition: all 0.3s ease;
}

.main {
  min-width: 0; /* 🔥 CRITICAL FLEX FIX */
}


/* =========================
   APP LAYOUT
========================= */


/* MOBILE */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100%;
        transition: 0.3s;
    }

    .sidebar.active {
        left: 0;
    }
}

/*=========================
 ERROR 404 PAGE CSS
==========================*/

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
}

.error-box {
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.error-icon {
  font-size: 40px;
  margin-bottom: 10px;
}


/*================================
 PAGE STAGE FOR FOOTER
================================*/

.page-stage{

    display:flex;
    flex-direction:column;

    width:100%;

    min-width:0;

    margin-top:auto;

    background:transparent;

    overflow:hidden;
}

