.abd-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.abd-wilaya-card a, .abd-category-cards-grid a, .abd-category-card a {
  text-decoration: none !important;
}
.abd-form-group {
    margin-bottom: 20px;
}

.abd-form-row {
    display: flex;
    gap: 20px;
}

.abd-form-row .abd-form-group {
    flex: 1;
}

.abd-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.abd-form input,
.abd-form select,
.abd-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.abd-button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.abd-button:hover {
    background: #005a87;
}

/* Draft Actions Styling */
.abd-draft-actions {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.abd-draft-actions h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.abd-draft-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.abd-button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.abd-publish-button {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.abd-publish-button:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

.abd-publish-note {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

.abd-publish-note small {
    font-size: 12px;
}

@media (max-width: 768px) {
    .abd-button-group {
        flex-direction: column;
    }
}
/* Draft-specific styling */
.abd-draft-item {
    border-left: 4px solid #f0ad4e !important;
    background-color: #fefaf7;
}

.abd-status-draft {
    background-color: #f0ad4e;
    color: white;
}

.abd-drafts-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.abd-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    margin-bottom: 10px;
}

.abd-section-description {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 14px;
}

.abd-count {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
}

.abd-button-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.abd-button-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.abd-published-section {
    margin-top: 20px;
}

/* Draft notification styling */
#abd-draft-notification {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reviews Management Card */
.abd-reviews-card .abd-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.abd-reviews-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.abd-review-stat {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.abd-review-stat.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: rgba(255, 193, 7, 0.2);
}

.abd-review-stat .abd-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.abd-review-stat .abd-stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.abd-dashboard-review-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.abd-dashboard-review-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.abd-dashboard-review-item.needs-response {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fffef7, #fff8e1);
}

.abd-dashboard-review-item.has-response {
    border-left: 4px solid #28a745;
}

.abd-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.abd-review-business {
    color: #667eea;
    font-weight: 600;
}

.abd-review-rating {
    font-size: 0.9rem;
}

.abd-review-date {
    color: #666;
    font-size: 0.8rem;
}

.abd-review-content {
    margin-bottom: 15px;
}

.abd-reviewer-name {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.abd-review-title {
    margin-bottom: 8px;
    color: #2c3e50;
}

.abd-review-text {
    color: #555;
    line-height: 1.5;
}

.abd-review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.abd-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.abd-status-badge.needs-response {
    background: #fff3cd;
    color: #856404;
}

.abd-status-badge.responded {
    background: #d4edda;
    color: #155724;
}

.abd-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}
/* Wilaya-Daira notification styling */
.abd-wilaya-daira-notification {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    color: #1565c0;
    border: 1px solid #90caf9;
    border-left: 4px solid #1976d2;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none; /* Initially hidden for fade-in effect */
}

.abd-wilaya-daira-notification strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d47a1;
    font-size: 15px;
}

.abd-wilaya-daira-notification .location-wilaya {
    font-weight: 700;
    color: #1565c0;
    background: rgba(25, 118, 210, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(25, 118, 210, 0.3);
    display: inline-block;
    margin: 2px;
}

.abd-wilaya-daira-notification .location-daira {
    font-weight: 700;
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: inline-block;
    margin: 2px;
}

/* Make sure notification is visible and properly positioned */
.abd-form-group .abd-wilaya-daira-notification,
.abd-form-field .abd-wilaya-daira-notification {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .abd-wilaya-daira-notification {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .abd-wilaya-daira-notification .location-wilaya,
    .abd-wilaya-daira-notification .location-daira {
        padding: 3px 6px;
        font-size: 12px;
    }
}
/* Category notification styling - Enhanced for better visibility */
.abd-category-notification {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    color: #2d5a2d;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: none; /* Initially hidden for fade-in effect */
}

.abd-category-notification strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e4620;
    font-size: 15px;
}

.abd-category-notification .category-main {
    font-weight: 700;
    color: #2d5a2d;
    background: rgba(40, 167, 69, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    display: inline-block;
    margin: 2px;
}

.abd-category-notification .category-sub {
    font-weight: 700;
    color: #0c5460;
    background: rgba(23, 162, 184, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(23, 162, 184, 0.3);
    display: inline-block;
    margin: 2px;
}

/* Make sure notification is visible and properly positioned */
.abd-form-group .abd-category-notification,
.abd-form-field .abd-category-notification {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Admin area notification styling */
.abd-admin-category-notification {
    margin: 10px 0 !important;
    border-left-color: #28a745 !important;
}

.abd-admin-category-notification p {
    margin: 0.5em 0 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .abd-category-notification {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .abd-category-notification .category-main,
    .abd-category-notification .category-sub {
        padding: 3px 6px;
        font-size: 12px;
    }
}



/* Status change message styles */
.abd-form-container .success {
    color: #28a745;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.abd-form-container .info {
    color: #0c5460;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.abd-form-container .error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
}
.abd-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.abd-business-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
    
}

.abd-business-card h3 {
    margin-top: 0;
}

.abd-business-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.abd-category,
.abd-wilaya {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.abd-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.abd-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Media Upload Styles */
.abd-media-upload {
    margin: 20px 0;
}

.abd-logo-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.abd-logo-upload-area:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.abd-upload-placeholder {
    padding: 20px;
}

.abd-upload-placeholder .dashicons {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 10px;
}

.abd-upload-placeholder p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.abd-logo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.abd-gallery-upload-area {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.abd-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    min-height: 80px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: white;
}

.abd-gallery-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.abd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abd-remove-gallery-item {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
}

.abd-remove-gallery-item:hover {
    background: #c82333;
}

.abd-button-secondary {
    background: #6c757d;
    margin-left: 10px;
}

.abd-button-secondary:hover {
    background: #5a6268;
}

/* Empty gallery state */
.abd-gallery-preview:empty::before {
    content: "No images selected";
    color: #999;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
}

/* Media upload buttons */
.abd-upload-logo-btn,
.abd-upload-gallery-btn {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .abd-logo-upload-area {
        padding: 15px;
    }
    
    .abd-upload-placeholder .dashicons {
        font-size: 36px;
    }
    
    .abd-gallery-item {
        width: 60px;
        height: 60px;
    }
}

/* User Dashboard Styles */
.abd-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.abd-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.abd-dashboard-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 28px;
}

.abd-add-business {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Empty State */
.abd-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.abd-empty-icon .dashicons {
    font-size: 64px;
    color: #6c757d;
    margin-bottom: 20px;
}

.abd-empty-state h3 {
    color: #495057;
    margin-bottom: 10px;
}

.abd-empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Business Manager */
.abd-business-manager {
    display: grid;
    gap: 20px;
}

.abd-business-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.abd-business-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Status-based styling */
.abd-business-item.abd-status-publish {
    border-left-color: #28a745;
}

.abd-business-item.abd-status-pending {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.abd-business-item.abd-status-draft {
    border-left-color: #6c757d;
}

.abd-business-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.abd-business-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abd-business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.abd-business-logo.abd-no-logo {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.abd-business-logo.abd-no-logo .dashicons {
    font-size: 32px;
    color: #adb5bd;
}

.abd-business-info {
    flex: 1;
}

.abd-business-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
}

.abd-business-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.abd-business-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6c757d;
}

.abd-business-contact {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.abd-business-contact span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #495057;
}

.abd-business-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

/* Business Actions */
.abd-business-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.abd-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.abd-status-badge.abd-status-publish {
    background: #d4edda;
    color: #155724;
}

.abd-status-badge.abd-status-pending {
    background: #fff3cd;
    color: #856404;
}

.abd-status-badge.abd-status-draft {
    background: #f8f9fa;
    color: #6c757d;
}

.abd-action-buttons {
    display: flex;
    gap: 8px;
}

.abd-button-small {
    padding: 6px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.abd-button-danger {
    background: #dc3545;
    color: white;
}

.abd-button-danger:hover {
    background: #c82333;
}

/* Clean Modal Styles - No Blur Issues */
.abd-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.abd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8); /* Solid dark overlay */
}

.abd-modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 650px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001;
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    to {
        transform: scale(1);
    }
}

.abd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.abd-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.abd-close-modal {
    background: #e74c3c;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.abd-close-modal:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.abd-close-modal .dashicons {
    font-size: 16px;
}

.abd-modal-body {
    padding: 30px;
    max-height: calc(95vh - 120px);
    overflow-y: auto;
    background: white;
}

/* Prevent body scroll when modal is open */
body.abd-modal-open {
    overflow: hidden;
}

/* Login Required */
.abd-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.abd-login-required h3 {
    color: #495057;
    margin-bottom: 10px;
}

.abd-login-required p {
    color: #6c757d;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .abd-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .abd-business-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .abd-business-content {
        flex-direction: column;
        text-align: center;
    }
    
    .abd-business-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .abd-action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}


.abd-verification-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.abd-verification-badge .dashicons {
    font-size: 12px;
}

/* Enhanced status badge for verified businesses */
.abd-status-badge.abd-status-publish {
    background: #d4edda;
    color: #155724;
}

.abd-business-item .abd-verification-badge {
    margin-left: 0;
    align-self: flex-start;
}