body {
    background-color: #170202;
    color: #f8fafc;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
    height: 100vh;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 20px;
}

nav {
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: #170202; */
    background: rgba(36, 6, 6, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.8px);
    -webkit-backdrop-filter: blur(2.8px);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .user-section {
    display: flex;
    align-items: center;
    position: relative;
}

nav .user-section img {
    margin-right: 15px;
}

/* nav .user-section a {
    margin-left: 15px;
} */

nav .user-section span {
    margin-right: 12px;
}

.user-section span {
    margin: 0;
    padding: 0;
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    /* border: 1px solid #3b1e1e; */
    padding: 8px 15px;
    border-radius: 5px;
    margin-right: 10px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #3b1e1e;
}

nav img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

nav .navbar-brand {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

nav .active {
    border-radius: 0;
    border-bottom: 2px solid #f16363;
    /* background-color: #3b1e1e; */
}

nav .active:hover {
    border-radius: 5px;
    border-bottom: 2px solid #f16363;
    transition: border-bottom 0.3s;
    /* background-color: #3b1e1e; */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 55px;
    right: 0;
    background-color: #050a1c;
    min-width: 180px;
    border: 1px solid #1e293b;
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px;
}

.dropdown-menu a {
    color: #f8fafc;
    text-decoration: none;
    display: block;
    padding: 10px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropdown-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 15px;
}

.dropdown-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
}

.role {
    color: #9ca3af;
    font-size: 0.9em;
}

.dropdown-divider {
    height: 1px;
    background-color: #374151;
    margin: 10px 0;
}

.dropdown-item {
    font-size: 0.9em;
}

.show {
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0px;
}

.welcome-section {
    text-align: left;
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    margin: 0;
}

h3 {
    font-size: 22px;
    text-align: center;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background-color: #1c0505;
    border: 1px solid #3b1e1e;
    border-radius: 8px;
    padding: 0px 0px 15px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-item:hover {
    background-color: #240606;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.product-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-item p {
    color: #606766;
    font-size: 14px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.product-item .infos {
    text-align: left;
    margin-left: 20px;
    margin-right: 20px;
}

.product-item a {
    color: #960303;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #960303;
    display: inline-block;
    transition: all 0.3s;
}

.product-item a:hover {
    color: #f8fafc;
    border: 1px solid #850101;
    background-color: #850101;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: background-color 0.3s;
}

.product-item a:active {
    background-color: #c44747;
}

.product-item img.product-logo {
    width: 100%;
    height: 100px;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
}

.no-products {
    text-align: center;
    font-size: 20px;
    color: #ff4d4d;
    margin-top: 40px;
}

.ph {
    font-size: 16px;
}

.btn-danger {
    background-color: #e11d48;
}

.btn-danger:hover {
    background-color: #be123c;
}