#classified-ad-form {
    max-width: 600px;
    margin: 20px auto;
}

#classified-ad-form .form-group {
    margin-bottom: 20px;
}
.adds-page .tagdiv-type p {
    text-align: left;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}
#classified-ad-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#classified-ad-form input,
#classified-ad-form textarea,
#classified-ad-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#classified-ad-form textarea {
    resize: vertical;
    min-height: 120px;
}

#classified-ad-form button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#classified-ad-form button:hover {
    background: #005a87;
}

#classified-ad-form small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ad Display Styles */
.classified-ads-list {
    margin: 20px 0;
}

.classified-ad-item {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
}

.classified-ad-title {
    margin: 0 0 15px 0;
    color: #333;
}

.classified-ad-image {
    margin: 10px 0;
}

.classified-ad-image img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.classified-ad-text {
    margin: 15px 0;
    line-height: 1.6;
}

.classified-ad-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.classified-ad-meta span {
    font-size: 12px;
    color: #666;
}

.classified-ad-website {
    background: #0073aa;
    color: white !important;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    margin-left: auto;
}

.classified-ad-website:hover {
    background: #005a87;
}

/* Grid Display */
.classified-ads-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.classified-ads-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.classified-ads-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.classified-ads-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.classified-ad-grid-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.classified-ad-grid-image {
    height: 150px;
    overflow: hidden;
}

.classified-ad-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-ad-grid-info {
    padding: 15px;
}

.classified-ad-grid-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.classified-ad-grid-text {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.classified-ad-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.classified-ad-grid-meta small {
    color: #999;
}

.classified-ad-grid-meta a {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
}

@media (max-width: 768px) {
    .classified-ads-grid.columns-3,
    .classified-ads-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .classified-ad-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .classified-ad-website {
        margin-left: 0;
    }
}

/* User Dashboard Styles */
.classified-user-dashboard {
    margin: 20px 0;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ads-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.user-ads-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.user-ads-table th,
.user-ads-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-ads-table th {
    background: #f8f9fa;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.ad-meta {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-expired {
    background: #e2e3e5;
    color: #383d41;
}

/* Payment Status Badges */
.payment-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.payment-paid {
    background: #d4edda;
    color: #155724;
}

.payment-pending {
    background: #fff3cd;
    color: #856404;
}

.payment-failed {
    background: #f8d7da;
    color: #721c24;
}

.ad-stats code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
}

.actions {
    white-space: nowrap;
}

.button-small {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    color: #555;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
}

.button-small:hover {
    background: #e7e7e7;
}

.button-small.button-primary {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.button-small.button-primary:hover {
    background: #005a87;
}

.pending-text {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.ad-details-content {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.ad-stats {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.ad-stats p {
    margin: 5px 0;
    font-size: 13px;
}

.no-ads {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.dashboard-actions {
    margin: 30px 0;
    text-align: center;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #005a87;
    color: white;
}

.button.button-primary {
    background: #0073aa;
}

@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 10px;
    }
    
    .user-ads-table {
        font-size: 14px;
    }
    
    .user-ads-table th,
    .user-ads-table td {
        padding: 8px;
    }
}

/* Payment Styles */
.payment-notice {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.payment-notice p {
    margin: 0;
    color: #0073aa;
    font-size: 14px;
}

.payment-button {
    background: #00a32a !important;
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.payment-button:hover {
    background: #008a20 !important;
}

.payment-button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.payment-status {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-weight: bold;
}

.payment-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}