*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #2c3e50;
  background-repeat: repeat;
  background-size: auto;
  overflow: hidden;
}

.navbar {
  background-color: #343a40 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
  font-weight: 600;
  font-size: 1.3rem;
}

.sidebar {
  background: linear-gradient(to bottom, #212529, #2c2f33);
  color: #adb5bd;
  min-height: 100vh;
  padding: 1rem 0;
  border-right: 1px solid #343a40;
}
.sidebar .nav-link {
  color: #adb5bd;
  transition: all 0.3s ease;
  padding: 10px;
}
.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
  color: #ffc107;
  background-color: #343a40;
  border-radius: 4px;
}

.full-height {
  min-height: calc(100vh - 56px);
  overflow-y: auto;
}

.main-content {
  background-color: #fff;
  padding: 2rem;
  height: calc(100vh - 56px);
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

form .form-control, form .form-select {
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form .form-control:focus, form .form-select:focus {
  border-color: #ffc107;
  box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.btn {
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background-color: #ffc107;
  border-color: #ffc107;
}
.btn-primary:hover {
  background-color: #e0a800;
  border-color: #d39e00;
}
.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}
.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.table {
  background-color: #fff;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
.table thead th {
  background-color: #343a40;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}

.modal-content {
  border-radius: 0.5rem;
  overflow: hidden;
}
.modal-header, .modal-footer {
  background-color: #f1f3f5;
}
.modal-title {
  font-weight: 600;
}

#mobileIconsBar .nav-link i {
  text-shadow: 0 0 2px #ffd700;
  transition: text-shadow 0.3s ease;
}
#mobileIconsBar .nav-link:hover i {
  text-shadow: 0 0 4px #ffd700,
               0 0 8px #ffd700;
}

.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

#buyerSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: #fff;
  border-radius: 4px;
}

.a4-document {
  max-width: 210mm;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  padding: 20mm;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar-link .icon-wrapper i {
  text-shadow: 0 0 2px #ffd700;
  transition: text-shadow 0.3s ease;
}

.sidebar-link:hover .icon-wrapper i {
  text-shadow:
    0 0 4px #ffd700,
    0 0 8px #ffd700;
}

.sidebar-link .menu-title {
  font-weight: bold;
}

.sidebar-link .menu-desc {
  font-style: italic;
}

.animate__animated {
  animation-duration: 0.5s;
}

@media (max-width: 768px) {
  .mobile-icons-bar {
    background-color: transparent;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    width: 100%;
    align-items: center;
  }

  .row.g-0.full-height-mobile {
    display: block;           
    height: auto !important;
  }

  .sidebar {
    display: none !important;
  }

  .sidebar ul.nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .sidebar .nav-item {
    width: auto;
    margin: 0;
    text-align: center;
  }
  .nav.flex-column.h-100 {
    height: auto !important;
  }

  .sidebar .menu-title,
  .sidebar .menu-desc {
    display: none !important;
  }

  .sidebar i.fa-3x {
    font-size: 1.6rem !important;
  }

  .main-content {
    margin-top: 0 !important;
    width: 100%;
  }

  .menu-icon i {
    color: #adb5bd; 
    transition: text-shadow 0.3s ease, color 0.3s ease;
  }
  .menu-icon:hover i,
  .menu-icon.active i {
    color: #ffc107;
    text-shadow: 0 0 4px #ffd700, 0 0 8px #ffd700;
  }
}
