:root {
    --bcg-color: #2d3a47;
    --primary-color: slategrey;
    --secondary-color: #ffffff;
    --border-color: #7fb7c9;
    --highlight-color: #ff9f00;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bcg-color);
    overflow: hidden;
    background-image: url('https://images.pexels.com/photos/13392275/pexels-photo-13392275.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1.2'); /* Add your image URL here */

}

.box {
    background-color: inherit;
    padding: 40px;
    width: 450px;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-header h1 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.qr-header input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    color: #333;
    transition: all var(--transition-speed);
}

/* Search bar effects */
.qr-header input:focus {
    border-color: var(--highlight-color);
    background-color: #ffffff;
    box-shadow: 0 0 8px 2px var(--highlight-color);
    transform: scale(1.02);
}

.qr-header input::placeholder {
    color: #aaa;
    font-weight: 300;
    transition: color var(--transition-speed);
}

.qr-header input:focus::placeholder {
    color: var(--highlight-color);
}

/* Search bar typing effect */
.qr-header input:focus:not(:placeholder-shown) {
    background-color: #eef5f6;
}

.qr-header select {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    color: #333;
    transition: all var(--transition-speed);
}

.qr-header select:focus {
    border-color: var(--highlight-color);
    background-color: #ffffff;
}

.qr-header label {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
}

.qr-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 30px;
    gap: 10px;
}

.qr-footer button,
.qr-footer a {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.qr-footer button:hover,
.qr-footer a:hover {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
}

.qr-body {
    display: grid;
    place-items: center;
    padding: 30px;
    margin-bottom: 20px;
}

.qr-body img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.qr-body img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 520px) {
    .box {
        width: 80%;
    }
    .qr-header input,
    .qr-header select,
    .qr-footer button,
    .qr-footer a {
        padding: 12px;
        font-size: 16px;
    }
    .qr-header h1 {
        font-size: 24px;
    }
}


/* Styling for the success modal */
.success-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: orange; /* Green background for success */
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    font-size: 16px;
    font-weight: bold;
}

/* Show the modal */
.success-modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

/* *{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
    box-sizing: border-box;
} */
/* .hero{
    width: 100%;
    min-height: 100vh;
    background: black;
    color: #525252;
} */
nav {
    background: transparent;
    width: 80%; /* Adjust the width as per your design */
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to the left */
    position: fixed; /* Fix the nav at the top */
    top: 0; /* Align to the top of the viewport */
    left: 50%; /* Center the nav horizontally */
    transform: translateX(-50%); /* Adjust the position to be perfectly centered */
    z-index: 1000; /* Ensure it appears above other content */
}

.logo {
    width: 100px;
    /* You can also adjust margin or padding if needed for positioning */
}

.user-pic{
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 30px; 
}
nav ul {
    width: 100%;
    text-align: right;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: medium;
    padding: 5px 10px; /* Add padding to create space inside the box */
    border-radius: 20px; /* Round corners */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for both transform and color */
}

nav ul li a:hover {
    background-color: #f44336; /* Red background on hover */
    color: white; /* White text color on hover */
    transform: scale(0.9); /* Zoom-out effect on text */
}
.sub-menu-wrap {
    position: absolute;
    top: 100%; /* Align it below the navigation bar */
    right: -10%;  /* Align to the right side of the parent container (the nav) */
    width: 320px; /* Adjust the width as needed */
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Smooth transition */
}

.sub-menu-wrap.open-menu{
max-height: 400px;
}
.sub-menu{
    background: #fff;
    padding: 20px;
    margin: 10px;
}
.user-info{
    display: flex;
    align-items: center;
}
.user-info h3{
    font-weight: 500;
}
.user-info img{
    width: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.sub-menu hr{
    border: 0;
    height: 1px;
    width: 100%;
    background: #ccc;
    margin: 15px 0 10px;
}
.sub-menu-link{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #525252;
    margin: 12px 0 ;
}
.sub-menu-link p{
    width: 100%;
}
.sub-menu-link img{
    width: 40px;
    background: #e5e5e5;
    border-radius: 50%;
    padding: 8px;
    margin-right:  15px;
}
.sub-menu-link span{
    font-size: 22px;
    transition: transform 0.5s;
}
.sub-menu-link:hover span{
    transform: translateX(5px)
}
.sub-menu-link:hover p{
    font-weight: 600;
}

 /* Logout Button Styles */
 #logout-button {
    position: absolute;
    top: 37px;
    right: 20px;
    background: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
}

#logout-button:hover {
    background: #e53935;
}  

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 150%; /* Position it below the Features link */
    left: 55%;
    transform: translateX(-50%); /* Centers the dropdown */
    background-color: transparent;
    width: 250px; /* Smaller width */
    /* box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); */
    z-index: 1;
    list-style: none;
    padding: 0; /* Reduce padding for a smaller block */
    margin: 0;
    text-align: -webkit-auto; /* Center the text inside the dropdown */
    border-radius: 60px; /* Rounded edges */
}

/* Dropdown Items */
.dropdown-menu li {
    padding: 0; /* Smaller padding for each item */
}

.dropdown-menu li a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 18px; /* Smaller font size */
}

/* Show the dropdown */
.show-dropdown {
    display: block;
}


footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 5px 20px; /* Reduced padding for a compact footer */
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px; /* Smaller font size */
  }
  
  footer a {
    color: #ddd;
    text-decoration: none;
    font-size: 12px; /* Smaller font size for links */
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  .social-media {
    display: flex;
    gap: 10px; /* Space between social media icons */
  }
  
  .social-media a {
    color: white;
    font-size: 18px; /* Smaller icon size */
    text-decoration: none;
  }
  
  .social-media a:hover {
    color: #4CAF50; /* Change the hover color */
  }
  