:root {
  --primary-color: #4e73df;
  --secondary-color: #f8f9fc;
  --dark-color: #5a5c69;
  --light-color: #f8f9fc;
  --success-color: #1cc88a;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
  --info-color: #36b9cc;
  --sidebar-width: 250px;
  --navbar-height: 56px;
  --transition-speed: 0.3s;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--light-color);
  color: #333;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--primary-color);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container .logo {
  max-height: 80px;
  margin-bottom: 15px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1030;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar-container {
  background-color: white;
  padding: 5px;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.search-form .input-group {
  max-width: 400px;
  margin: 0 auto;
  float: inline-end;
  line-height: 1;
}

/* Sidebar Styles */
#sidebar {
  width: 250px;
  height: calc(100vh - 56px);
  position: fixed;
  top: 56px;
  left: -250px;
  background: #343a40;
  transition: all 0.3s;
  z-index: 1000;
  overflow-y: auto;
}

#sidebar.active {
  left: 0;
}

#sidebar .sidebar-header {
  padding: 20px;
  background: #2c3136;
}

#sidebar ul.nav {
  padding: 10px 0;
}

#sidebar ul.nav li.nav-item {
  width: 100%;
}

#sidebar ul.nav li.nav-item a.nav-link {
  color: #adb5bd;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

#sidebar ul.nav li.nav-item a.nav-link:hover,
#sidebar ul.nav li.nav-item a.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#sidebar ul.nav li.nav-item a.nav-link i {
  width: 20px;
  text-align: center;
}

/* Mobile Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (min-width: 992px) {
  #sidebar {
    left: 0;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Main Content */
.main-content {
  width: 100%;
  min-height: calc(100vh - var(--navbar-height));
  transition: all var(--transition-speed) ease;
  padding: 1rem;
}

/* Profile Dropdown */
.dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  margin-top: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: none;
}

.dropdown.show .dropdown-menu {
  display: block;
  margin-top: -30px;
  text-align: right;
}

/*.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  left: auto;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}*/
/* Transactions Modal */
#transactionsModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Responsive Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Badges */
.badge {
  font-size: 0.8em;
  padding: 0.35em 0.65em;
}

/* Desktop Styles */
@media (min-width: 992px) {
  #sidebar {
    left: 0;
  }

  .main-content {
    margin-left: var(--sidebar-width);
  }

  .sidebar-overlay {
    display: none !important;
  }

  .dropdown-menu {
    position: absolute;
  }
}

/* Mobile Enhancements */
@media (max-width: 991.98px) {
  .navbar > .container-fluid {
    align-items: baseline;
    justify-content: flex-start;
  }
  #userDropdown{
    text-align: right;
  }

  #sidebar.active + .sidebar-overlay {
    display: block;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0;
    width: 100%;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .search-bar-container {
    padding: 0.5rem;
  }
}

/* Button Enhancements */
.btn {
  white-space: nowrap;
}

/* Animation for sidebar */
@keyframes slideIn {
  from {
    left: -250px;
  }

  to {
    left: 0;
  }
}

@keyframes slideOut {
  from {
    left: 0;
  }

  to {
    left: -250px;
  }
}

.sidebar {
  background-color: #343a40;
  color: white;
  min-height: calc(100vh - 56px);
  transition: all 0.3s;
}


.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  margin-bottom: 0.2rem;
  border-radius: 0.35rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
  margin-right: 0.5rem;
}

.main-content {
  padding: 20px;
  transition: all 0.3s;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.card-primary {
    border-left: 4px solid #4361ee;
}

.card-success {
    border-left: 4px solid #28a745;
}

.card-info {
    border-left: 4px solid #17a2b8;
}

.card-warning {
    border-left: 4px solid #ffc107;
}

.card-danger {
    border-left: 4px solid #dc3545;
}

.card-dark {
    border-left: 4px solid #343a40;
}

.card-light {
    border-left: 4px solid #f8f9fa;
}

.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-light {
    background-color: rgba(67, 97, 238, 0.1);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-dark-light {
    background-color: rgba(52, 58, 64, 0.1);
}

.progress {
    height: 6px;
    border-radius: 3px;
}

.progress-bar {
    border-radius: 3px;
}

/* Chart container */
.card-body canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .icon-shape {
        width: 40px;
        height: 40px;
    }
}
.category-card {
  background-color: var(--primary-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
}

.category-icon {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 15px;
}


#sellerSuggestions,
#productSuggestions {
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
}

.table-responsive {
  overflow-x: auto;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
  margin-bottom: 20px;
}

.card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
  padding: 1rem 1.35rem;
  border-radius: 10px 10px 0 0 !important;
}

.form-control-static {
  padding-top: calc(0.375rem + 1px);
  padding-bottom: calc(0.375rem + 1px);
  margin-bottom: 0;
  line-height: 1.5;
  min-height: 38px;
  border-bottom: 1px solid #e3e6f0;
}

.badge {
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  border-radius: 0.25rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #3a5bc7;
  border-color: #3a5bc7;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.alert {
  border-radius: 0.35rem;
  padding: 1rem;
}

.border-bottom {
  border-bottom: 1px solid #e3e6f0 !important;
}

.text-muted {
  color: #858796 !important;
}
