/*
 * LAYOUT.CSS
 * ==========
 * Navigation, header, sidebar, and general layout structure styles
 * Contains all structural layout components and their positioning
 */

/* ==========================================================================
   Secondary Navigation
   ========================================================================== */

.navbar-secondary {
  background-color: #F1F43D;
  padding: 10px 0;
}

.navbar-secondary-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.navbar-secondary-list li {
  display: inline-block;
  margin-right: 20px;
}

.navbar-secondary-list li a {
  color: black;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
}

.navbar-secondary-list li a:hover {
  background-color: #E9232F; 
  color: white;
}

/* ==========================================================================
   Primary Navigation
   ========================================================================== */

/* Style for the navigation bar */
.navbar {
  display: flex;
  align-items: center;
  background-color: #E9232F;
  color: white;
  padding: 0 30px;
  font-size: 14px;
}

/* Style for the logo */
.nav-logo {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Inter';
  padding: 15px 0;
}

.nav-link {
  text-decoration: none;
  margin-left: 20px;
  color: white;
}

/* Style for the search bar */
.search-bar {
  flex: 1;
  margin: 0 20px;
  padding: 15px 0;
  position: relative;
}

.search-bar input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  padding-right: 40px
}

.search-button {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  background-color: #5aff2b;
  border: none;
  color: #333;
  padding: 12px 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.search-button:hover {
  background-color: #f3a847;
}

.search-button i {
  font-size: 16px;
}

.nav-search-results {
  background-color: white;
  box-shadow: 0 0 10px #ddd;
}

/* ==========================================================================
   User Navigation & Dropdowns
   ========================================================================== */

.user-dropdown {
  position: relative;
}


.username {
  cursor: pointer;
}

.cart-and-user {
  display: flex;
  align-items: center;
}

.user-nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 30px;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown {
  display: flex;
  flex-direction: column;
}

.dropbtn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.dropbtn span:first-child {
  font-size: 12px;
}

.dropbtn span:last-child {
  font-size: 14px;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: -50px;
  background-color: #f9f9f9;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border: 1px solid grey;
  margin-top: 1px;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.user-nav-dropdown:hover .dropdown-content {
  display: block;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
  width: 200px;
  font-size: 18px;
  height: 100vh;
  position: fixed;
  border-right: 1px solid #e6e6e6;
  left: 0;
  overflow-y: auto;
  padding-top: 20px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 10px;
  color: #fff;
}

.sidebar ul li a {
  color: black;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.sidebar ul li a:hover {
  background-color: #E9232F;
  color: white;
  border-radius: 30px;
}

.sidebar ul li i {
  margin-right: 10px;
}

.content {
  margin-left: 250px;
}

.csstabcontent.sidebar-tab-content {
  display: none;
  padding: 20px;
  border-top: none;
}

.csstabcontent.sidebar-tab-content.active {
  display: block;
}

.sidebartabcontent {
  display: none;
  padding: 20px;
  border-top: none;
}

.sidebartabcontent.active {
  display: block;
}

/* ==========================================================================
   Headers & Footer
   ========================================================================== */

.admin-header {
  padding: 20px 0px 20px 0px;
}

.footer {
  background-color: #444;
  color: #fff;
  padding: 10px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* ==========================================================================
   Main Layout Containers
   ========================================================================== */

.main-container {
  min-width: 998px;
}

.commerce-container {
  padding-top: 10px;
  display: flex;
  background-color: white;
  max-width: 1500px;
  margin: 0 auto;
}

.main-content {
  flex: 2;
  padding-left: 20px;
}

.shop-container {
  width: 100%;
  height: 300px;
  background-color: white;
}

.container-align-middle {
  margin: 0 auto;
  max-width: 1000px;
  padding: 20px;
}

.container-large-middle {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

.column {
  padding: 10px;
}

/* ==========================================================================
   Flexbox Layout Utilities
   ========================================================================== */

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  font-family: 'Inter';
  padding-bottom: 10px;
}

.button-container-padding {
  padding: 30px;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-input-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-input-group {
  flex: 0 0 30%;
  margin-right: 20px;
}

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

.input-row {
  display: flex;
  margin-bottom: 20px;
}

.flex-end {
  justify-content: end;
}