body {
  display: flex;
  flex-flow: column;
}

/* *
* Navbar
*/

.nav-logo {
  width: 200px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  box-shadow: 0 1px 3px -2px #000;
  margin-bottom: 1px;
  background: white;
}

.dashboard-title {
  margin: auto;
  border: 1px solid #cbcbcb;
  border-radius: 5px;
  padding: 5px;
  background-image: linear-gradient(
    to top right,
    rgb(235, 108, 255),
    rgba(21, 152, 200, 0.849) 30%,
    rgb(133, 255, 108)
  );
}

@media (max-width: 800px) {
  .navbar {
    padding: 15px 30px;
  }
  .nav-logo {
    width: 100px;
  }
}

main {
  display: flex;
}

/* *
  * Sidebar
  **/

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  width: 30%;
  max-width: 250px;
  height: 100vh;
  background: white;
}

.sidebar_add-products,
.sidebar_products-list {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px 20px;
  padding: 5px 10px;
  border-radius: 6px;
  background-color: #f6f6f6;
  gap: 20px;
  cursor: pointer;
  margin-bottom: 20px;
}

.list-icon,
.plus-icon {
  width: 30px;
}
@media (max-width: 800px) {
  .sidebar {
    padding: 30px 0px;
    flex-direction: row;
    width: 100%;
    max-width: none;
    height: auto;
    justify-content: center;
  }

  .sidebar-item {
    margin: 0;
  }
}

.page-content {
  max-width: 80%;
}

/* ~~~~~~~~~~~~~~~~~~ */

/* *
  * Products List
   */

.listproduct-product-icon {
  width: 150px;
  height: 100px;
}

.listproduct-remove-icon {
  width: 15px;
}

.list-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 100%; */
  height: 740px;
  padding: 10px 50px;
  margin: 30px;
  border-radius: 6px;
  background: white;
}

.listproduct-format-main {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr 1fr 1fr 1fr 1fr;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 20px 0px;
  color: #454545;
  font-size: 15px;
  font-weight: 600;
}

.listproduct-format {
  align-items: center;
  font-weight: 500;
}

.delete-svg {
  cursor: pointer;
  margin: auto;
  width: 15px;
  height: 15px;
}

.delete-svg:hover {
  background-color: red;
  border-radius: 3px;
  padding: 3px;
}

.edit-btn {
  border: none;
  width: 100px;
  height: 30px;
  align-self: center;
  background: #6079ff;
  cursor: pointer;
}

.edit-btn:hover {
  background: #6078ffc1;
}

.listproduct-allproducts {
  overflow-y: auto;
}
@media (max-width: 800px) {
  .list-product {
    box-sizing: border-box;
    width: 95%;
    height: 100%;
    padding: 10px 30px;
    margin: 20px auto;
  }
  .listproduct-format-main {
    padding: 15px 0px;
    color: #454545;
    font-size: 12px;
  }
  .listproduct-product-icon {
    height: 60px;
    width: 100px;
  }
}

/* *
  * Add Product
   */

.add-product {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  padding: 30px 50px;
  margin: 20px 30px;
  border-radius: 6px;
  background: white;
}

.addproduct-itemfield {
  width: 100%;
  color: #7b7b7b;
  font-size: 16px;
}

.addproduct-itemfield input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  border-radius: 4px;
  padding-left: 15px;
  border: 1px solid #c3c3c3;
  outline: none;
  color: #7b7b7b;
  font-family: "Poppins";
  font-size: 14px;
}

.addproduct-price {
  display: flex;
  gap: 40px;
}

.add-product-selector {
  width: 100px;
  height: 50px;
  font-size: 14px;
  color: #7b7b7b;
  border: 1px solid #7b7b7b8d;
  border-radius: 4px;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.addproduct-thumbnail-img {
  cursor: pointer;
  height: 150px;
  width: 150px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid;
  background-color: #eef6f9;
  margin: 10px 0px;
}

.addproduct-btn {
  margin-top: 20px;
  width: 160px;
  height: 50px;
  border-radius: 6px;
  background: #6079ff;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 16px;
  font-weight: 500;
}
@media (max-width: 800px) {
  .add-product {
    width: auto;
    padding: 30px;
    margin: 20px;
  }
}

/* Login Form */

.login-container {
  width: 100%;
  max-width: 500px;
}
.login-card {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  text-align: center;
}
.login-title {
  color: #333;
  margin-bottom: 20px;
  font-size: 28px;
}
.login-subtitle {
  color: #666;
  margin-bottom: 30px;
  font-size: 20px;
}
.login-form {
  text-align: left;
}
.form-group {
  margin-bottom: 25px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 16px;
}
.login-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}
.login-btn {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: none;
  color: white;
  padding: 14px 20px;
  width: 100%;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.login-btn:hover {
  background: linear-gradient(45deg, #5a0fc8, #1a6efc);
  transform: translateY(-2px);
}
code {
  font-family: monospace;
}

/* Product Images Management */
.current-images {
  display: flex;
  flex-flow: column;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.main-image,
.small-images {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.2s;
}

.small-images {
  display: flex;
  flex-flow: row;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  padding: 10px;
}

.main-image {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.main-image img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 4px;
  object-fit: cover;
}

.small-image {
  position: relative;
  display: inline-block;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.small-image:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.small-image img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  object-fit: cover;
  width: 150px;
  height: 150px;
  border-radius: 5px;
}

.delete-image-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.delete-image-btn:hover {
  background-color: #c0392b;
  transform: scale(1.1);
}

/* Enhanced File Upload Styling */
.file-upload-container {
  margin: 20px 0;
}

.file-upload-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  border: 2px dashed #c8c8c8;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.file-upload-field:hover {
  border-color: #4e54c8;
  background-color: #f5f5ff;
}

.file-upload-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  align-items: center;
}

.file-upload-label svg {
  margin-right: 8px;
}

.file-upload-input {
  position: relative;
}

.file-upload-input input[type="file"] {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  background-color: white;
  width: 100%;
}

.file-upload-help {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

/* Styling for edit product form */
.main-image-section,
.small-images-section {
  margin-bottom: 20px;
}

.main-image-section p,
.small-images-section p {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.main-image {
  display: inline-block;
  position: relative;
  margin-right: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.main-image:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

/* Product actions styling */
.product-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.edit-btn,
.delete-btn {
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.edit-btn {
  background-color: #4e54c8;
  color: white;
  border: none;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
}

.edit-btn:hover {
  background-color: #3f43a3;
}

.delete-btn:hover {
  background-color: #c0392b;
}

/* Bulk actions styling */
.bulk-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  align-items: center;
}

.bulk-delete-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: none;
}

.bulk-delete-btn:hover {
  background-color: #c0392b;
}

.bulk-delete-btn.visible {
  display: block;
  align-self: center;
}

.select-all-container {
  display: flex;
  align-items: center;
  margin-top: 3rem;
  gap: 8px;
}

.product-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.selected-count {
  margin-left: 10px;
  font-weight: bold;
}

/* Category filter styling */
.category-filter {
  margin-bottom: 20px;
}

.category-filter-select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 14px;
  color: #555;
  background-color: #fff;
}

/* Success card styling */
.success-card {
  margin: 2rem auto;
  padding: 2rem;
  max-width: 600px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.success-title {
  color: #28a745;
  margin-bottom: 1rem;
  font-size: 24px;
}

.success-message {
  margin-bottom: 2rem;
  color: #333;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.view-category-btn {
  padding: 10px 20px;
  background-color: #4e54c8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.view-category-btn:hover {
  background-color: #3f43a3;
}

.add-another-btn {
  padding: 10px 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-another-btn:hover {
  background-color: #5a6268;
}

.product-description-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  resize: vertical;
}

.button-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-top: 3px solid #4e54c8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin: 0 auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
