/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #f26522;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #e55511;
}

.btn-big {
  padding: 10px 25px;
  font-size: 1.1em;
}

/* Header Styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo h1 {
  color: #f26522;
  font-size: 1.8rem;
  font-weight: 700;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-bar form {
  display: flex;
}

.search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.search-bar button {
  padding: 10px 15px;
  background-color: #f26522;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

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

.guest-actions a {
  margin-left: 15px;
}

.btn-login {
  background-color: transparent;
  color: #f26522;
  border: 1px solid #f26522;
}

.btn-login:hover {
  background-color: #f26522;
  color: #fff;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.username {
  font-weight: 500;
}

.main-menu {
  border-top: 1px solid #eee;
}

.main-menu ul {
  display: flex;
  justify-content: center;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  display: block;
  padding: 15px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.main-menu a:hover {
  color: #f26522;
}

/* Main Content Styles */
main {
  padding: 30px 0;
}

.filters {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-section {
  flex: 1;
  min-width: 250px;
}

.filter-section h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.price-filter {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.range-slider {
  width: 100%;
  position: relative;
}

.slider {
  width: 100%;
  cursor: pointer;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-inputs input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#sort-options {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.products {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.products h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: #333;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #666;
}

.product-price {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sale-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f26522;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.discount {
  background-color: #f26522;
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  background-color: #f26522;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-buy:hover {
  background-color: #e55511;
}

.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  transition: all 0.3s ease;
}

.pagination a.active {
  background-color: #f26522;
  color: #fff;
  border-color: #f26522;
}

.pagination a:hover:not(.active) {
  background-color: #eee;
}

/* Footer Styles */
footer {
  background: #232220;
  color: #fff;
  padding: 50px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h2 {
  color: #f26522;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: bold;
}

.footer-section p, .footer-section ul, .footer-section label {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-section ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section.links a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-section.links a:hover {
  color: #f26522;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #333;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: background 0.3s, color 0.3s;
}

.socials a:hover {
  background: #f26522;
  color: #fff;
}

.footer-section.contact-form input,
.footer-section.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
}

.footer-section.contact-form textarea {
  height: 100px;
  resize: none;
}

.footer-section.contact-form button,
.btn.btn-big {
  background: #f26522;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.footer-section.contact-form button:hover,
.btn.btn-big:hover {
  background: #e55511;
}

.footer-bottom {
  background: #111;
  padding: 15px 0;
  text-align: center;
  font-size: 1rem;
  color: #fff;
}

.footer-bottom a {
  color: #f26522;
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  
  .logo {
    margin-bottom: 15px;
    text-align: center;
  }
  
  .search-bar {
    margin: 15px 0;
    max-width: 100%;
  }
  
  .user-actions {
    justify-content: center;
    margin-top: 15px;
  }
  
  .main-menu ul {
    flex-wrap: wrap;
  }
  
  .main-menu a {
    padding: 10px 15px;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Firebase Auth Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.auth-modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.auth-close:hover {
  color: #333;
}

.auth-modal h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.auth-modal .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 10px;
}

.switch-form {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.switch-form a {
  color: #f26522;
  text-decoration: underline;
}

.btn-logout {
  margin-left: 15px;
  background-color: transparent;
  color: #f26522;
  border: 1px solid #f26522;
  font-size: 14px;
  padding: 5px 10px;
}

.btn-logout:hover {
  background-color: #f26522;
  color: #fff;
}

.btn-shopee {
  background-color: #ee4d2d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 8px;
  text-decoration: none;
  display: inline-block;
}

.btn-shopee:hover {
  background-color: #d73211;
  color: white;
  text-decoration: none;
}

.btn-tiktok {
  background-color: #000000;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.btn-tiktok:hover {
  background-color: #333333;
  color: white;
  text-decoration: none;
}

.product-buttons {
  display: flex;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Responsive logo */
@media (max-width: 768px) {
  .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .logo h1 {
    font-size: 1.2rem;
  }
}

/* Dashboard Layout Styles */
.dashboard-body {
  background: #f6f4ec;
  min-height: 100vh;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #f6f4ec;
  border-right: 1px solid #ece7d8;
  display: flex;
  flex-direction: column;
  padding: 32px 0 0 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1001;
  overflow-y: auto;
  z-index: 1030;
  position: fixed;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 0 32px 32px 32px;
  border-bottom: 1px solid #ece7d8;
}

.sidebar-logo {
  font-size: 2rem;
  color: #222;
  margin-right: 12px;
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #222;
}

.sidebar-menu {
  flex: 1;
  margin-top: 32px;
}

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

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 32px;
  color: #222;
  font-size: 1rem;
  border-radius: 8px 0 0 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}

.sidebar-menu a i {
  margin-right: 12px;
  font-size: 1.1em;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
  background: #fff;
  color: #f26522;
}

.logout-link {
  color: #b94a48 !important;
}

.main-content {
  margin-left: 240px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f6f4ec;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 24px 40px 24px 40px;
  border-bottom: 1px solid #ece7d8;
  position: sticky;
  top: 0;
  z-index: 1002;
  min-height: 80px;
}

.header-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
}

.header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 32px;
  display: flex;
}

.header-search input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ece7d8;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
  background: #f6f4ec;
}

.header-search button {
  padding: 10px 15px;
  background: #f26522;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-login, .btn-register {
  background: transparent;
  color: #f26522;
  border: 1px solid #f26522;
  border-radius: 4px;
  padding: 7px 16px;
  margin-left: 10px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.btn-login:hover, .btn-register:hover {
  background: #f26522;
  color: #fff;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

.username {
  font-weight: 500;
  color: #222;
}

.dashboard-main {
  padding: 40px 40px 0 40px;
  background: #f6f4ec;
  min-height: 80vh;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  padding: 24px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-metric {
  align-items: flex-start;
}

.metric-orange {
  background: #fff7f0;
  color: #f26522;
}
.metric-blue {
  background: #f0f4ff;
  color: #3b82f6;
}
.metric-green {
  background: #f0fff4;
  color: #22c55e;
}
.metric-yellow {
  background: #fffbe6;
  color: #eab308;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.card-value {
  font-size: 2rem;
  font-weight: bold;
}

.dashboard-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.card-chart, .card-table {
  min-height: 260px;
}

/* Products Dashboard */
.products-dashboard {
  display: flex;
  gap: 32px;
}
.products-filter {
  width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  padding: 24px;
  margin-bottom: 32px;
  flex-shrink: 0;
  height: fit-content;
}
.filter-card {
  margin-bottom: 24px;
}
.filter-header {
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-filter li, .rating-filter li, .brand-filter li {
  margin-bottom: 8px;
}
.category-filter a, .rating-filter a, .brand-filter a {
  color: #3b3b3b;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.category-filter a.active, .category-filter a:hover,
.rating-filter a.active, .rating-filter a:hover,
.brand-filter a.active, .brand-filter a:hover {
  background: #f26522;
  color: #fff;
}
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.range-slider {
  width: 100%;
}
.slider {
  width: 100%;
}
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-inputs input {
  width: 80px;
  padding: 6px;
  border: 1px solid #ece7d8;
  border-radius: 4px;
  background: #f6f4ec;
}
.btn-apply {
  background: #f26522;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-apply:hover {
  background: #e55511;
}
.products-list-section {
  flex: 1;
  min-width: 0;
}
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.products-found {
  color: #666;
  font-size: 1rem;
}
.products-sorting label {
  margin-right: 8px;
  font-weight: 500;
}
.products-sorting select {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ece7d8;
  background: #f6f4ec;
  font-size: 1rem;
}
.products-view button {
  background: #fff;
  border: 1px solid #ece7d8;
  color: #222;
  border-radius: 4px;
  padding: 6px 10px;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.products-view button.active, .products-view button:hover {
  background: #f26522;
  color: #fff;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.loading-indicator {
  text-align: center;
  color: #f26522;
  padding: 40px 0;
}
.products-pagination ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 32px 0 0 0;
  padding: 0;
}
.products-pagination li {
  list-style: none;
}
.products-pagination a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  background: #fff;
  color: #222;
  border: 1px solid #ece7d8;
  transition: background 0.2s, color 0.2s;
}
.products-pagination a.active, .products-pagination a:hover {
  background: #f26522;
  color: #fff;
  border-color: #f26522;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .dashboard-main {
    padding: 24px 10px 0 10px;
  }
  .main-content {
    margin-left: 200px;
  }
  .sidebar {
    width: 200px;
  }
}
@media (max-width: 900px) {
  .dashboard-cards, .dashboard-widgets {
    grid-template-columns: 1fr;
  }
  .products-dashboard {
    flex-direction: column;
  }
  .products-filter {
    width: 100%;
    margin-bottom: 24px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: 100%;
    max-width: 240px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1003;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: transform 0.3s ease;
  }
  .main-content {
    margin-left: 240px;
  }
  .dashboard-header {
    padding: 16px 10px;
  }
  .dashboard-main {
    padding: 10px 0 0 0;
  }
}

/* Thêm lớp toggle cho sidebar khi màn hình nhỏ */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  background: #f26522;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  z-index: 1004;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 500px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  body.sidebar-hidden .sidebar {
    transform: translateX(-100%);
  }
  
  body.sidebar-hidden .main-content {
    margin-left: 0;
  }
  
  .sidebar {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 240px;
    transition: margin 0.3s ease;
  }
}

/* Thêm thanh cuộn cho sidebar khi nội dung dài */
.sidebar {
  overflow-y: auto;
  z-index: 1030;
  position: fixed;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.active {
  transform: translateX(0);
}

/* Thêm lớp CSS để hỗ trợ hiển thị sidebar trên thiết bị di động */
.menu-open {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1020;
  touch-action: none;
}

.sidebar-overlay.active {
  display: block;
}

/* Settings Page Styles */
.settings-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.settings-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.settings-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 20px;
}

.settings-menu li {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.settings-menu li:hover {
  background: #f5f5f5;
}

.settings-menu li.active {
  background: #fff7f0;
  color: #f26522;
  border-left: 4px solid #f26522;
}

.settings-menu li i {
  width: 20px;
  text-align: center;
}

.settings-content {
  flex: 1;
  min-width: 300px;
}

.settings-tab {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-tab.active {
  display: block;
}

.settings-section {
  margin-top: 2rem;
  border-radius: 8px;
}

/* Profile Image */
.profile-image {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 3px solid #f26522;
}

/* Form Styles */
.settings-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  border-color: #f26522;
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-left: 15px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #f26522;
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Notification Settings */
.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.notification-info {
  flex: 1;
}

.notification-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.notification-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Security Settings */
.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.security-info {
  flex: 1;
}

.security-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.security-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Appearance Settings */
.appearance-item {
  margin-bottom: 2rem;
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.appearance-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.theme-options {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.theme-option {
  flex: 1;
  min-width: 120px;
  cursor: pointer;
}

.theme-option input {
  display: none;
}

.theme-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.theme-option input:checked + .theme-label {
  border-color: #f26522;
  background: #fff7f0;
}

.theme-label i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Font Size Slider */
.font-size-slider {
  margin-top: 1.5rem;
  padding: 0 10px;
}

.font-size-preview {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #666;
}

.font-size-preview .small {
  font-size: 0.8rem;
}

.font-size-preview .medium {
  font-size: 1rem;
}

.font-size-preview .large {
  font-size: 1.2rem;
}

/* Language Settings */
.language-item {
  margin-bottom: 2rem;
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.language-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.language-item select {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.language-item select:focus {
  border-color: #f26522;
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.2);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #f26522;
  color: white;
}

.btn-primary:hover {
  background: #e55511;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    flex-direction: column;
    padding: 1rem;
  }

  .settings-sidebar {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .settings-menu {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    position: relative;
    top: 0;
  }

  .settings-menu li {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 5px;
    margin-bottom: 0;
    padding: 0.75rem 1rem;
  }

  .theme-options {
    flex-direction: column;
  }
  
  .notification-item, .security-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .notification-item .switch, .security-item .switch, 
  .security-item .btn-secondary {
    margin-top: 1rem;
    align-self: flex-start;
  }
}

/* Color Options in Settings */
.color-options {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.color-option {
  cursor: pointer;
  position: relative;
}

.color-option input {
  display: none;
}

.color-preview {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #ddd;
  transition: all 0.3s ease;
}

.color-option input:checked + .color-preview {
  transform: scale(1.1);
  border-color: #fff;
  box-shadow: 0 0 0 2px #333;
}

/* Modal styling */
.settings-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.settings-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.settings-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.settings-modal-close:hover {
  color: #333;
}

.settings-modal-body {
  margin: 20px 0;
}

.settings-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Toast notifications */
.settings-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  background-color: #4CAF50;
  color: white;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.settings-toast.error {
  background-color: #f44336;
}

/* Dark mode styling */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .settings-container,
.dark-mode .settings-tab,
.dark-mode .notification-item,
.dark-mode .security-item,
.dark-mode .appearance-item,
.dark-mode .language-item,
.dark-mode .form-control,
.dark-mode .settings-modal-content {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.dark-mode .form-control,
.dark-mode .language-item select {
  border-color: #333;
  background-color: #2d2d2d;
  color: #e0e0e0;
}

.dark-mode .settings-menu li:hover {
  background-color: #2d2d2d;
}

.dark-mode .settings-menu li.active {
  background-color: #3d3d3d;
}

.dark-mode .settings-modal-close {
  color: #e0e0e0;
}

.dark-mode .sidebar,
.dark-mode .dashboard-header,
.dark-mode footer {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.dark-mode .sidebar a,
.dark-mode .footer-section h2,
.dark-mode .footer-section p,
.dark-mode .footer-section a {
  color: #e0e0e0;
}

.dark-mode .btn-secondary {
  background-color: #2d2d2d;
  color: #e0e0e0;
  border-color: #444;
}

.dark-mode .theme-label {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

.dark-mode .color-option input:checked + .color-preview {
  box-shadow: 0 0 0 2px #fff;
}

/* Settings transitions */
.settings-tab {
  animation-duration: 0.4s;
  animation-fill-mode: both;
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.settings-tab.active {
  animation-name: fadeIn;
  animation-duration: 0.3s;
}

/* Responsive adjustments for settings page */
@media (max-width: 600px) {
  .settings-content {
    padding: 15px;
  }
  
  .settings-menu li {
    padding: 10px;
  }
  
  .profile-image img {
    width: 100px;
    height: 100px;
  }
  
  .color-preview {
    width: 30px;
    height: 30px;
  }
}