body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #efefef;
    color: black;
    padding: 10px 20px;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar ul li {
    margin-left: 15px;
}

.navbar ul li a {
    color: black;
    text-decoration: none;
    padding: 10px;
}

.navbar ul li a:hover {
    background-color: #007bff;
    color: white;
}

.logo img {
    width: 10px; /* Adjust size as needed */
    height: auto;
}

.company-name {
    margin-left: 10px;
}

.container {
    display: flex;
    padding: 1rem;
}

.col-3 {
    width: 25%;
    padding: 1rem;
    background-color: #f1f1f1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.col-9 {
    width: 75%;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#category-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#category-filters button {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

#category-filters button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product {
    background-color: white;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product p {
    font-size: 1rem;
    color: #666;
}

.product .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    margin: 0.5rem 0;
}

.product a {
    text-decoration: none;
    color: #007bff;
}

.product a:hover {
    text-decoration: underline;
}

.header-title {
    text-align: center;
    padding: 20px;
    background-color: #007bff;
    color: white;
}

.header-title h1 {
    margin: 0;
}

/* Product Detail Styles */
.product-detail-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.product-detail-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    width: 25%; /* Adjust the image width */
}

.product-detail {
    width: 70%; /* Adjust the detail width */
    padding-left: 2rem;
    box-sizing: border-box;
}

.product-detail h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.product-detail p {
    font-size: 1.2rem;
    color: #666;
}

.product-detail .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin: 0.5rem 0;
}

.product-detail .rating {
    font-size: 1.2rem;
    color: #555;
}

.product-detail .category {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

.product-detail button {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.product-detail button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: #efefef;
    color: black;
    padding: 20px;
    text-align: center;
}

footer .icons {
    display: flex;
    gap: 10px;
}

footer .icons img {
    width: 30px;
    height: 30px;
}

footer .copy {
    background-color: #ddd;
    padding: 10px;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        align-items: center;
    }

    .product-detail-container img {
        width: 100%; /* Make image full width */
    }

    .product-detail {
        padding-left: 0;
        width: 100%;
        padding-top: 1rem;
    }
}


/* new  */


.user-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.user-card {
    background-color: white;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center; /* Center the image and text */
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.user-img {
    width: 100px; /* Set the desired width */
    height: 100px; /* Set the desired height */
    border-radius: 50%; /* Make the image circular */
    margin-bottom: 1rem; /* Space between the image and the text */
}




/* Login Container Styles */
.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: 100px auto;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-top: 10px;
}



/* Add User Form Styles */
.add-user-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    background-color: #fff;
    padding: 80px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    max-width: 500px;
    text-align: center;
}
.add-user-container h2 {
    margin-bottom: 10px;
}
.add-user-container label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
}
.add-user-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.add-user-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.add-user-container button:hover {
    background-color: #0056b3;
}
