body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.test {
    background-color: #1E3A8A;
    color: #FFFFFF;

}

/* Target icons inside the navbar */
.test i {
    color: #FFFFFF;
    /* White icons */
    font-size: 1.2rem;
    /* Optional: make them a bit bigger */
}

.test i:hover {
    color: #93C5FD;
    /* Light Blue hover */
}

/* Navbar styling */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Search bar container */
.search-container {
    background-color: white;
    border-radius: 70px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Input fields and button styling */
.form-control,
.form-select {
    border-radius: 20px;
    background-color: white;
    padding: 0.6rem 1.5rem;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #80bdff;
}

.icon-input {
    position: relative;
}

.icon-input .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: gray;
}

.icon-input input {
    padding-left: 40px;
}

.btn-dark {
    border-radius: 20px;
    padding: 0.6rem 1.5rem;
}

/* Dropdown icons */
.dropdown-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 20px;
}

.dropdown-hover {
    position: relative;
    margin: 0 10px;
}

.dropdown-hover a,
.dropdown-item {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
}

.dropdown-hover:hover a,
.dropdown-item {
    font-weight: bold;

}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
}

/* Keep the dropdown menu visible when hovering over the parent or the menu */
.dropdown-hover:hover .dropdown-menu,
.dropdown-hover .dropdown-menu:hover {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
}

.dropdown-menu a:hover {
    text-decoration: none;
    background-color: #f8f9fa;
}


.ads-section {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
}

.ads-section img {
    max-width: 100%;
    height: auto;
}

.main-content {
    padding: 20px;
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: white;
}

.sidebar-menu .nav-link {
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.sidebar-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
}

/* Active link styling */
.sidebar-menu .nav-link.active {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

/* Sidebar responsive behavior */
.sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6c757d transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 10px;
}

/* Success message show after at every transcation completed */
.custom-alert {
    background: linear-gradient(135deg, #1f6bde, #8c0ff2);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Ads Post Button in the navbar styling */
.stylish-btn {
    display: inline-block;
    border: 3px solid #99cee5e7;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    width: 200px;
    text-align: center;
}

.stylish-btn:hover {
    background-color: #573ef6;
    color: #fff;
    transform: scale(1.1);

}

/* Adspost page styling */
.ap-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.ap-container h2 {
    font-weight: 600;
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
}

.ap-form-section {
    margin-bottom: 20px;
    padding: 16px;
    border: 2px solid #a09d9d;
    border-radius: 8px;
}

.ap-form-select {
    border-radius: 10px;
    background-color: white;
    padding: 0.6rem 1.5rem;
    border: 1px solid #ced4da;
    resize: none;

}

.ap-form-select:focus {
    box-shadow: none;
    border-color: #80bdff;
}

.ap-form-section h5 {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 15px;
}

.ap-form-control-search {
    position: relative;
}

.ap-form-control-search input {
    padding-right: 40px;
}

.ap-form-control-search i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #ccc;
}

.ap-photo-section {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.ap-photo-box {
    width: 100%;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    padding: 5px;
}

.ap-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.ap-photo-box.plus-box {
    background-color: #f8f9fa;
    border: 1px dashed #007bff;
    transition: background-color 0.3s ease;
}

.ap-photo-box.plus-box:hover {
    background-color: #e3f2fd;
}

.ap-photo-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ap-photo-box:hover .ap-photo-actions {
    opacity: 1;
}

.ap-action-icon {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

.ap-action-icon:hover {
    transform: scale(1.2);
    color: #007bff;
}

.ap-cover-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #007bff;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 3px;
}

.ap-char-counter {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

textarea {
    resize: vertical;
    overflow-y: auto;
}

.test1 {
    padding-left: 30px;
}

input .test2 {
    padding-left: 30px;
}

/* ads veiw details page styling */
.pw-container {
    max-width: 950px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    padding: 30px;

}


.pw-main-content,
.pw-seller-info-section,

.pw-product-info,
.pw-category-condition,
.pw-description {
    /* background-color: #d8d4d4; */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 5px;
    border: solid #555 1px;
}

.pw-action-buttons,
.pw-seller-info {
    /* background-color: #d8d4d4; */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 5px;

}

/* All website button styling */
.btn_all_button {
    background-color: #2563EB;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
    text-transform: uppercase;
}

/* Styling the button */


/* Hover effect for the button */
.btn_all_button:hover {
    background-color: #002f90;
    transform: scale(1.05);
}

/* Active effect when the button is pressed */
.btn_all_button:active {
    background-color: #002f85;
    transform: scale(0.98);
}

/* Optional: add a focus state for accessibility */
.btn_all_button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 160, 210, 0.5);
}

/* all table header color */
.table-back-color {
    background-color: #002f34;
}

.pw-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    gap: 5px;
}

.pw-seller-info-section {
    width: 250px;
    padding-left: 20px;
    margin-top: 20px;

}

.pw-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}



.pw-seller-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.pw-seller-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-right: 10px;
    margin-bottom: 50px;
}

.pw-seller-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
}

.pw-seller-details p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    color: black;
}

.pw-seller-details .icon {
    margin-right: 8px;
}

.pw-category-condition {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.pw-description {
    margin-top: 20px;
    font-size: 1rem;
    color: #555;
}



.fw-bold {
    font-weight: 600;
}


/* Landing page styling  */
.lp-products-container {
    padding: 30px;
}

.lp-product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    position: relative;
}

.lp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.lp-product-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;

}

.lp-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;

}

.lp-product-info {
    padding: 15px;
}

.lp-product-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* Show only 1 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-product-link {
    display: block;
    text-decoration: none;
    /* Remove underline from the link */
}

.lp-product-location {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.lp-product-upload-time {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
}

.lp-product-price {
    width: 100%;
    font-size: 16;
    font-weight: 600;
    color: #060cb4;
    background-color: #f1f1f1;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lp-wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.lp-wishlist-icon.active {
    color: black;
}


.note {
    background-color: #f0f8ff;
    color: #333;
    border: 2px solid #007bff;
    border-radius: 5px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Category sidebar styling */

.hover-effect:hover {
    background-color: #f1f1f1;
    border-color: #007bff;
}

.category-children {
    margin-left: 20px;
    display: none;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.category-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.category-children {
    margin-left: 20px;
    display: none;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Show 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-state {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    /* Show 1 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.spinner {
    border: 4px solid #f3f3f3; /* Light gray */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Center it */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




/* -----------------------------------------Media Queries--------------------------------------------------------- */

@media (max-width: 992px) {
    .pw-main-content {
        flex-direction: column;
        align-items: center;
    }

    .pw-seller-info-section {
        width: 100%;
        padding-left: 0;
    }


}




/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .ads-section {
        display: none;
    }

    .dropdown-icons {
        display: none;
    }

    .lp-product-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 0.8;

    }

    .main-content {
        padding: 10px;
    }



    .search-container {
        padding: 10px;
    }

    .btn-dark {
        width: 100%;
    }

    .dropdown-icons {
        margin-left: 0;
        justify-content: center;
        margin-top: 20px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1040;
        background-color: #343a40;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .ap-photo-section {
        grid-template-columns: repeat(5, 1fr);
    }

    .ap-photo-box {
        height: 100px;
    }

    .pw-main-content {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .pw-seller-info-section {
        width: 100%;
    }

    .pw-seller-logo {
        width: 80px;
        height: 40px;
    }

    .pw-action-buttons button {
        font-size: 1rem;
    }


}

@media (max-width: 576px) {
    .pw-container {
        padding: 15px;
    }

    .pw-action-buttons button {
        font-size: 0.9rem;
    }

    .pw-seller-logo {
        width: 60px;
        height: 30px;
    }

    .pw-description {
        font-size: 0.9rem;
    }

    .pw-write-message h3 {
        font-size: 1rem;
    }
}