/* LMP Modern Styles */

/* LMP Layout Styles */
.lmp-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f9fafb;
}

.lmp-header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.lmp-navbar {
    padding: 0.5rem 0;
}

.lmp-navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lmp-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.lmp-navbar-brand:hover {
    color: #2563eb;
}

.lmp-navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 6px;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.lmp-navbar-brand .brand-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.lmp-navbar-toggler {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    color: #1a1a1a;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: auto;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.lmp-navbar-toggler:hover {
    color: #2563eb;
    border-color: #2563eb;
    background: #f3f4f6;
}

.lmp-navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lmp-navbar-toggler i {
    font-size: 1.5rem;
}

.lmp-navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
}

/* Desktop: Always show navbar-collapse */
@media (min-width: 992px) {
    #lmpNavbarContent.navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }
    
    #lmpNavbarContent.navbar-collapse.collapse {
        display: flex !important;
    }
}

.lmp-main-container {
    flex: 1;
    width: 100%;
}

.lmp-main-content {
    width: 100%;
    padding: 0;
}

.lmp-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
    padding: 2rem 0;
}

.lmp-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lmp-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.footer-copyright i {
    flex-shrink: 0;
}

.footer-copyright span {
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    padding: 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.footer-link:hover {
    color: #1d4ed8;
    background: #f3f4f6;
}

.footer-link i {
    font-size: 1rem;
}

/* User Profile & Session */
.user-info-item {
    margin-left: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.user-profile i {
    font-size: 1.25rem;
    color: #6b7280;
    flex-shrink: 0;
}

.user-name {
    color: #1a1a1a;
    font-weight: 500;
}

.session-timer {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 0.375rem 0.5rem;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
}

.logout-form .btn-modern {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Navigation Links */
.lmp-navbar-nav .nav-link {
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lmp-navbar-nav .nav-link:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.lmp-navbar-nav .dropdown-menu {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.lmp-navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.lmp-navbar-nav .dropdown-item:hover {
    background: #f3f4f6;
    color: #2563eb;
}

/* Responsive */
@media (max-width: 991.98px) {
    .lmp-navbar-toggler {
        display: flex !important;
    }
    
    .lmp-navbar-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .lmp-navbar-brand {
        flex: 0 0 auto;
    }
    
    #lmpNavbarContent.navbar-collapse:not(.show) {
        display: none;
    }
    
    #lmpNavbarContent.navbar-collapse.show {
        display: flex !important;
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .lmp-navbar-nav {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .lmp-navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .lmp-navbar-nav .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .lmp-navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: none;
        box-shadow: none;
        background: #f9fafb;
        padding: 0.5rem 0;
    }
    
    .lmp-navbar-nav .dropdown-item {
        padding: 0.75rem 2rem;
    }
    
    .user-info-item {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .user-profile {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .session-timer {
        width: 100%;
        text-align: left;
        padding: 0.75rem 1rem;
        background: #f9fafb;
        border-radius: 6px;
        margin: 0;
    }
    
    .logout-form {
        width: 100%;
    }
    
    .logout-form .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .lmp-navbar-nav .nav-item.ms-auto {
        margin-left: 0 !important;
    }
    
    .lmp-navbar-nav .nav-item.ms-3 {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .lmp-navbar-container {
        padding: 0 1rem;
    }
    
    .lmp-footer {
        padding: 1.5rem 0;
    }
    
    .lmp-footer-container {
        padding: 0 1rem;
    }
    
    .lmp-footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-copyright {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .footer-copyright span {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .footer-link {
        justify-content: center;
        padding: 0.75rem 1.5rem;
        min-width: 120px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .lmp-footer {
        padding: 1.25rem 0;
    }
    
    .lmp-footer-container {
        padding: 0 1rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
    
    .footer-copyright span {
        display: block;
        text-align: center;
    }
    
    .footer-link {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Page Content Styles */
.lmp-page {
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 200px);
}

.lmp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Card Modern Styles */
.card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-modern-body {
    padding: 1.5rem;
}

/* DataTables Override for LMP */
.card-modern-body .dataTables_wrapper {
    padding: 0;
}

.card-modern-body .dataTables_filter {
    margin-bottom: 1rem;
    padding: 0;
}

.card-modern-body .dataTables_length {
    margin-bottom: 1rem;
    padding: 0;
}

.card-modern-body .dataTables_info {
    margin-top: 1rem;
    padding: 0.75rem 0;
}

.card-modern-body .dataTables_paginate {
    margin-top: 1rem;
    padding: 0.75rem 0;
}

/* Table Modern Styles */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-modern thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.table-modern thead th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.table-modern thead th:first-child {
    padding-left: 1rem;
}

.table-modern thead th:last-child {
    padding-right: 1rem;
}

.table-modern tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 0.9rem;
}

.table-modern tbody td:first-child {
    padding-left: 1rem;
}

.table-modern tbody td:last-child {
    padding-right: 1rem;
}

.table-modern tbody tr:hover {
    background: #f9fafb;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.lmp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lmp-header > div:first-child {
    flex: 1;
}

.lmp-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.lmp-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    display: block;
}

/* Advertisement Cards - Using explore-ad-card to avoid Chrome user agent stylesheet conflicts */
.explore-ad-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.explore-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.explore-ad-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.explore-ad-card-body {
    padding: 1.5rem;
}

.explore-ad-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.explore-ad-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0.5rem 0;
}

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

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

.ad-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.ad-contact-icons {
    display: flex;
    gap: 0.5rem;
}

.ad-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ad-contact-icon.phone {
    background: #10b981;
    color: white;
}

.ad-contact-icon.chat {
    background: #3b82f6;
    color: white;
}

.ad-contact-icon.whatsapp {
    background: #25d366;
    color: white;
}

.ad-contact-icon:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Note: .explore-grid styles are now in lmp-explore.css to avoid conflicts with landing page */

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.draft {
    background: #e5e7eb;
    color: #374151;
}

.status-badge.submitted {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.published {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.sold {
    background: #fce7f3;
    color: #831843;
}

.status-badge.retracted {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   Advertisement Type Hierarchy Styles
   ============================================ */
.parent-type {
    background-color: #f8f9fa;
    border-left: 3px solid #2563eb;
}

.parent-type:hover {
    background-color: #e9ecef;
}

.child-type {
    background-color: #ffffff;
    border-left: 3px solid #94a3b8;
}

.child-type:hover {
    background-color: #f8f9fa;
}

.parent-type td:first-child {
    font-weight: 600;
}

.child-type td:first-child {
    font-weight: 400;
}

/* ============================================
   Modern Form Styles for LMP
   ============================================ */

.lmp-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: #2563eb;
    border-radius: 2px;
}

.form-row-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row-three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .form-row-three {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row-three .form-field-modern:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .form-row-three {
        grid-template-columns: 1fr;
    }
    
    .form-row-three .form-field-modern:last-child {
        grid-column: 1;
    }
}

.form-field-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label-modern i {
    color: #6b7280;
    font-size: 1rem;
}

.form-label-modern.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input-modern:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input-modern:hover:not(:disabled) {
    border-color: #9ca3af;
}

.form-input-modern::placeholder {
    color: #9ca3af;
}

.form-textarea-modern {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: #6b7280;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.input-group-modern .form-input-modern {
    padding-left: 2.5rem;
}

.form-helper-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
}

.field-validation-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #ef4444;
    display: none;
}

/* Radio Group Modern */
.radio-group-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.radio-option-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    flex: 1;
    min-width: 150px;
}

.radio-option-modern:hover {
    border-color: #2563eb;
    background: #f0f9ff;
}

.radio-option-modern input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.radio-option-modern input[type="radio"]:checked + .radio-custom {
    border-color: #2563eb;
    background: #2563eb;
}

.radio-option-modern input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option-modern input[type="radio"]:checked ~ .radio-label {
    color: #2563eb;
    font-weight: 600;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.radio-label i {
    font-size: 1.1rem;
}

/* File Upload Modern */
.file-upload-modern {
    position: relative;
}

.file-input-modern {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 150px;
}

.file-upload-label:hover {
    border-color: #2563eb;
    background: #f0f9ff;
}

.file-upload-label i {
    font-size: 2.5rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.file-upload-label span {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.file-upload-label small {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Form Actions */
.form-actions-modern {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .lmp-page {
        padding: 1rem 1rem;
    }

    .lmp-container {
        padding: 0 1rem;
    }

    .lmp-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .lmp-header > div:first-child {
        width: 100%;
    }

    .lmp-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .lmp-subtitle {
        font-size: 0.9rem;
    }

    .lmp-header .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }

    .card-modern {
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .card-modern-body {
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    /* DataTables Mobile Styles */
    .card-modern-body .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    /* Scrollbar styling for mobile */
    .card-modern-body::-webkit-scrollbar,
    .card-modern-body .dataTables_wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .card-modern-body::-webkit-scrollbar-track,
    .card-modern-body .dataTables_wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .card-modern-body::-webkit-scrollbar-thumb,
    .card-modern-body .dataTables_wrapper::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .card-modern-body::-webkit-scrollbar-thumb:hover,
    .card-modern-body .dataTables_wrapper::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .card-modern-body .dataTables_filter {
        margin-bottom: 0.75rem;
    }

    .card-modern-body .dataTables_filter input {
        width: 100% !important;
        max-width: 100%;
    }

    .card-modern-body .dataTables_length {
        margin-bottom: 0.75rem;
    }

    .card-modern-body .dataTables_length select {
        width: auto;
        min-width: 80px;
    }

    .card-modern-body .dataTables_info,
    .card-modern-body .dataTables_paginate {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .card-modern-body .dataTables_paginate .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Table Mobile Styles */
    .table-modern {
        font-size: 0.85rem;
        min-width: 600px; /* Minimum width to prevent too much compression */
    }

    .table-modern thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .table-modern tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Action buttons mobile */
    .table-modern .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }

    .table-modern .btn-group .btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    .table-modern .btn-group .btn i {
        margin-right: 0.25rem;
    }

    /* Status badges mobile */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        white-space: nowrap;
    }

    .form-row-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .radio-group-modern {
        flex-direction: column;
    }

    .radio-option-modern {
        min-width: 100%;
    }

    .form-actions-modern {
        flex-direction: column-reverse;
    }

    .form-actions-modern .btn-modern {
        width: 100%;
    }

    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .form-section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .lmp-page {
        padding: 0.75rem 0.75rem;
    }

    .lmp-container {
        padding: 0 0.75rem;
    }

    .lmp-title {
        font-size: 1.25rem;
    }

    .lmp-subtitle {
        font-size: 0.85rem;
    }

    .card-modern-body {
        padding: 0.75rem;
    }

    .table-modern {
        font-size: 0.8rem;
        min-width: 500px;
    }

    .table-modern thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }

    .table-modern tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }

    .card-modern-body .dataTables_filter,
    .card-modern-body .dataTables_length {
        margin-bottom: 0.5rem;
    }

    .card-modern-body .dataTables_info,
    .card-modern-body .dataTables_paginate {
        font-size: 0.75rem;
    }
}

/* ============================================
   Advertisement View Styles
   ============================================ */

.ad-view-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ad-view-header {
    margin-bottom: 2rem;
}

.ad-view-back-btn {
    margin-bottom: 1rem;
}

.ad-view-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .ad-view-main {
        grid-template-columns: 1fr;
    }
}

.ad-view-images {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-view-main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
}

.ad-view-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.ad-view-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.ad-view-thumbnail:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.ad-view-thumbnail.active {
    border-color: #2563eb;
}

.ad-view-info {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.ad-view-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.ad-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.ad-view-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.ad-view-meta-item i {
    color: #2563eb;
}

.ad-view-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0 0 1.5rem 0;
}

.ad-view-price-currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.ad-view-contact {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ad-view-contact-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ad-view-contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ad-view-contact-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-view-contact-option:hover {
    background: #f9fafb;
    border-color: #2563eb;
    transform: translateX(4px);
}

.ad-view-contact-option i {
    font-size: 1.25rem;
    color: #2563eb;
    transition: all 0.2s ease;
}

.ad-view-contact-option.phone i {
    color: #10b981;
}

.ad-view-contact-option.phone:hover i {
    color: #059669;
    transform: scale(1.2) rotate(15deg);
}

.ad-view-contact-option.chat i {
    color: #3b82f6;
}

.ad-view-contact-option.chat:hover i {
    color: #2563eb;
    transform: scale(1.2);
}

.ad-view-contact-option.whatsapp i {
    color: #25d366;
}

.ad-view-contact-option.whatsapp:hover i {
    color: #20c55e;
    transform: scale(1.2) rotate(-15deg);
}

.ad-view-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.ad-view-description {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.ad-view-description-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.ad-view-description-text {
    color: #4b5563;
    line-height: 1.7;
    white-space: pre-wrap;
    font-size: 1rem;
}

.ad-view-details {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-view-details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.ad-view-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ad-view-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ad-view-detail-label {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.ad-view-detail-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.no-images {
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
}

