body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar {
    background: #2b2b2b;
    height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed:hover {
    width: 250px;
}

.sidebar.collapsed:hover .logo h4 {
    transform: translateX(0);
    opacity: 1;
}

.sidebar.collapsed:hover .sidebar-nav a span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar .logo {
    height: 89px;
    padding: 0 20px;
    background: radial-gradient(circle at center, #2b2b2b 0%, #1a1a1a 100%);
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.sidebar .logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.053) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    pointer-events: none;
}

.sidebar .logo .logo-link {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    width: 100%;
}

.sidebar .logo .logo-link:hover {
    color: #fff;
}

.sidebar .logo .logo-link h4 {
    margin: 0;
    color: inherit;
}

.sidebar .logo h4 {
    color: #fff;
    margin: 0;
    font-weight: 300;
    white-space: nowrap;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar .logo h4 i {
    color: #ff0000;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.sidebar .logo h4 span {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.collapsed .logo h4 {
    justify-content: center;
    transform: none;
    opacity: 1;
}

.sidebar.collapsed .logo h4 span {
    opacity: 0;
    transform: translateX(20px);
    position: absolute;
}

.sidebar.collapsed:hover .logo h4 {
    justify-content: flex-start;
}

.sidebar.collapsed:hover .logo h4 span {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.sidebar.collapsed:hover .logo h4 strong {
    font-weight: 500;
}

.sidebar-nav {
    padding: 10px;
    margin: 0;
    list-style: none;
    background: #2b2b2b;
}

.sidebar-nav li {
    margin-bottom: 12px;
}

.sidebar-nav li:last-child {
    margin-bottom: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    background: linear-gradient(to bottom, #708846 0%, #546734 100%);
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-nav a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-nav a:hover {
    background: linear-gradient(to bottom, #7f9b50 0%, #657a3b 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-nav a:hover::before {
    opacity: 1;
}

.sidebar-nav a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, #5e7e2f 0%, #4d6a24 100%);
    color: #fff;
    box-shadow: 0 0 0 2px #7ebd3a, 0 4px 24px rgba(0, 0, 0, 0.18),
        0 1.5px 8px 0 rgba(94, 126, 47, 0.15) inset;
    font-weight: 700;
    border-left: 4px solid #a6e13a;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav a.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
    pointer-events: none;
    box-shadow: 0 0 8px 2px #a6e13a55, 0 2px 8px 0 rgba(94, 126, 47, 0.1) inset;
    opacity: 0.5;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.sidebar-nav a.active:hover {
    box-shadow: 0 0 0 3px #a6e13a, 0 6px 28px rgba(0, 0, 0, 0.22),
        0 2px 12px 0 rgba(94, 126, 47, 0.18) inset;
    border-left: 4px solid #d4ff8f;
    background: linear-gradient(90deg, #6e9937 0%, #5a7d2b 100%);
}

.sidebar-nav a i {
    margin-right: 10px;
    font-size: 14px;
    min-width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-nav a:hover i {
    transform: scale(1.1);
}

.sidebar-nav a span {
    position: relative;
    z-index: 1;
}

.sidebar.collapsed .sidebar-nav a span {
    opacity: 0;
    transform: translateX(20px);
}

.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-content.expanded {
    margin-left: 70px;
}

.content-wrapper {
    flex: 1 0 auto;
    padding: 20px;
}

footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #f1f1f1;
    padding: 10px 0;
    margin-top: auto;
    border-top: 1px solid #e1e1e1;
}

.footer-links {
    margin-bottom: 0px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 0 2px;
    position: relative;
}

.footer-links a:not(:last-child)::after {
    content: ",";
    right: 0;
    color: #666;
}

.copyright {
    color: #666;
    font-size: 12px;
    margin-bottom: 0px;
}

.copyright a {
    color: #666;
    text-decoration: none;
}

.tagline {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.navbar {
    height: 89px;
    background: #eaeaea;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.navbar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
    padding-right: 1.5rem;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #34495e;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-left: 0;
}

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

.sidebar:not(.collapsed) ~ .main-content .toggle-btn {
    left: 270px;
}

.sidebar.collapsed ~ .main-content .toggle-btn {
    left: 90px;
}

.sidebar.collapsed:hover ~ .main-content .toggle-btn {
    left: 270px;
}

.btn-limegreen {
    background-color: #6d8b27;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-limegreen::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1;
}

.btn-limegreen:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-limegreen:hover {
    background: linear-gradient(45deg, #6d8b27, #a2c948);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    color: #fff;
}

.btn-limegreen:active {
    background-color: #5b761e;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-orange {
    background-color: #ff6700;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-orange::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1;
}

.btn-orange:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-orange:hover {
    background: linear-gradient(45deg, #ff6700, #ff8c42);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    color: #fff;
}

.btn-orange:active {
    background-color: #e65c00;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn i {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px !important;
    }

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

    .sidebar.collapsed .logo h4,
    .sidebar.collapsed .sidebar-nav a span {
        transform: translateX(0);
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        min-height: 100vh;
    }

    .navbar {
        height: 60px;
    }

    .navbar-left {
        padding-left: 0.5rem;
    }

    .navbar-right {
        padding-right: 0.5rem;
        gap: 5px;
    }

    .toggle-btn {
        font-size: 20px;
        padding: 8px;
    }

    .sidebar:not(.collapsed) ~ .main-content .toggle-btn,
    .sidebar.collapsed ~ .main-content .toggle-btn,
    .sidebar.collapsed:hover ~ .main-content .toggle-btn {
        left: 20px;
    }

    .btn-limegreen,
    .btn-orange {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .sidebar .logo {
        height: 60px;
    }

    .sidebar .logo h4 {
        justify-content: flex-start;
        transform: none;
        opacity: 1;
    }

    .sidebar .logo h4 span {
        opacity: 1;
        transform: none;
        position: relative;
    }

    .sidebar.collapsed .logo h4,
    .sidebar.collapsed .logo h4 span {
        opacity: 1;
        transform: none;
        position: relative;
    }

    .sidebar.collapsed .logo h4 {
        justify-content: flex-start;
    }
}

.mobile-navbar {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    /* ...other styles... */
}
.mobile-navbar .logo {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    /* ...other styles... */
}
.mobile-navbar .logo h4 {
    line-height: 60px !important;
    font-size: 1.4rem;
    margin: 0;
    /* ...other styles... */
}

.card-header {
    background: linear-gradient(
        to bottom,
        rgb(230, 230, 230),
        rgb(187, 187, 187)
    );
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.card-header h3 {
    margin: 0;
    color: #3d3d3d;
    font-size: 16px;
    font-weight: bold;
}

.required::before {
    content: "*";
    color: red;
    font-weight: bold;
}

.btn-custom-green {
    background: linear-gradient(
        to bottom,
        rgb(143, 178, 89),
        rgb(102, 138, 60)
    );
    border: 1px solidrgb(98, 133, 49);
    color: white;
    padding: 5px 19px;
    font-size: 16px;
    border-radius: 3px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-custom-green:hover {
    background: linear-gradient(to bottom, #a1bf71, #85a85e);
    border-color: #759c3d;
    color: white;
}

/* Modern Input Styles */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #a0aec0;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

.form-control:hover {
    background-color: #fff;
}

/* Error state */
.form-control.is-invalid {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* Success state */
.form-control.is-valid {
    border-color: #48bb78;
    background-color: #f0fff4;
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.15);
}

.inputfieldpadding {
    padding: 4px 0 4px 0;
}
.inputfield {
    color: #3d3d3d;
    width: 100%;
    font-size: 13px;
    background: url(../img/form.png) 0 0 repeat-x;
    padding: 5px 5px 6px;
    border: 1px #acacac solid;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.inputfieldpostanad {
    color: #3d3d3d;
    font-size: 13px;
    background: url(../img/form.png) 0 0 repeat-x;
    padding: 5px 5px 6px;
    border: 1px #acacac solid;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.inputfieldpostanadcity {
    color: #3d3d3d;
    font-size: 13px;
    background: url(../img/form.png) 0 0 repeat-x;
    padding: 5px 5px 6px;
    border: 1px #acacac solid;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.inputfieldpostanadcity:hover {
    color: #4f4f4f;
}

/* Custom styling for FilePond preview items */
.filepond--item {
    /* width: 100%; */
    /* Default full width */
    min-width: 180px;
    max-width: 180px;
    /*
    /* Limit preview width to col-md-2 size */
    margin: 5px;
    /* Add spacing between previews */
    min-height: 180px;
    max-height: 180px;
}

/* Custom Post Ad Button Styling */
.btn-post-ad {
    background: linear-gradient(135deg, #6d8b27 0%, #a2c948 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(109, 139, 39, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.btn-post-ad::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-post-ad:hover {
    background: linear-gradient(135deg, #5b761e 0%, #8fb83a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 139, 39, 0.4);
}

.btn-post-ad:hover::before {
    left: 100%;
}

.btn-post-ad:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(109, 139, 39, 0.3);
}

.btn-post-ad:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 139, 39, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-post-ad {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .btn-post-ad {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 160px;
    }
}

/* Language Controls Styling */
.language-controls {
    margin-bottom: 15px;
}

.language-controls .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.language-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
    padding-left: 5px;
}

.language-checkbox:hover {
    background-color: rgba(109, 139, 39, 0.1);
}

.language-checkbox-input {
    margin-right: 8px;
    transform: scale(1.1);
}

.language-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.language-checkbox-input:checked + .language-name {
    color: #6d8b27;
    font-weight: 600;
}

/* Show Map Radio Button Styling */
.form-check-inline {
    margin-right: 20px;
}

.form-check-input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid #6d8b27;
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: #6d8b27;
    border-color: #6d8b27;
}

.form-check-input[type="radio"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(109, 139, 39, 0.25);
}

.form-check-label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.form-check-input[type="radio"]:checked + .form-check-label {
    color: #6d8b27;
    font-weight: 600;
}

/* My Ads Page Styles */
.my-ads-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.my-ads-header {
    background: #97ad5a;
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 16px 24px 14px 24px;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: left;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}
.my-ads-header h3 {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}
.my-ads-header .btn {
    background: #fff;
    color: #97ad5a;
    border: 1px solid #97ad5a;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.35rem 1.1rem;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}
.my-ads-header .btn:hover {
    background: #97ad5a;
    color: #fff;
}

/* List View Styles */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ad-list-item {
    display: flex;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ad-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.ad-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.ad-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-header {
    margin-bottom: 0.75rem;
}

.ad-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.ad-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.category-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ad-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.detail-item i {
    margin-right: 0.5rem;
    color: #667eea;
    width: 16px;
}

.ad-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.ad-meta {
    color: #888;
    font-size: 0.85rem;
}

.ad-meta i {
    margin-right: 0.25rem;
}

.ad-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-group .btn {
    border-radius: 5px;
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 2rem;
}

/* Responsive adjustments for My Ads List View */
@media (max-width: 768px) {
    .ad-list-item {
        flex-direction: column;
        padding: 1rem;
    }

    .ad-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ad-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .ad-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .ad-list-item {
        padding: 0.75rem;
    }

    .ad-title {
        font-size: 1.1rem;
    }

    .ad-actions {
        flex-direction: column;
        width: 100%;
    }

    .ad-actions .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Compact List View for My Ads - Olive Green Theme */
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}
.compact-ad {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d3d3d3;
    border-left: 6px solid #97ad5a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 18px 22px;
    max-width: 700px;
    width: 100%;
    min-height: 120px;
    margin: 0 auto;
}
.compact-ad .ad-image {
    width: 90px;
    height: 90px;
    margin-right: 18px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}
.compact-ad .ad-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.compact-ad .ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.compact-ad .ad-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.compact-ad .ad-title {
    font-size: 1.08rem;
    line-height: 1.2;
}
.compact-ad .category-badge {
    background: #97ad5a;
    color: #fff;
    padding: 0.18rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
    border: none;
}
.compact-ad .ad-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.2;
}
.compact-ad .ad-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.2rem;
}
.compact-ad .detail-item {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    color: #555;
    font-size: 0.95rem;
}
.compact-ad .detail-item i {
    color: #97ad5a;
    font-size: 1em;
}
.compact-ad .ad-description {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.compact-ad .ad-actions .btn {
    font-size: 0.95rem;
    padding: 0.12rem 0.4rem;
    border-radius: 5px;
    border: 1px solid #97ad5a;
    color: #97ad5a;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}
.compact-ad .ad-actions .btn-outline-primary {
    border: 1px solid #97ad5a;
    color: #97ad5a;
    background: #fff;
}
.compact-ad .ad-actions .btn-outline-primary:hover {
    background: #97ad5a;
    color: #fff;
}
.compact-ad .ad-actions .btn-outline-secondary {
    border: 1px solid #bfcf9c;
    color: #7a8c4a;
    background: #fff;
}
.compact-ad .ad-actions .btn-outline-secondary:hover {
    background: #bfcf9c;
    color: #fff;
}
.compact-ad .ad-actions .dropdown-menu {
    min-width: 120px;
}
.compact-ad .ad-actions .dropdown-item.text-danger:hover {
    background: #e57373;
    color: #fff;
}
.compact-ad .ad-actions .dropdown-item:hover {
    background: #f3f8ea;
    color: #222;
}
@media (max-width: 700px) {
    .compact-ad {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 8px;
        max-width: 98vw;
    }
    .compact-ad .ad-image {
        margin: 0 auto 10px auto;
    }
    .compact-ad .ad-title,
    .compact-ad .ad-subtitle,
    .compact-ad .ad-description {
        white-space: normal;
    }
    .compact-ad .ad-details {
        gap: 0.5rem;
        font-size: 0.97rem;
    }
}

@media (max-width: 600px) {
    .compact-ad {
        flex-direction: column !important;
        align-items: flex-start;
        min-height: 0;
        padding: 8px 4px;
    }
    .compact-ad .ad-image {
        width: 70px;
        height: 80px;
        align-self: center !important;
        margin: 0 0 8px 0 !important;
        display: block;
        text-align: center;
        float: none !important;
    }
    .compact-ad .ad-content {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .compact-ad .ad-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.ads-list {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.compact-ad {
    max-width: 100%;
    min-height: 40px;
    padding: 4px 8px;
    border-radius: 7px;
}
.compact-ad .ad-image {
    width: 100px;
    height: 130px;
    margin-right: 10px;
}
.compact-ad .ad-title {
    font-size: 0.93rem;
    line-height: 1.1;
}
.compact-ad .ad-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.1;
}
.compact-ad .ad-details {
    font-size: 0.8rem;
    gap: 0.3rem;
    margin-bottom: 0;
    line-height: 1.1;
}
.compact-ad .detail-item {
    font-size: 0.8rem;
    gap: 0.1rem;
}
.compact-ad .ad-description {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.1;
}
.compact-ad .ad-header {
    margin-bottom: 0;
}
.compact-ad .ad-content {
    justify-content: center;
}
.compact-ad .ad-actions .btn {
    font-size: 0.8rem;
    padding: 0.12rem 0.4rem;
    line-height: 1.1;
}

.btn-view {
    border: 1.5px solid #97ad5a;
    color: #97ad5a;
    background: #fff;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}
.btn-view:hover,
.btn-view:focus {
    background: #97ad5a;
    color: #fff;
}
.btn-delete {
    border: 1.5px solid #b94a48;
    color: #b94a48;
    background: #fff;
    font-weight: 500;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}
.btn-delete:hover,
.btn-delete:focus {
    background: #b94a48;
    color: #fff;
}

.compact-ad:hover {
    border-color: #97ad5a !important;
    box-shadow: 0 2px 12px 0 rgba(151, 173, 90, 0.13);
    transition: border-color 0.2s, box-shadow 0.2s;
}


        /* Notification Badge */
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            font-size: 10px;
            min-width: 18px;
            height: 18px;
            line-height: 18px;
            padding: 0 5px;
            border-radius: 9px;
            background-color: #6d8b27;
            color: white;
            font-weight: bold;
            text-align: center;
        }

        /* Notification Dropdown */
        .notification-dropdown {
            max-width: 400px;
            min-width: 350px;
            box-shadow: 0 7px 23px rgb(0 0 0 / 52%);
            border: 1px solid #eaeaea;
            border-radius: 8px;
            background-color: #ffffff;
            max-height: 450px;
            overflow: visible;
            position: absolute;
        }

        .notification-dropdown .title {
            padding: 12px 16px;
            border-bottom: 1px solid #e9ecef;
            background-color: #eaeaea;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        /* Notification Items Container */
        #notificationList {
            max-height: 350px;
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        /* Custom scrollbar for desktop */
        #notificationList::-webkit-scrollbar {
            width: 8px;
            display: block;
        }

        #notificationList::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        #notificationList::-webkit-scrollbar-thumb {
            background: #6d8b27;
            border-radius: 4px;
        }

        #notificationList::-webkit-scrollbar-thumb:hover {
            background: #546734;
        }

        /* Notification Items */
        .notification-menu {
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.2s ease;
        }

        .notification-menu:last-child {
            border-bottom: none;
        }

        .notification-menu:hover {
            background-color: #f8f9fa;
        }

        .notification-menu.unseen {
            background-color: #f0f8e8;
            border-left: 3px solid #6d8b27;
        }

        .notification-menu.unseen:hover {
            background-color: #e8f5d8;
        }

        .notification-menu .dropdown-item {
            padding: 12px 16px;
            text-decoration: none;
            color: inherit;
            display: block;
            border: none;
        }

        .notification-menu .dropdown-item:hover {
            background-color: transparent;
        }

        .notification-menu .dropdown-item:focus {
            background-color: transparent;
        }

        /* Notification Photo */
        .notification-photo {
            width: 45px;
            height: 45px;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid #dee2e6;
            background-color: #f0f0f0;
        }

        /* Notification Content */
        .notification-menu p {
            margin: 0;
            font-size: 14px;
            color: #212529;
            line-height: 1.3;
        }

        .notification-menu .fs-13 {
            font-size: 12px;
            color: #6c757d;
        }

        /* "Clear All" button color to match theme */
        #markAllReadBtn {
            color: #6d8b27 !important;
        }

        #markAllReadBtn:hover {
            color: #546734 !important;
        }

        /* "See All Notifications" link */
        .view-all {
            color: #6d8b27 !important;
        }

        .view-all:hover {
            color: #546734 !important;
            background-color: #f8f9fa;
        }

        /* Mobile backdrop overlay */
        .notification-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 9998;
        }

        /* Prevent body scroll when notifications open on mobile */
        @media (max-width: 768px) {
            body.notification-open {
                overflow: hidden !important;
                position: fixed !important;
                width: 100% !important;
                height: 100% !important;
            }

            body.notification-open .main-content {
                overflow: hidden !important;
            }

            .notification-backdrop.show {
                display: block;
            }

            /* Prevent notification from scrolling with page */
            .dropdown.notifications.show .notification-dropdown {
                position: fixed !important;
                overflow: visible !important;
            }

            #notificationList {
                overflow-y: auto !important;
                overflow-x: hidden !important;
                -webkit-overflow-scrolling: touch !important;
                display: block !important;
            }
        }

        /* Responsive - Mobile */
        @media (max-width: 768px) {
            .notifications .dropdown-menu.show {
                display: block !important;
                position: fixed !important;
                top: 60px !important;
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
                min-width: 70vw !important;
                max-width: 70vw !important;
                width: 95vw !important;
                z-index: 9999 !important;
                margin: 0 !important;
            }

            .dropdown.notifications.show .notification-dropdown {
                position: fixed !important;
                min-width: 95vw !important;
                max-width: 95vw !important;
                width: 95vw !important;
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
                margin: 0 !important;
                top: 60px !important;
                z-index: 9999 !important;
            }

            .notification-dropdown {
                min-width: 95vw !important;
                max-width: 95vw !important;
                width: 95vw !important;
            }

            .notification-dropdown .title,
            .notification-dropdown > div:first-child {
                padding: 8px 10px !important;
                font-size: 13px !important;
            }

            .notification-dropdown > div:first-child span {
                font-size: 13px !important;
            }

            .notification-dropdown > div:first-child .fs-14 {
                font-size: 12px !important;
            }

            .notification-menu .dropdown-item {
                padding: 8px 10px !important;
            }

            .notification-photo {
                width: 35px !important;
                height: 35px !important;
            }

            .notification-menu p {
                font-size: 11px !important;
            }

            .notification-menu .mb-0,
            .notification-time {
                font-size: 10px !important;
            }

            .notification-content {
                margin-left: 6px !important;
            }

            .notification-title {
                font-size: 11px !important;
                -webkit-line-clamp: 2;
                max-height: 2.2em;
                line-height: 1.1 !important;
            }

            #notificationList {
                max-height: calc(65vh - 50px) !important;
                min-height: 200px !important;
                overflow-y: scroll !important;
                overflow-x: hidden !important;
                -webkit-overflow-scrolling: touch !important;
            }

            /* Force scrollbar visibility on mobile */
            #notificationList::-webkit-scrollbar {
                width: 6px !important;
                height: 6px !important;
            }

            #notificationList::-webkit-scrollbar-track {
                background: #f1f1f1 !important;
                border-radius: 3px;
            }

            #notificationList::-webkit-scrollbar-thumb {
                background: #6d8b27 !important;
                border-radius: 3px;
            }

            #notificationList::-webkit-scrollbar-thumb:hover {
                background: #546734;
            }

            .notification-dropdown {
                max-height: 70vh !important;
                overflow: visible !important;
            }
        }

        @media (max-width: 576px) {
            .notifications .dropdown-menu.show {
                display: block !important;
                position: fixed !important;
                top: 55px !important;
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
                min-width: 70vw !important;
                max-width: 70vw !important;
                width: 96vw !important;
                z-index: 9999 !important;
                margin: 0 !important;
            }

            .dropdown.notifications.show .notification-dropdown {
                position: fixed !important;
                min-width: 96vw !important;
                max-width: 96vw !important;
                width: 96vw !important;
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
                top: 55px !important;
                z-index: 9999 !important;
                margin: 0 !important;
            }

            .notification-dropdown {
                min-width: 96vw !important;
                max-width: 96vw !important;
                width: 96vw !important;
            }

            .notification-dropdown .title,
            .notification-dropdown > div:first-child {
                padding: 6px 8px !important;
            }

            .notification-menu .dropdown-item {
                padding: 6px 8px !important;
            }

            .notification-photo {
                width: 32px !important;
                height: 32px !important;
            }

            .notification-content {
                margin-left: 5px !important;
            }

            #notificationList {
                max-height: calc(70vh - 50px) !important;
                min-height: 200px !important;
                overflow-y: scroll !important;
                overflow-x: hidden !important;
                -webkit-overflow-scrolling: touch !important;
            }

            /* Force scrollbar visibility on phones */
            #notificationList::-webkit-scrollbar {
                width: 5px !important;
                height: 5px !important;
            }

            #notificationList::-webkit-scrollbar-track {
                background: #f1f1f1 !important;
                border-radius: 2px;
            }

            #notificationList::-webkit-scrollbar-thumb {
                background: #6d8b27 !important;
                border-radius: 2px;
            }

            #notificationList::-webkit-scrollbar-thumb:hover {
                background: #546734;
            }

            .notification-dropdown {
                max-height: 75vh !important;
                overflow: visible !important;
            }
        }