body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('/images/3d.jpg'); /* Ensure the URL is correct */
    background-size: cover;
    background-color: black;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This keeps the background fixed */
    color: #ffffff; /* Text color to white */
}

html{
    scroll-behavior: smooth;
}
.navbar {
    position: fixed; /* Fixed position */
    width: 100%; /* Full width */
    top: 0; /* Stick to the top */
    z-index: 1000;    
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Ensure padding and border are included in element's total width and height */
    padding: 10px;
}

.navbar .brand {
    display: flex;
    align-items: center; /* Center align items vertically */
}

.navbar img {
    width: 35px;
    margin-right: 10px; /* Space between image and text */
}

.search-container {
position: relative;
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
width: 50%;
}

.search-box {
border: none;
padding: 8px 12px 8px 32px; /* Adjust padding to make space for the icon */
font-size: 16px;
border-radius: 20px;
background: transparent;
color: #fff;
width: 100%;
text-align: center;
}

.search-icon {
position: absolute;
left: 6px;
top: 8px;
font-size: 16px;
color: #fff;
}
.log {
display: flex;
align-items: center; /* Center align items vertically */
flex-shrink: 0; /* Prevent shrinking */
}

.log a {
text-decoration: none; /* Remove underline */
color: #fff; /* Set color to white */
}
.navbar a {
    text-decoration: none; /* Remove underline */
    color: #fff; /* Set color to white */
}

.container {
    max-width: auto;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: calc(40px);
}
.no-product-card {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease; /* Smooth transition for box-shadow */
    color: #ffffff; /* White text */
    transition: transform 0.3s ease;
    justify-content: center;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease; /* Smooth transition for box-shadow */
    color: #ffffff; /* White text */
    transition: transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* New box-shadow on hover */
    transform: scale(1.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-card h2,
.product-card p {
    text-overflow: ellipsis;
}

.product-card h2 {
    text-align: right;
    font-size: 100%;
    margin-bottom: 10px;
}

.product-card p {
    color: #00ff00; /* Change to a more visible green on dark background */
    font-weight: bold;
    margin: 1px;
    font-size: 100%;
    text-align: right;
}

.product-card .price-container {
    display: flex;
    align-items: center;
    justify-content: right; /* Adjust this to position the items */
    margin-top: 10px; /* Adjust this value as needed */
}

.product-card .price-container p {
    margin: 0; /* Remove default margin */
}

.product-card .edit-button {
    background-color: rgba(52, 152, 219, 0.7);
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px; /* Add margin-left to create space between price text and button */
}

.product-card .edit-button:hover {
    background-color: rgba(41, 128, 185, 0.7);
}

.product-card-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card-form form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    border-radius: 10px;
    margin-top: 10px;
    color: #ffffff; /* White text */
}

.product-card-form label {
    display: inline-block;
    width: 250px;
    font-size: larger;
    text-align: right;
    margin-bottom: 10px;
}

.product-card-form input {
    width: calc(100%);
    margin-bottom: 10px; /* Add space between input fields */
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    color: #ffffff; /* White text */
    border-radius: 15px;
}

.product-card-form button {
    margin-top: 10px;
}

.product-card-form .form-group {
    margin-bottom: 10px;
}

.product-card-form .form-group label {
    display: inline-block;
    margin-bottom: 5px;
    text-align: right; /* Align labels to the right */
}

.product-card-form .form-group select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    color: #ffffff; /* White text */
    text-align: right;
}

/* Add Product Card */
.add-product-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    display: none;
    width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Transparent border */
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease; /* Smooth transition for box-shadow */
    text-align: center;
    height: min-content;
    color: #ffffff; /* White text */
    margin-top: 60px;
}

.add-product-card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* New box-shadow on hover */
}

.add-product-card button {
    background-color: rgba(52, 152, 219, 0.7);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for background-color */
}

.add-product-card button:hover {
    background-color: rgba(41, 128, 185, 0.7); /* Darker background color on hover */
}
.add-product-card input{
    text-align: center;
}

#error-message {
    text-align: center;
    color: #ff0000; /* Red color for error message */
}

h1 {
    margin: 70px auto 20px;
    text-align: center; /* Center the text horizontally */
}

.login-form {
    justify-content: center;
}

.loading {
    --uib-size: 80px;
    --uib-color: white;
    --uib-speed: 1.4s;
    --uib-stroke: 5px;
    --uib-bg-opacity: .1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--uib-stroke);
    width: var(--uib-size);
    border-radius: calc(var(--uib-stroke) / 2);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--uib-color);
    opacity: var(--uib-bg-opacity);
    transition: background-color 0.3s ease;
}

.loading::after {
    content: '';
    height: 100%;
    width: 100%;
    border-radius: calc(var(--uib-stroke) / 2);
    animation: zoom var(--uib-speed) ease-in-out infinite;
    transform: translateX(-100%);
    background-color: var(--uib-color);
    transition: background-color 0.3s ease;
}

@keyframes zoom {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 132, 255,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    text-align: right;
    direction: rtl;
    text-shadow: 0 0 0.1em #0084ff
}

.chat-input {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input textarea {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 0 0 0 10px;
    text-align: right;
    direction: rtl;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-input button {
    background-color: #0084ff4d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 0 0 10px 0;
    cursor: pointer;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.hamburger div {
    width: 25px;
    height: 5px;
    background-color: white;
    margin: 3px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: transform 0.5s ease, transform 0.5s ease;
    transform: translateX(+100%);
}

.nav-menu.show {
    display: flex;
    transform: translateX(0);
}
            
.nav-menu a {
    padding: 10px;
    text-decoration: none;
    color: white;
    text-align: center;
}
.nav-menu-pc {
    display: flex;
    justify-content: center; /* Center the menu items */
    align-items: center; /* Center align items vertically */
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    position: fixed; /* Fix the menu at the top */
    top: 50px; /* Adjust top position to be below the navbar */
    z-index: 999; /* Ensure it's above other elements */
    backdrop-filter: blur(10px); /* Blur background */
    color: #fff;
}

.nav-menu-pc a {
    color: #fff; /* White text color */
    padding: 10px 15px; /* Padding around links */
    text-decoration: none; /* Remove default underline */
    position: relative; /* Needed for the underline */
    transition: color 0.3s ease; /* Smooth transition for color */
    font-weight: bold;
}

.nav-menu-pc a::after {
    content: ''; /* Empty content for the pseudo-element */
    position: absolute; /* Position it absolutely */
    left: 0;
    bottom: -5px; /* Position below the text */
    width: 0; /* Start with no width */
    height: 2px; /* Height of the underline */
    background-color: green; /* Green underline color */
    transition: width 0.3s ease; /* Smooth transition for width */
}

.nav-menu-pc a:hover::after,
.nav-menu-pc a.active::after {
    width: 100%; /* Full width on hover or active */
}

.nav-menu-pc a:hover,
.nav-menu-pc a.active {
    color: #00ff00; /* Optional: change text color on hover or active */
}
@media (max-width: 768px) {
    .navbar .brand div {
        display: none; /* Hide the text on mobile devices */
    }

    .brand {
        width: 40px;
    }

    .navbar {
        flex-direction: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }

    .navbar .log {
    display: none;
    width: 100%;
    justify-content: space-between;
    }

    .search-container{
        width: 230px;
    }

    .container {
        width: 100%;
        padding-inline-start: 0svh;
        padding-inline-end: 0svh;
        margin-top: calc(15px);
    }
    .product-card {
        width: 118px; /* 2 per row with margin adjustment */
        height: auto;
    }
    .product-card h2,
    .product-card p {
        text-overflow: ellipsis;
    }
    .product-card h2 {
        text-align: right;
        font-size: 80%;
        margin-bottom: 10px;
    }
    .product-card p {
        color: #00ff00; /* Change to a more visible green on dark background */
        font-weight: bold;
        margin: 1px;
        font-size: 11px;
        text-align: right;
    }
    .hamburger{
        display: flex;
    }
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        transition: transform 0.5s ease, transform 0.5s ease;
        transform: translateX(+100%);
    }
    
    .nav-menu.show {
        display: flex;
        transform: translateX(0);
    }
                
    .nav-menu a {
        padding: 10px;
        text-decoration: none;
        color: white;
        text-align: center;
        text-shadow: 0 0 0.2em #ffffff
    }
    
    
    .nav-menu a:hover::after,
    .nav-menu a.active::after {
        width: 100%; /* Full width on hover or active */
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #00ff00; /* Optional: change text color on hover or active */
    }
    .chat-box {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 300px;
        height: 400px;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        display: none;
        flex-direction: column;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    .nav-menu-pc{
        display: none;
    }
}