/* Base Styles */
:root {
    --primary-color: #20192585;
    --secondary-color: #862c6864;
    --dark-gray: #141823ab;
    --light-gray: #9f9696;
    --white: #ffffff;
    --black: #000000;
    --vip-color:  #ecc94b;;
    --top-color: #43a047;
    --premium-color: #9f7aea;
    --urgent-color: #fb8c00;
    --featured-color: rgb(23, 182, 47);
    --promoted-color: rgba(255, 0, 0, 0.61);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
    .logo-img {
        height: 45px; /* Adjust size */
        width: auto; /* Maintain aspect ratio */
        vertical-align: middle; /* Align with the heart icon */
    }
    
  



/* Mobile Menu Toggle (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 5px;
}

/* Mobile Navigation (hidden by default) */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
}

/*.mobile-nav .dropdown {
    width: 100%;
}

.mobile-nav .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
}*/

/* Responsive Styles */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: none; /* Will be toggled by JavaScript */
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}

/* --- Dropdown Content Area --- */
.mobile-nav .dropdown-content {
    display: none; /* Hidden by default */
    background-color: #f7f7f7;
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    margin-top: -2px; /* Overlap slightly for a seamless look */
    border: 1px solid #e0e0e0;
    border-top: none;
    overflow: hidden;
}

.mobile-nav .dropdown.active .dropdown-content {
    display: block; /* Show when active */
}

/* --- Enhanced Text for Dropdown Links --- */
.mobile-nav .dropdown-content a {
    display: flex; /* Use flexbox for icon alignment */
    align-items: center;
    padding: 12px 20px;
    font-size: 15px;
    color: #444; /* Slightly softer text color */
    font-weight: 500;
}

.mobile-nav .dropdown-content a i {
    margin-right: 12px; /* Space between icon and text */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
    color: #777;
}

.mobile-nav .dropdown-content a:hover {
    background-color: rgba(32, 25, 37, 0.05); /* Subtle hover effect */
    color: var(--primary-color);
}
/*end of stlye dropwon*/


/* --- Main container for the mobile menu's content --- */
.mobile-nav-content {
    padding: 10px; /* Reduced padding for a tighter look */
}

/* --- Dropdown Container --- */
.mobile-nav .dropdown {
    margin-bottom: 8px; /* Space between dropdowns */
}

/* --- Dropdown Button Styling --- */
.mobile-nav .dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    background-color: transparent; /* Cleaner look */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600; /* Bolder for better hierarchy */
    font-size: 16px;
    letter-spacing: 0.5px; /* Subtle spacing for readability */
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Dropdown Arrow Icon --- */
.mobile-nav .dropbtn::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #888;
}

/* --- Styles for when the dropdown is open --- */
.mobile-nav .dropdown.active .dropbtn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.mobile-nav .dropdown.active .dropbtn::after {
    transform: rotate(180deg);
    color: white;
}

/* end of stlye*/

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    color: var(--primary-color);
}

.logo i {
    margin-left: 5px;
    color: var(--secondary-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/*.dropbtn {
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: var(--dark-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
}

.dropdown:hover .dropdown-content {
    display: block;
} */

.account {
    color: var(--dark-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.publish-btn {
    background-color:rgb(221, 20, 20);;
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* Search Section */
.search-section {
    background-color: var(--primary-color);
    padding: 20px;
    color: var(--white);
}

.search-container {
    max-width: 100%;
    margin: 0 auto;
}

.search-container h1 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-box input, .search-box select {
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.search-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 0;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle {
    position: relative;
    width: 50px;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
    background: #ccc;
    outline: none;
    border-radius: 20px;
    transition: .3s;
    cursor: pointer;
}

.toggle:checked {
    background: var(--primary-color);
}

.toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: var(--white);
    transition: .3s;
}

.toggle:checked::before {
    left: calc(100% - 22px);
}

.filter-toggle label {
    font-size: 14px;
    color: var(--white);
    cursor: pointer;
}

/* Ads Container */
.ads-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 100%;
}
/* Tablet View (2 columns) */
@media (max-width: 900px) {
    .ads-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile View (1 column) */
@media (max-width: 600px) {
    .ads-container {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
    
    .photo-preview {
        height: 180px;
    }
}
/* Large Desktop View (more columns when space available) */
@media (min-width: 1400px) {
    .ads-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}
.ad-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-card.VIP {
    border-left: 5px solid var(--vip-color);
}
.ad-card.Featured {
    border-right: 5px solid var(--featured-color);
}

.ad-card.top {
    border-left: 5px solid var(--top-color);
}

.ad-card.Premium {
    border-left: 5px solid var(--premium-color);
}

.ad-card.urgent {
    border-left: 5px solid var(--urgent-color);
}

.photo-preview {
    position: relative;
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 auto;
}

.photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
}

.tag.VIP {
    background-color: var(--vip-color);
}

.tag.top {
    background-color: var(--top-color);
}

.tag.Premium {
    background-color: var(--premium-color);
}

.tag.urgent {
    background-color: var(--urgent-color);
}

.ad-content {
    padding: 15px;
}

.ad-title {
    color: #1a73e8;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.author-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.author-info i {
    margin-right: 5px;
}

.category-tag {
    background-color: #e0e0e0;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
}

.ad-description {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

.ad-description p {
    margin-bottom: 5px;
}
/* Make the anchor tag behave like a block element */
.ad-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Optional: Add cursor pointer to indicate clickability */
.ad-card {
    cursor: pointer;
}

/* Ensure inner elements maintain their styles */
.ad-card h3 {
    color: #1a73e8;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Allow text selection in content */
.ad-content {
    user-select: text;
    -webkit-user-select: text;
    flex: 1;
}
/* New Badge Styles for Promoted/Featured */

.badge-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column; /* This stacks the badges vertically */
    align-items: flex-end;   /* This keeps them right-aligned */
    gap: 5px;                /* This adds a small space between them */
    z-index: 5;              /* Ensures badges are above the image */
}

/* Common style for all badges */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
    pointer-events: auto; /* Make badges clickable if needed */
}

/* Specific color for the promoted badge */
.badge.promoted {
    background-color: var(--promoted-color);
}

/* Specific color for the featured badge */
.badge.featured {
    background-color: var(--featured-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.pagination button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#page-indicator {
    font-weight: bold;
}

/* Footer Styles */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 30px 20px 20px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--white);
    width: 35px;
    height: 35px;
    border: 1px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--dark-gray);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
    font-size: 14px;
}

.designer {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}
// footer aditional settings 
/* Footer modifications */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.links-section {
    order: 1;
}

.share-section {
    order: 2;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn i {
    font-size: 16px;
}

.facebook { background-color: #3b5998; }
.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }
.instagram { background-color: #E1306C; }
.copy-link { 
    background-color: #666;
    border: none;
    cursor: pointer;
}

.copy-link:hover, .share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Mobile view */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .links-section {
        order: 1;
    }
    
    .share-section {
        order: 2;
    }
    
    .footer-section {
        width: 100%;
        text-align: left;
    }
}
#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

#scroll-top:hover {
    background-color: var(--secondary-color);
}

/* Responsive Design */
@media (min-width: 768px) {
    .search-box {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .search-box input {
        flex: 2;
    }
    
    .search-box select {
        flex: 1;
    }
    
    .search-btn {
        flex: 1;
    }
    
    .ads-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .ads-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-gray);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.auth-btn:hover {
    background-color: var(--secondary-color);
}

.divider {
    margin: 20px 0;
    color: #777;
    position: relative;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
    margin: auto 10px;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

.auth-link {
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Google OAuth Button Override */
.g_id_signin {
    margin: 0 auto;
    width: 100% !important;
}
/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input {
    margin: 0;
}

/* Input with Icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: #666;
}

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

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    user-select: none;
    color: #666;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.toggle-password:hover {
    color: #333;
}

/* Ensure the password field doesn't overlap with the icon */
#password {
    padding-right: 40px !important;
}

/* Checkbox */
.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

/* Split Name Fields */
.name-fields {
    display: flex;
    gap: 15px;
}

.half-width {
    flex: 1;
}

.required-field input:invalid {
    border-color: var(--vip-color) !important;
}

.required {
    color: var(--vip-color);
}

/* reCAPTCHA Adjustments */
.g-recaptcha {
    margin: 15px 0;
    transform: scale(0.95);
    transform-origin: left;
}
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #111;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .login-box {
        padding: 20px;
    }
}
.ad-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.username {
    margin-right: 8px;
    font-weight: 500;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 16px 0;
    margin-top: 8px;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

/* Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    padding: 0 16px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.profile-info h4 {
    margin: 0;
    font-size: 16px;
    color: var(--dark-gray);
}

.view-profile {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.view-profile:hover {
    text-decoration: underline;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-gray);
    transition: transform 0.2s;
}

.quick-action:hover {
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.action-icon i {
    color: var(--primary-color);
}

.quick-action span {
    font-size: 12px;
    text-align: center;
}

/* Menu Items */
.menu-items {
    padding: 0 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    text-decoration: none;
    color: var(--dark-gray);
    border-radius: 4px;
    transition: all 0.2s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: #666;
}

.menu-item.highlight {
    background-color: rgba(0, 123, 255, 0.1);
    color: #057cfc;
}

.menu-item.highlight i {
    color: #007bff;
}

.dropdown-item {
    padding: 8px;
}

.dropdown-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-left: 8px;
}

/* Logout Section */
.logout-section {
    padding: 8px 16px 0;
    margin-top: 12px;
    border-top: 1px solid #eee;
}

.logout-btn {
    display: flex;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    color: #dc3545;
    border-radius: 4px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.logout-btn i {
    margin-right: 12px;
}

/* Upload Page Styles */
.upload-container {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

.upload-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 800px;
}

.upload-card h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 64, 129, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

#file-name {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .user-dropdown-content {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
}

/* Logout Confirmation Dialog Styles */
.logout-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.logout-confirm-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
    min-width: 250px;
}

.logout-confirm-buttons {
    margin-top: 15px;
}

.logout-confirm-no {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.logout-confirm-yes {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}
 /*previous end*/
 
/* Main Layout */
.info-container {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* Navigation Sidebar */
.info-nav {
    width: 250px;
    background: var(--dark-gray);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 100;
}

.info-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.info-nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.info-nav-item.active {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid var(--primary-color);
}

.info-nav-item i {
    margin-right: 15px;
    font-size: 24px;
}

/* Content Area */
.info-content {
    flex: 1;
    padding: 30px;
    background: var(--light-gray);
    min-height: calc(100vh - 120px);
}

.content-section {
    display: none;
    animation: fadeIn 0.5s;
}

.content-section.active {
    display: block;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

@media (max-width: 992px) {
    .info-container {
        position: relative;
    }
    
    .info-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 280px;
        height: calc(100vh - 60px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 500;
    }
    
    .info-nav.open {
        transform: translateX(0);
    }
    
    .info-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    body.nav-open::after {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 400;
    }
}

/* Success Message Overlay */
.overlay-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay-message.active {
    opacity: 1;
    visibility: visible;
}

.message-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.overlay-message.active .message-box {
    transform: translateY(0);
}

.message-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.message-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.message-content {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.5;
}

.message-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.message-button:hover {
    background-color: var(--secondary-color);
}

/* Response Message Overlay System */
.response-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.response-overlay.active {
    opacity: 1;
    visibility: visible;
}

.response-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.response-overlay.active .response-box {
    transform: translateY(0);
}

.response-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.response-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.response-content {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 25px;
    line-height: 1.5;
    white-space: pre-line;
}

.response-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.response-button {
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    min-width: 120px;
}

/* Success Styling */
.response-success .response-icon {
    color: var(--top-color); /* Green */
}

.response-success .response-title {
    color: var(--top-color);
}

.response-success .response-button {
    background-color: var(--top-color);
    color: white;
}

.response-success .response-button:hover {
    background-color: #2e7d32;
}

/* Error Styling */
.response-error .response-icon {
    color: var(--vip-color); /* Red */
}

.response-error .response-title {
    color: var(--vip-color);
}

.response-error .response-button {
    background-color: var(--vip-color);
    color: white;
}

.response-error .response-button:hover {
    background-color: #c62828;
}

/* Warning Styling */
.response-warning .response-icon {
    color: var(--premium-color); /* Orange */
}

.response-warning .response-title {
    color: var(--premium-color);
}

.response-warning .response-button {
    background-color: var(--premium-color);
    color: white;
}

.response-warning .response-button:hover {
    background-color: #e65100;
}

/* Info Styling */
.response-info .response-icon {
    color: var(--primary-color); /* Pink */
}

.response-info .response-title {
    color: var(--primary-color);
}

.response-info .response-button {
    background-color: var(--primary-color);
    color: white;
}

.response-info .response-button:hover {
    background-color: var(--secondary-color);
}



/* Additional CSS for the custom selects and dropdowns */
.dropdown-content, .user-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content.show, .user-dropdown-content.show {
    display: block;
}

.menu-item.dropdown-item {
    position: relative;
    cursor: pointer;
}

.menu-item.dropdown-item select {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.custom-select-display {
    pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .dropdown-content, .user-dropdown-content {
        position: static;
        box-shadow: none;
    }
    
    .menu-item.dropdown-item select {
        position: static;
        opacity: 1;
        width: auto;
    }
    
    .custom-select-display {
        display: none;
    }
}

/* Alternative more prominent style */
.reset-btn {
    padding: 8px 16px;
    background-color: #862c6864;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reset-btn:hover {
    background-color: #862c6864;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.reset-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.reset-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.4);
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.pagination li {
    display: inline-block;
}

.pagination-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    min-width: 32px;
}

.pagination-btn:hover:not(.disabled) {
    background: #f0f0f0;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: inline-block;
    padding: 5px 10px;
}
// price section styles
.price-section-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Mobile search styles */
.mobile-search-container {
    padding: 10px 15px;
    display: none; /* Hidden by default, shown only in mobile */
}

.mobile-search-form {
    display: flex;
    width: 100%;
}

.mobile-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.mobile-search-btn {
    padding: 8px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.mobile-search-btn i {
    color: #555;
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-search-container {
        display: block;
    }
}

 // Price Grid Validation Styles */
.price-grid.invalid {
    border: 2px solid #F44336;
    border-radius: 6px;
    padding: 10px;
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Age verification style */
#age-verification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none; /* Allows clicks to pass through to buttons */
}

#age-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 9998;
}

.age-modal-box {
  background:rgba(126, 214, 189, 0.97);
  padding: 30px 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  pointer-events: auto; /* Re-enable clicks for the modal content */
}

/* Rest of your CSS remains the same */
.modal-buttons {
  display: flex;
  justify-content: space-around;
}

.age-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

.age-btn-yes {
  background-color: #28a745;
  color: white;
}

.age-btn-yes:hover {
  background-color: #218838;
}

.age-btn-no {
  background-color: #dc3545;
  color: white;
}

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

body.age-locked {
  overflow: hidden;
}


.ad-card:nth-child(1) { animation-delay: 0.1s; }
.ad-card:nth-child(2) { animation-delay: 0.2s; }
.ad-card:nth-child(3) { animation-delay: 0.3s; }
.ad-card:nth-child(4) { animation-delay: 0.4s; }
.ad-card:nth-child(5) { animation-delay: 0.5s; }
.ad-card:nth-child(6) { animation-delay: 0.6s; }
.ad-card:nth-child(7) { animation-delay: 0.7s; }
.ad-card:nth-child(8) { animation-delay: 0.8s; }
.ad-card:nth-child(9) { animation-delay: 0.9s; }
.ad-card:nth-child(10) { animation-delay: 1.0s; }
.ad-card:nth-child(11) { animation-delay: 1.1s; }
.ad-card:nth-child(12) { animation-delay: 1.2s; }
.ad-card:nth-child(13) { animation-delay: 1.3s; }
.ad-card:nth-child(14) { animation-delay: 1.4s; }
.ad-card:nth-child(15) { animation-delay: 1.5s; }
.ad-card:nth-child(16) { animation-delay: 1.6s; }
.ad-card:nth-child(17) { animation-delay: 1.7s; }
.ad-card:nth-child(18) { animation-delay: 1.8s; }
.ad-card:nth-child(19) { animation-delay: 1.9s; }
.ad-card:nth-child(20) { animation-delay: 2.0s; }