* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
}
.top-navbar {
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.top-navbar .navbar-brand {
  font-size: 28px;
  font-weight: bold;
  color: #ffc107 !important;
  letter-spacing: 2px;
}
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  transition: 0.3s ease-in-out;
  z-index: 1001;
  padding-top: 80px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}
.sidebar.show {
  left: 0;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}
.sidebar-header h4 {
  color: #ffc107;
  margin: 0;
}
.sidebar-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 5px 0 0;
}
.sidebar .nav-item {
  margin: 5px 0;
}
.sidebar .nav-link {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  transition: all 0.3s;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 10px;
}
.sidebar .nav-link i {
  width: 25px;
  margin-right: 15px;
  font-size: 18px;
}
.sidebar .nav-link:hover {
  background: #ffc107;
  color: #000;
  transform: translateX(5px);
}
.sidebar .logout-btn {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
.sidebar-toggle {
  position: fixed;
  left: 20px;
  top: 80px;
  z-index: 1002;
  background: #ffc107;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.sidebar-toggle:hover {
  background: #ffca2c;
  transform: scale(1.05);
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}
.overlay.show {
  display: block;
}
main {
  margin-left: 0;
  padding-top: 80px;
  min-height: 100vh;
}
.page-header {
  text-align: center;
  margin-bottom: 30px;
}
.page-header h1 {
  color: #ffc107;
  font-weight: 700;
}
.page-header p {
  color: rgba(255, 255, 255, 0.6);
}
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-5px);
}
.stat-card i {
  font-size: 2rem;
  color: #ffc107;
  margin-bottom: 10px;
}
.stat-card h3 {
  color: #ffc107;
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
}
.stat-card p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.btn-add {
  background: #ffc107;
  color: #1a1a2e;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-add:hover {
  background: #ffca2c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}
.product-table {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.product-table thead {
  background: #ffc107;
}
.product-table th {
  color: #1a1a2e;
  border: none;
  padding: 15px;
  font-weight: 700;
  font-size: 14px;
}
.product-table td {
  color: #1a1a2e;
  border-color: #e0e0e0;
  padding: 12px 15px;
  vertical-align: middle;
  background: white;
}
.product-table tbody tr:hover {
  background: #fff8e1;
}
.product-table tbody tr:hover td {
  background: #fff8e1;
}
.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 15px;
  color: white;
}
.modal-header {
  border-bottom: 1px solid rgba(255, 193, 7, 0.3);
}
.modal-header h1 {
  color: #ffc107;
}
.modal-header .btn-close {
  filter: invert(1);
}
.modal-footer {
  border-top: 1px solid rgba(255, 193, 7, 0.3);
}
.form-control-custom {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 15px;
  color: white;
  transition: all 0.3s;
  width: 100%;
}
.form-control-custom:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffc107;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}
.form-control-custom::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-select-custom {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 15px;
  color: white;
  transition: all 0.3s;
  cursor: pointer;
  width: 100%;
}
.form-select-custom:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffc107;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}
.form-select-custom option {
  background: #1a1a2e;
  color: white;
}
.btn-modal-submit {
  background: #ffc107;
  color: #1a1a2e;
  border: none;
  padding: 8px 25px;
  border-radius: 20px;
  font-weight: 600;
}
.btn-modal-submit:hover {
  background: #ffca2c;
}
footer {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .sidebar-toggle {
    top: 70px;
    left: 10px;
    width: 40px;
    height: 40px;
  }
  .stat-card h3 {
    font-size: 1.5rem;
  }
  .product-table {
    font-size: 12px;
  }
}
