:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --text-color: #1f2937;
  --background-color: #f9fafb;
  --card-background: #ffffff;
  --success-color: #10b981;
  --danger-color: #ef4444;
}

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Hero Section */
.hero-section {
  height: 80vh;
  background-image: url('/images/homebg2.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s, background-color 0.3s;
}

.hero-button:hover {
  transform: translateY(-2px);
  background-color: var(--secondary-color);
  color: white;
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background: white;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Users Page */
.users-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.user-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.user-card:hover {
  transform: translateY(-5px);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.user-avatar i {
  color: white;
  font-size: 1.5rem;
}

.user-details h3 {
  margin: 0;
  color: var(--text-color);
}

.user-role {
  color: var(--primary-color);
  font-weight: 500;
  margin: 0.25rem 0;
}

.user-name {
  color: #666;
  margin: 0;
}

.user-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.5;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: var(--card-background) !important;
  padding: 1rem;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  background: var(--card-background);
  transition: transform 0.2s;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-2px);
}

.card-body {
  padding: 1.5rem;
}

.form-control {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.table {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.table thead th {
  background-color: #f8fafc;
  border-bottom: none;
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-card.inactive {
  opacity: 0.7;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.product-card.inactive img {
  filter: grayscale(100%);
}

.product-card.inactive .card-title {
  color: #6c757d;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}


.login-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-background);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

footer {
  background-color: var(--card-background);
  padding: 1rem 0;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  position: absolute;
  bottom: 0;
  width: 100%;
}

.alert {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.validation-summary-errors {
  color: var(--danger-color);
  margin-bottom: 1rem;
}

/* Product Page Styles */
.products-header {
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.search-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

.search-input {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
}


.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
}

.product-actions .btn {
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.product-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-actions .btn:active {
  transform: translateY(0);
}

#toast-container {
  z-index: 1050;
}

.toast {
  opacity: 0.95;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  min-width: 300px;
}

.toast .toast-body {
  padding: 1rem;
  font-weight: 500;
}

.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cart-header {
    margin-bottom: 2rem;
    text-align: center;
}

.cart-title {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateY(-2px);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cart-item-description {
    color: #666;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.btn-remove {
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.btn-remove:hover {
    transform: scale(1.1);
}

.cart-summary {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    padding: 15px;
    animation: slideIn 0.3s ease-in;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.total-amount {
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-cart i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-image {
        margin: 0 auto;
    }

    .cart-item-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Orders Page Styles */
.orders-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.orders-header {
    text-align: center;
    margin-bottom: 2rem;
}

.orders-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.empty-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-orders i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-orders h3 {
    margin-bottom: 0.5rem;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.order-card:hover {
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-status {
    background: #ffd700;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.order-items {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.order-items-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    flex: 1;
}

.item-quantity {
    color: #6c757d;
    margin: 0 1rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.items-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.order-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-details-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.order-details-header {
    margin-bottom: 2rem;
}

.order-details-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.customer-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.items-section h3 {
    margin-bottom: 1rem;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.product-pagination {
  margin: 2rem 0;
}

.pagination .page-link {
  border-radius: 0.5rem;
  margin: 0 0.25rem;
  border: none;
  color: var(--text-color);
  background-color: var(--card-background);
  transition: all 0.2s;
}

.pagination .page-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
/* Add Product Page Styles */
.add-product-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-product-header {
    text-align: center;
    margin-bottom: 2rem;
}

.add-product-header h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.add-product-form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.image-upload-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f1f5f9;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.hidden-input {
    display: none;
}

.preview-image {
    margin-top: 1rem;
}

.preview-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-details-section {
    padding: 1rem;
}

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

.product-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.product-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-upload {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .add-product-form {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Product Details Page Styles */
.product-image-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 2rem;
}

.product-image {
    max-height: 500px;
    object-fit: contain;
}

.price-tag {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.product-details {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.card {
    overflow: hidden;
    border-radius: 1rem;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

.page-header {
  margin-bottom: 2rem;
  padding: 2rem 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
}