body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f4f6f9;
  margin: 0;
  color: #333;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 220px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
  padding-top: 20px;
  z-index: 100;
  transition: width 0.3s ease;
}

.sidebar .brand {
  text-align: center;
  font-size: 18px;
  color: #007aff;
  font-weight: 600;
  margin-bottom: 30px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.nav-link {
  color: #555;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.nav-link:hover,
.nav-link.active {
  background: #007aff;
  color: #fff;
}

/* Main content */
.main-content {
  margin-left: 220px;
  transition: margin-left 0.3s ease;
}

/* Topbar */
.topbar {
  background: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #e6e9ed;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

#page-title {
  margin: 0;
  font-size: 18px;
  color: #007aff;
}

/* Content */
.app-content {
  padding: 10px;
}

/* Shadow box */
.shadow-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 40px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shadow-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Dashboard cards */
.card-box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.2s ease;
}
.card-box:hover {
  transform: translateY(-5px);
}

/* Buttons */


/* Responsive Sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  .sidebar .brand span,
  .sidebar .nav-link span {
    display: none;
  }
  .main-content {
    margin-left: 60px;
  }
   #detailsPanel, #filtersPanel {
    width: 350px;
    right: -350px;      /* fully hide at start */
  }
}

.btn-primary{
	background: #007aff;
	color: #fff;
}
.color-red{color:#ff704d;}
.color-green{color:#79d279;}
.color-blue{color:#4d94ff;}
   
.cat{cursor: pointer;}
.cat:hover{ 
box-shadow: 0 6px 12px rgba(0,0,0,0.12);
            transform: translateY(-2px);
			}
			
.items-div {
      display: none;
      background: #fff;
      border: 1px solid #ccc;
      padding: 20px;
      border-radius: 8px;
    }
.cat-div{}	

    /* Right-side panel */
   
	#detailsPanel, #filtersPanel {
	  position: fixed;
	  top: 0;
	  right: -350px;         /* hide panel initially */
	  width: 350px;          /* desktop width */
	  height: 100%;
	  background: #fff;
	  border-left: 1px solid #ddd;
	  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
	  overflow-y: auto;
	  padding: 20px;
	  transition: right 0.4s ease;
	  z-index: 999;
	}
    #detailsPanel.open, #filtersPanel.open {
      right: 0;
    }
    .closePanel {
      float: right;
      cursor: pointer;
      font-size: 18px;
      color: #888;
    }
    .closePanel:hover {
      color: #000;
    }
	
.table tbody tr td,
.table thead tr th,
.table tfoot tr th {
    vertical-align: middle;
}


.nice-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.nice-table thead {
    background: #f7f7f7;
    color: #333;
    font-weight: bold;
}

.nice-table th, 
.nice-table td {
    vertical-align: middle !important;
    padding: 5px 5px !important;
}

.nice-table tbody tr:hover {
    background: #f0f8ff; /* light blue highlight */
    transition: 0.2s;
}

.nice-table thead th {
    border-bottom: 2px solid #ddd !important;
}

.nice-table td {
    border-color: #eee !important;
}

/******************************/
/* Hamburger menu */
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    display: none; /* hide on desktop */
    margin-right: 15px;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 90;
}

/* Mobile sidebar */
@media (max-width: 768px) {
    .menu-icon {
        display: inline-block;
    }

    .sidebar {
        left: -220px;         /* hide offscreen */
        width: 220px;
        height: 100%;
        position: fixed;
        top: 0;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .sidebar.open {
        left: 0;              /* slide in */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }

    .main-content {
        margin-left: 0;       /* full width */
        transition: margin-left 0.3s ease;
    }

    .main-content.shifted {
        margin-left: 220px;   /* shift when sidebar open */
    }

    .overlay.show {
        display: block;
    }
}
