/*
 * COMPONENTS.CSS
 * ==============
 * Reusable UI components: buttons, forms, cards, modals, tables, etc.
 * Contains all component-level styles that can be used across the application
 */

/* ==========================================================================
   Button Components
   ========================================================================== */

.components-section {
  padding: 2%;
}

.showcase-button {
  width: 150px!important;
}

.settings-button {
  width: 170px;
  padding: 10px;
  border: none;
  background-color: #E2E535;
  color: black;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.settings-button:hover {
  background-color: #adaf2c;
}

.cart-button {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #E2E535;
  color: black;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
  margin-top: 15px;
}

.cart-button:hover {
  background-color: #adaf2c;
}

.view-button {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #fafafa;
  color: black;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
  margin-top: 15px;
  border: 1px solid #c7c7c7 !important;
}

.view-button:hover {
  background-color: #c7c7c7;
}

.register-button {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #dfe246;
  color: #000000;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.register-button:hover {
  background-color: #b4d529;
}

.standard-button {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #DFE246;
  color: black;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.standard-button:hover {
  background-color: #b0b334;
}

.delete-button {
  display: block;
  padding: 10px;
  color: #d31515;
  background-color: white;
  border: 1px solid #c5c5c5;
  text-align: center;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  padding-top: 10px;
}

.delete-button:hover {
  background-color: #e24747;
  color: white;
}

.edit-button {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: white;
  color: #6A68EA;
  border: 1px solid #c7c7c7;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.edit-button:hover {
  background-color: #6A68EA;
  color: white;
}

.viewall-button {
  width: 100%;
  padding: 10px;
  background-color: white;
  color: #6A68EA;
  border: 1px solid #c5c5c5;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.viewall-button:hover {
  background-color: #6A68EA;
  color: white;
}

.strong-button {
  border: none;
  background-color: #E9232F;
  padding: 10px;
  color: white;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.strong-button:hover {
  background-color: rgb(255, 0, 0);
  color: white;
}

.addNew-button {
  background-color: #C82556;
  padding: 12px;
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 1px;
  font-size: 1rem;
}

.addNew-button:hover {
  background-color: #be0d42;
}

.follow-button {
  color: white!important;
  background-color: #0095f6;
  padding: 8px;
  width: 150px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-weight: bold;
}

.follow-button:hover {
  background-color: #0675be;
}

.message-button {
  color: black;
  font-weight: bold;
  background-color: #efefef;
  padding: 8px;
  width: 150px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #c7c7c7!important;
  border-radius: 10px;
}

.message-button:hover {
  background-color: #c7c7c7;
}

.buy-now-button {
  width: 100%;
  padding: 15px;
  border: none;
  background: #FA8900;
  border-color: #FF8F00;
  color: white;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
}

.buy-now-button:hover {
  background-color: #E67700;
}

.go-button {
  display: block;
  width: 50%;
  padding: 10px;
  background-color: #DB4444;
  font-size: 12px;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 20px;
}

.cancel-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ccc;
  color: black;
  margin-right: 10px;
}

.add-card-button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
}

.change-btn {
  float: right;
  background-color: transparent;
  border: none;
  color: #3b8b22;
  cursor: pointer;
}

.chat-now-btn {
  background-color: #fafafa;
  border: 1px solid #c7c7c7!important;
  color: black;
}

.chat-now-btn:hover {
  background-color: #c7c7c7;
}

.view-shop-btn {
  background-color: #e74747; 
  color: white!important;
}

.view-shop-btn:hover {
  background-color: #c52121;
}

.write-review {
  background-color: #fafafa;
  border: 1px solid #c7c7c7;
  color: black;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 15px;
  font-weight: bold;
  margin: 20px 0;
  cursor: pointer;
  border-radius: 5px;
}

/* ==========================================================================
   Form Components
   ========================================================================== */

.login-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 2px;
  border-bottom: 1px solid #00000033;
  margin: auto;
}

.login-form h2 {
  margin-top: 0;
  text-align: center;
}

.appcontainer {
  width: 800px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #00000038;
  border-radius: 1px;
  text-align: left;
}

.appcontainer .input-group label {
  margin-bottom: 0;
}

.formgroupcontainer {
  width: 350px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #00000038;
  border-radius: 1px;
  text-align: center;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 15px;
  color: #000000;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
}

.input-group p {
  font-size: 13px;
}

.input-group:last-child {
  margin-right: 0;
}

.input-group input {
  width: 200px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="password"],
input[type="email"] {
  width: 300px;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.custom-select-label {
  margin-top: 10px;
  font-size: 14px;
  display: block;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select {
  appearance: none;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  width: 150px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(15,14,14,.15);
}

.custom-select:focus {
  outline: none;
  border-color: #888;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.select-wrapper::after {
  content: "\25BC";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #888;
}

.custom-select option {
  background-color: #fff;
  color: #333;
}

.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e0e0e0;
  color: #000;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  border: 1px dashed black;
  margin-top: 10px;
  outline: none;
  width: fit-content;
}

.custom-file-upload:hover {
  background-color: #d0d0d0;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.custom-file-upload span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  vertical-align: middle;
}

form.onpageSearch input[type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 80%;
  background: #f1f1f1;
}

form.onpageSearch button {
  float: left;
  width: 20%;
  padding: 10px;
  background: #2196F3;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

form.onpageSearch button:hover {
  background: #0b7dda;
}

form.onpageSearch::after {
  content: "";
  clear: both;
  display: table;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-right: 10px;
}

.form-row .form-group:last-child {
  margin-right: 0;
}

.button-group {
  text-align: right;
  margin-top: 20px;
}

.quantity-selector-wrapper {
  width: 100%;
}

.select-label {
  display: inline-block;
  margin-right: 10px;
  font-size: 14px;
  line-height: 35px;
}

.quantity-selector {
  width: 100%;
  box-shadow: 0 2px 5px rgba(15,17,17,.15);
}

.filters select {
  padding: 2px;
}

/* ==========================================================================
   Toggle Switch Components
   ========================================================================== */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.switch:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .switch {
  background-color: #4CAF50;
}

input:checked + .switch:before {
  transform: translateX(26px);
}

/* ==========================================================================
   Card Components
   ========================================================================== */

.analytics-card-small {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 250px;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
}

.analytics-card-medium {
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  width: 350px;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
}

.analytics-card-medium:hover {
  cursor: pointer;
}

.analytics-card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  cursor: pointer;
}

.analytics-card-container {
  padding: 15px;
}

.analytics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-card-title {
  margin: 0;
}

.analytics-card-content {
  padding: 5px 0px 5px 0px;
}

.analytics-card-footer {
  display: flex;
  gap: 10px;
}

.analytics-card-link {
  text-decoration: none;
  color: black;
}

.settings-card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 450px;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
}

.settings-card:hover {
  background: #e9e9e9;
  cursor: pointer;
}

.settings-card-container {
  padding: 15px;
}

.settings-card-content {
  padding: 20px 0px 20px 0px;
}

.settings-card-footer {
  display: flex;
  justify-content: end;
}

.card-image {
  float: left;
  padding-right: 20px;
}

/* ==========================================================================
   Modal Components
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 1200px;
  height: 80%;
  background-color: #fff;
  overflow: hidden;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
}

.modal-image-container {
  width: 70%;
  height: 100%;
  overflow: hidden;
}

.modal-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-thumbnail-container {
  align-content: flex-start;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
  overflow: auto;
}

.modal-thumbnail-wrapper {
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  height: 5rem;
  margin-bottom: 12px;
  margin-right: 12px;
  width: 5rem;
  border: 1px solid #249f38;
}

.modal-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-address-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.add-address-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  position: relative;
}

.edit-profile-modal,
.edit-address-modal,
.delete-address-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.delete-payment-method {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.delete-payment-method-modal {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  position: relative;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.delete-address-modal-content {
  max-width: 400px;
  text-align: center;
}

.delete-address-modal-content h3 {
  margin-top: 0;
}

.delete-address-modal-content p {
  margin-bottom: 20px;
}

/* ==========================================================================
   Table Components
   ========================================================================== */

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px;
}

th {
  background-color: #F8F8F8;
  border-right: none;
}

.tech-specs {
  border-collapse: collapse;
  width: 100%;
}

.tech-specs td {
  border: 1px solid #ddd;
  padding: 8px;
}

.tech-specs tr:nth-child(even) {
  background-color: #f2f2f2;
}

.spec-name {
  font-weight: bold;
  width: 50%;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sf {
  font-size: 12px;
}

.text-center {
  text-align: center;
}

.results-text {
  color: #c45500;
  font-weight: bold;
}

.transparent-link {
  text-decoration: none;
  color: black;
}

.full-width {
  width: 100%!important;
}

.blue-link {
  text-decoration: none;
  color: #6A68EA;
}

.initialscreenForm {
  padding: 30px;
}

.initialscreentext {
  text-align: center;
  margin-bottom: 20px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.remember-forgot label {
  font-size: 12px;
}

.forgotpwlink {
  color: #6A68EA;
  font-size: 12px;
  padding: 10px;
  display: block;
  text-align: end;
  text-decoration: none;
}

.registernowText{
  padding: 5%;
  color: red;
}

.registerHeader {
  text-align: left;
  color: red;
  margin-top: 50px;
  margin-bottom: 10px;
}

.centerHeader {
  text-align: center;
  color: red;
  margin-top: 50px;
  margin-bottom: 20px;
}

.admin-link {
  padding: 8px 0 8px 0px;
  text-decoration: none;
  font-size: 14px;
  color: #302CEB;
}

.addpayment-link {
  padding: 8px 0 8px 0px;
  text-decoration: none;
  font-size: 13px;
  color: #302CEB;
}