body {
    display: flex;
    font-family: Arial, sans-serif;
    margin-top: 10px;
    background-color: #f0f0f0;
   
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    align-content: flex-start;

}

.login-body {
    width: 100%;
    max-width: 400px;
}

input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #a7a7a7;
    border-radius: 7px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    margin: 5px;
    background-color: darkgreen;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #666;
}

/* Auth Section */
#auth {
    /* background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    width: 100%;
    max-width: 400px;
}

/* Dashboard Section */
#dashboard {
    width: 100%;
    max-width: 800px;
    /* margin: 20px auto; */
}

/* Account Header */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.account-info {
    /* display: flex; */
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    background: #dcdcdc;
    padding: 5px;
    border: 0.5px solid #dddddd;
    border-radius: 5px;
}

.account-info p {
    margin: 0;
    font-size: 14px;
    color: #333;
}


.account-info span {
    font-weight: bold;
}

.content-container {
   width:100%;
   float:left;
}

.renew-btn {
    background-color: #dc3545;
    padding: 3px 6px;
    font-size: 12px;
    margin-top: 15px;
}

.renew-btn:hover {
    background-color: #c82333;
}


.menu-container {
    position: relative;
    display: inline-block;
}



.user-details {
    display: flex;
    width: 100%;
    gap: 14%;
}

/* Content Box */
.content-box {
    background-color: #e9ecef; /* গ্রে কালারের ডিপ */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



/* Message Styling */
.message, #dashboard-message {
    /* margin-top: 10px; */
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.message.success, #dashboard-message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error, #dashboard-message.error {
    background-color: #f8d7da;
    color: #721c24;
}




/* Popup Message Styling */
.popup-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* অন্য কন্টেন্টের উপরে থাকবে */
    font-size: 14px;
    max-width: 500px;
    animation: slideIn 0.5s ease-in-out;
}

/* Success Type */
.popup-message.success {
    background-color: #d4edda;
    color: #155724;
}

/* Error Type */
.popup-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Slide-in Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Edit Form */
#edit-form {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Scan Container */
.scan-container {
    margin-top: 20px;
    text-align: center;

}
.AllConView{
    padding: 5px;
    border: 0.5px solid #cfcdcd;
    border-radius: 5px;
    margin-top: 0px;
    background: gainsboro;
}
.scan-container iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.menu-container {
    position: relative;
    display: inline-block;
}

.menu-btn {
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.sub-menu {
    position: absolute;
    top: 100%; /* ঠিক বাটনের নিচে */
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    min-width: 130px;
    transition: all 0.3s ease;
}

.sub-menu button {
    background: transparent;
    border: none;
    text-align: left;
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    color: #333;
}

.sub-menu button:hover {
    background-color: #f0f0f0;
}

.hidden {
    display: none;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .account-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu-btn {
        font-size: 18px;
    }

    .sub-menu {
        min-width: 140px;
        right: 0;
        left: auto;
    }

}


.navbar {
    display: flex
    ;
        gap: 10px;
        padding: 0px;
        background-color: #ddd;
        border-radius: 5px;
        overflow-x: auto;
        border: 0.5px solid #333;
        white-space: nowrap;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
        justify-content: space-evenly;
}

/* Scrollbar styling for Webkit browsers (like Chrome) */
.navbar::-webkit-scrollbar {
    height: 6px;
}

.navbar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.navbar button {
    flex: 0 0 auto;
    border: none;
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 14px;
    width: 14%;
    cursor: pointer;
}
.dashboardImg {
    max-width: 750px;
    max-width: 750px;
    max-width: 776px;
    border: 3px solid #ffffff;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .navbar {
        /* position: fixed; */
        gap: 0px;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        justify-content: space-evenly;
    }

    .user-details {
        display: flex;
        width: 100%;
        gap: 2%;
    }
    .renew-btn {
        background-color: #dc3545;
        padding: 3px 6px;
        font-size: 12px;
        margin-top: 16px;
    }
    .navbar button {
        flex: 0 0 auto;
        border: none;
        
        padding: 6px 8px;
        border-radius: 4px;
        font-size: 12px;
        cursor: pointer;
    }
    .fa {
        font-size: 18px;
    }
    .dashboardImg {
        width: 350px;
        max-width: 776px;border: 0.5px solid #dddddd;border-radius: 10px;
    }
}
