/* Auth Pages (Login & Signup) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    background-size: cover;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: none; /* Ensure no border is applied */
}

.auth-box .logo {
    margin-bottom: 1.5rem;
}

.auth-box .logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for logo */
}

.auth-box .logo h2 {
    font-size: 2rem;
    margin-top: 0.5rem;
    color: #333; /* Dark text color */
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555; /* Medium text color */
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-group input:focus {
    border-color: #007bff; /* Blue border on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); /* Subtle focus effect */
}

.auth-button {
    width: 100%;
    padding: 0.8rem;
    background: #007bff; /* Blue button */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.auth-button:hover {
    background: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666; /* Medium text color */
}

.auth-link a {
    color: #007bff; /* Blue link color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline;
}

/* Profile Page */
.profile-container {
    display: flex;
    padding: 2rem;
    gap: 2rem;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    min-height: 100vh;
}

.profile-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-picture {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-picture h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.profile-picture p {
    font-size: 0.9rem;
    color: #666;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    margin-bottom: 1rem;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem;
    border-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease;
}

.profile-menu li a.active {
    background: #007bff;
    color: white;
}

.profile-menu li a:hover {
    background: #007bff;
    color: white;
}

.profile-menu li a i {
    margin-right: 0.5rem;
}

.profile-content {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-info h3, .order-history h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.profile-form .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-form .form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.save-button {
    background: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.save-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.order-history .order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.order-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        padding: 1rem;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-content {
        width: 100%;
    }
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-item, .category-item {
        width: 100%;
    }

    .product-list, .category-list {
        gap: 1rem;
    }
}

/* Header Styles */
header {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

header .logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a.active {
    color: #ffdd57;
}

header nav ul li a:hover {
    color: #ffdd57;
}

/* Cart Container Styles */
.cart-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #007bff;
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.empty-cart img {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-cart p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Cart Items Styles */
.cart-items {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    margin-left: 1rem;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cart-item-details p {
    font-size: 1rem;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-actions button {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-item-actions button:hover {
    background: #0056b3;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control button {
    background: #007bff;
    color: white;
    padding: 0.5rem;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quantity-control button:hover {
    background: #0056b3;
}

.quantity-control span {
    font-size: 1rem;
}

/* Cart Summary Styles */
.cart-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.summary-details p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.summary-details .total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

.discount-code {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.discount-code input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.discount-code button {
    background: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.discount-code button:hover {
    background: #0056b3;
}

.shipping-options {
    margin-top: 1rem;
}

.shipping-options h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.shipping-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.shipping-options input {
    margin-right: 0.5rem;
}

.checkout-button {
    background: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.checkout-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-details {
        margin-left: 0;
        margin-top: 1rem;
    }

    .cart-item-actions {
        margin-top: 1rem;
    }

    .discount-code {
        flex-direction: column;
    }

    .discount-code button {
        width: 100%;
    }
}

/* Checkout Container Styles */
.checkout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkout-header {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #007bff;
}

.checkout-content {
    display: flex;
    gap: 2rem;
}

/* Checkout Form Styles */
.checkout-form {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkout-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Order Summary Styles */
.checkout-summary {
    width: 300px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkout-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-details p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.payment-button {
    background: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.payment-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-content {
        flex-direction: column;
    }

    .checkout-summary {
        width: 100%;
    }
}

/* Payment Container Styles */
.payment-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.payment-header {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #007bff;
}

.payment-content {
    padding: 1.5rem;
}

.payment-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Payment Methods Styles */
.payment-methods {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-method {
    flex: 1;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.payment-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.payment-method img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.payment-method p {
    font-size: 0.9rem;
    margin: 0;
}

/* Payment Form Styles */
.payment-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pay-button {
    background: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.pay-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
    }

    .payment-method {
        width: 100%;
    }
}

/* Custom Toast Styles */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Header Styles */
header {
    background: #007bff;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Back Button Styles */
.back-button a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-button a:hover {
    color: #ffdd57;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.menu {
    display: none;
    flex-direction: column;
    margin-top: 20px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu a:hover {
    background-color: #0056b3;
}

.menu.active {
    display: flex;
}

/* Navigation Bar */
.navbar {
    display: flex;
    align-items: center;
    background-color: #0078FF;
    color: #fff;
    padding: 10px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar h1 {
    flex: 1; /* Title को Center में रखने के लिए */
    text-align: center;
    margin: 0;
    font-size: 20px;
}

.back-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Admin Container */
.admin-container {
    display: flex;
    height: 100vh;
    background: #121212;
    color: #fff;
}

/* Content Styles */
.content {
    flex: 1;
    padding: 1rem;
    background: #1a1a1a;
    overflow-y: auto;
}

.content h2 {
    margin-bottom: 1rem;
    color: #fff;
}

/* Order List Styles */
.order-list {
    background: #252525;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
}

.order-item:last-child {
    border-bottom: none;
}

.actions button {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.accept-btn {
    background: #28a745;
    color: #fff;
}

.reject-btn {
    background: #dc3545;
    color: #fff;
}

/* Form Styles */
form input,
form textarea,
form button {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
}

form button {
    background: #007bff;
    cursor: pointer;
    font-weight: 600;
}

form button:hover {
    background: #0056b3;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #bbb;
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 1000;
    animation: fadeOut 3s forwards;
    display: none;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }

    .content {
        padding: 1rem;
    }

    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
    }

    .sidebar nav {
        display: none; /* Hide sidebar content by default on mobile */
    }

    .sidebar.active nav {
        display: block; /* Show sidebar content when active */
    }
}

/* Admin Container */
.admin-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #1f1f1f;
    padding: 2rem 1rem;
    height: 100vh;
    position: fixed;
    left: -250px; 
    transition: left 0.4s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.8);
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #007bff; 
}

/* Sidebar Menu */
.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 1rem;
}

.sidebar nav ul li a {
    color: #aaa;
    text-decoration: none;
    display: block;
    padding: 0.8rem;
    border-radius: 8px;
    background: #252525;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

.sidebar nav ul li a.active,
.sidebar nav ul li a:hover {
    background: #007bff;
    color: #fff;
}

/* Menu Toggle (Hamburger Icon) */
.menu-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    z-index: 1000;
}

/* Content Area */
.content {
    margin-left: 0;
    width: 100%;
    padding: 3rem;
    background: #1a1a1a;
    transition: margin-left 0.4s ease;
}

.sidebar.active ~ .content {
    margin-left: 250px;
}

/* Dashboard Content */
.content h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

/* Order List */
.order-list {
    background: #252525;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.order-item:last-child {
    border-bottom: none;
}

.actions button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.accept-btn {
    background: #28a745;
    color: #fff;
}

.reject-btn {
    background: #dc3545;
    color: #fff;
}

.actions button:hover {
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        margin-left: 0;
    }

    .sidebar.active ~ .content {
        margin-left: 0;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #ffdd57;
    color: #333;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: #f0c020;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 3rem 1rem;
    background: #f9f9f9;
}

.feature-item {
    text-align: center;
    max-width: 300px;
}

.feature-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #555;
}

/* Products Preview */
.products-preview {
    text-align: center;
    padding: 3rem 1rem;
}

.products-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.product-list {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 250px;
}

.product-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-item p {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #121212;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Background Images for Different Pages */
body.admin-dashboard {
    background-image: url('images/dashboard-bg.jpg');
}

body.admin-profile {
    background-image: url('images/profile-bg.jpg');
}

body.admin-orders {
    background-image: url('images/orders-bg.jpg');
}

body.cart {
    background-image: url('images/cart-bg.jpg');
}

body.checkout {
    background-image: url('images/checkout-bg.jpg');
}

body.login {
    background-image: url('images/login-bg.jpg');
}

body.orders {
    background-image: url('images/orders-bg.jpg');
}

body.payment {
    background-image: url('images/payment-bg.jpg');
}

body.profile {
    background-image: url('images/profile-bg.jpg');
}

body.settings {
    background-image: url('images/settings-bg.jpg');
}

body.signup {
    background-image: url('images/signup-bg.jpg');
}

/* Overlay to Darken Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: -1;
}

/* Sidebar Styles */
.sidebar {
    background-color: rgba(44, 62, 80, 0.9); /* Semi-transparent */
    color: #ecf0f1;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar:hover {
    width: 280px;
}

.sidebar h2 {
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(52, 73, 94, 0.9); /* Semi-transparent */
}

.sidebar nav a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar nav a:hover {
    background-color: rgba(52, 73, 94, 0.9); /* Semi-transparent */
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar:hover + .main-content {
    margin-left: 280px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
}

header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

/* Card Styles */
.card {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    font-size: 24px;
    color: #34495e;
}

/* Form Styles */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #2980b9;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Background Images for Different Pages */
body.admin-profile {
    background-image: url('images/background.jpeg');
}

body.admin-orders {
    background-image: url('images/background.jpeg');
}

body.cart {
    background-image: url('images/background.jpeg');
}

body.checkout {
    background-image: url('images/background.jpeg');
}

body.login {
    background-image: url('images/background.jpeg');
}

body.orders {
    background-image: url('images/background.jpeg');
}

body.payment {
    background-image: url('images/background.jpeg');
}

body.profile {
    background-image: url('images/background.jpeg');
}

body.settings {
    background-image: url('images/background.jpeg');
}

body.signup {
    background-image: url('images/background.jpeg');
}

/* Overlay to Darken Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: -1;
}

/* Sidebar Styles */
.sidebar {
    background-color: rgba(44, 62, 80, 0.9); /* Semi-transparent */
    color: #ecf0f1;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar:hover {
    width: 280px;
}

.sidebar h2 {
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(52, 73, 94, 0.9); /* Semi-transparent */
}

.sidebar nav a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar nav a:hover {
    background-color: rgba(52, 73, 94, 0.9); /* Semi-transparent */
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar:hover + .main-content {
    margin-left: 280px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-radius: 8px;
}

header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

/* Card Styles */
.card {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    font-size: 24px;
    color: #34495e;
}

/* Form Styles */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

.form-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #2980b9;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #fff;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.dashboard-container {
    text-align: center;
    background-color: #1f1f1f;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 700px;
}

h1 {
    margin-bottom: 20px;
    color: #4CAF50;
}

.stats, .orders-status {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    margin-top: 20px;
}

.stat-box, .order-box {
    background-color: #292929;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.stat-box h2, .order-box h3 {
    margin: 0;
    font-size: 18px;
    color: #4CAF50;
}

.stat-box p, .order-box p {
    margin: 5px 0 0;
    font-size: 24px;
    font-weight: bold;
}

/* Order Status Colors */
.delivered { border: 3px solid #4CAF50; }   /* Green for Delivered */
.pending { border: 3px solid #FFC107; }     /* Yellow for Pending */
.cancelled { border: 3px solid #F44336; }   /* Red for Cancelled */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Hero Section Styles */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #666;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #bdc3c7;
}