/* ================================================
   VENDOR LIST - Compact Web App Styles
   Mobile-First, Small & Efficient Design
================================================ */

/* Import base styles */
@import url('custom-style.css');

/* ================================================
   CSS VARIABLES
================================================ */
:root {
    --primary-color: #6a1b9a;
    --secondary-color: #facc15;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
}

/* ================================================
   MAIN CONTAINER
================================================ */
.vendor-list-container {
    max-width: 1300px;
    
    margin: 0 auto;
    padding: 0 0.8rem;
}

/* ================================================
   HERO SECTION - Compact
================================================ */
.vendor-hero-section {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 38%), 
                radial-gradient(circle at 80% 0%, rgba(0, 188, 212, 0.16), transparent 46%), 
                linear-gradient(125deg, #120f38 0%, #251451 48%, #0f172a 100%);
    padding: 1.5rem 1rem;
    color: white;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    max-width: 1200px;
    
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.hero-content h1 i {
    margin-right: 0.5rem;
    color: #00bcd4;
}

.hero-content p {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    flex: 0 1 auto;
    min-width: 140px;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.stat-box {
    background: rgba(255,255,255,0.15);
    padding: 0.8rem 0.6rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.stat-box i {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: block;
    color: #00bcd4;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.9;
    color: #dadadace;
}

/* ================================================
   FILTER SECTION - Compact
================================================ */
.filter-section {
    background: #ffffff;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.filter-group label i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.filter-select,
.filter-input {
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 36px;
    background: white;
    transition: all 0.2s ease;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.1);
    outline: none;
}

.filter-search {
    min-width: 200px;
}

/* ================================================
   BULK ACTIONS BAR
================================================ */
.bulk-actions-bar {
    background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%);
    color: white;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bulk-info {
    font-size: 0.85rem;
    font-weight: 600;
}

.bulk-buttons {
    display: flex;
    gap: 0.6rem;
}

/* ================================================
   TABLE SECTION
================================================ */
.table-section {
    margin-bottom: 2rem;
}

.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--light-color);
}

.table-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.table-header h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.results-count {
    font-size: 0.75rem;
    color: #64748b;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

/* ================================================
   VENDOR TABLE - Compact
================================================ */
.vendor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.vendor-table thead {
    background: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.vendor-table thead th {
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    padding: 0.7rem 0.6rem;
    text-align: left;
    white-space: nowrap;
    font-size: 0.75rem;
}

.vendor-table thead th i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.vendor-table tbody td {
    padding: 0.8rem 0.6rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
}

.vendor-table tbody tr {
    transition: all 0.2s ease;
}

.vendor-table tbody tr:hover {
    background: #f0f9ff;
}

.vendor-table .checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.email-cell {
    font-weight: 600;
    color: var(--primary-color);
    word-break: break-word;
}

.company-cell {
    color: var(--dark-color);
    font-weight: 500;
}

.category-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(106, 27, 154, 0.1);
    color: var(--primary-color);
}

.date-cell {
    color: #64748b;
    font-size: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 0.4rem;
}

.action-buttons .btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
}

/* Loading Row */
.loading-row td {
    padding: 3rem 1rem;
    text-align: center;
}

.loading-spinner {
    text-align: center;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.loading-spinner p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* ================================================
   PAGINATION - Compact
================================================ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-top: 2px solid var(--border-color);
    background: var(--light-color);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pagination-info {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
}

.pagination-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.4rem 0.7rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.78rem;
    min-width: 36px;
    text-align: center;
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 700;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-per-page label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
}

.pagination-per-page select {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
}

/* ================================================
   MODALS - Improved Compact
================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.modal-sm {
    max-width: 400px;
}

.modal-content.modal-md {
    max-width: 600px;
}

.modal-content.modal-lg {
    max-width: 1000px;
}

.modal-large .modal-content {
    max-width: 95vw;
    max-height: 95vh;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #130336 0%, #090270 100%);
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.modal-header h3 i {
    margin-right: 0.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-body {
    padding: 1.2rem;
    overflow-y: auto;
    flex: 1;
}

/* ================================================
   ADMIN PANEL TABS
================================================ */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.2rem;
    background: #e2e8f0;
    border-radius: 8px 8px 0 0;
    padding: 0.4rem 0.6rem 0;
    gap: 0.3rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(106, 27, 154, 0.1);
    color: var(--primary-color);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn i {
    margin-right: 0.4rem;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ================================================
   ADMIN SECTIONS
================================================ */
.admin-section {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.admin-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 1rem 0;
}

.admin-section h4 i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.admin-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

/* Admin Table */
.admin-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.admin-table thead {
    background: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table thead th {
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
    padding: 0.7rem 0.6rem;
    text-align: left;
    white-space: nowrap;
    font-size: 0.72rem;
}

.admin-table tbody td {
    padding: 0.7rem 0.6rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background: #f0f9ff;
}

.admin-table .btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 300px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.category-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
}

.category-count {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 0.5rem;
}

/* Admin List */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 300px;
    overflow-y: auto;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.admin-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.admin-info small {
    font-size: 0.7rem;
    color: #64748b;
}

/* ================================================
   FORMS - Compact
================================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.form-group label i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.3rem;
    font-style: italic;
}

.form-row {
    display: flex;
    gap: 0.6rem;
    align-items: end;
}

.form-row .form-control {
    flex: 1;
}

.category-input-group {
    display: flex;
    gap: 0.5rem;
}

/* ================================================
   BUTTONS - Compact
================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #5a1680;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(106, 27, 154, 0.3);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #64748b;
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-admin {
    background: var(--warning-color);
    color: #000000;
}

.btn-admin:hover {
    background: #d97706;
}

.btn-reset {
    background: #f1f5f9;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-reset:hover {
    background: #e2e8f0;
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
}

.btn-block {
    width: 100%;
}

/* ================================================
   ALERTS - Compact
================================================ */
.alert {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.78rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.alert i {
    font-size: 1.1em;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

/* ================================================
   TOAST NOTIFICATION
================================================ */
.toast {
    position: fixed;
    top: -100px;
    right: 20px;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: all 0.3s ease;
    min-width: 300px;
    border-left: 4px solid var(--success-color);
}

.toast.show {
    top: 20px;
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-icon.fa-check-circle {
    color: var(--success-color);
}

.toast-icon.fa-exclamation-circle {
    color: var(--danger-color);
}

.toast-icon.fa-info-circle {
    color: var(--info-color);
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* ================================================
   UTILITIES
================================================ */
.text-center {
    text-align: center !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-muted {
    color: #64748b !important;
}

.d-none {
    display: none !important;
}

.w-100 {
    width: 100% !important;
}

/* ================================================
   SCROLLBAR STYLING
================================================ */
.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.admin-table-container::-webkit-scrollbar,
.category-list::-webkit-scrollbar,
.admin-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.admin-table-container::-webkit-scrollbar-track,
.category-list::-webkit-scrollbar-track,
.admin-list::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.admin-table-container::-webkit-scrollbar-thumb,
.category-list::-webkit-scrollbar-thumb,
.admin-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.admin-table-container::-webkit-scrollbar-thumb:hover,
.category-list::-webkit-scrollbar-thumb:hover,
.admin-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================================================
   RESPONSIVE DESIGN - TABLET
================================================ */
@media (min-width: 768px) {
    .vendor-hero-section {
        padding: 2rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .filter-row {
        grid-template-columns: 1.5fr 1.5fr 1fr 2fr auto;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* ================================================
   RESPONSIVE DESIGN - DESKTOP
================================================ */
@media (min-width: 1024px) {
    .vendor-hero-section {
        padding: 2.5rem 2rem;
    }

    .filter-section {
        padding: 1rem 1.5rem;
    }
}

/* ================================================
   RESPONSIVE DESIGN - MOBILE
================================================ */
@media (max-width: 767px) {
    .vendor-hero-section {
        padding: 1.2rem 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .stat-box {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .stat-box i {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .filter-search {
        min-width: 100%;
    }

    .bulk-actions-bar {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .bulk-buttons {
        flex-direction: column;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .vendor-table {
        font-size: 0.7rem;
    }

    .vendor-table thead th,
    .vendor-table tbody td {
        padding: 0.5rem 0.4rem;
    }

    .pagination-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .pagination-buttons {
        width: 100%;
        justify-content: center;
    }

    .pagination-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
        min-width: 32px;
    }

    .admin-tabs {
        overflow-x: auto;
        padding: 0.3rem 0.4rem 0;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    .admin-filter-row {
        grid-template-columns: 1fr;
    }

    .modal-content.modal-lg {
        max-width: 100%;
    }

    .modal-large .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .toast {
        min-width: 90%;
        left: 5%;
        right: 5%;
    }

    .toast.show {
        top: 10px;
    }
}

/* ================================================
   ANIMATIONS
================================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ================================================
   PRINT STYLES
================================================ */
@media print {
    .vendor-hero-section,
    .filter-section,
    .bulk-actions-bar,
    .action-buttons,
    .pagination-container,
    .modal,
    .toast {
        display: none !important;
    }

    .vendor-table {
        font-size: 10pt;
    }
}


/* ================================================
   SEARCHABLE DROPDOWN STYLES
================================================ */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-input-wrapper {
    position: relative;
    width: 100%;
}

.dropdown-search-input {
    cursor: pointer;
    padding-right: 35px !important;
}

.dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.75rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.searchable-dropdown.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.searchable-dropdown.active .dropdown-menu {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-search-box {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
}

.dropdown-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
}

.dropdown-search:focus {
    outline: none;
    border-color: var(--primary-color);
}

.dropdown-options {
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.dropdown-option:hover {
    background: var(--light-color);
}

.dropdown-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.dropdown-option.hidden {
    display: none;
}

/* Scrollbar for dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: var(--light-color);
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ================================================
   ADMIN BULK ACTIONS BAR
================================================ */
.admin-bulk-actions {
    background: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 100%);
    color: white;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

.admin-bulk-actions .bulk-info {
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-bulk-actions .bulk-buttons {
    display: flex;
    gap: 0.6rem;
}

/* ================================================
   ADMIN PAGINATION
================================================ */
.admin-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-top: 2px solid var(--border-color);
    background: var(--light-color);
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Mobile Responsive for Searchable Dropdown */
@media (max-width: 767px) {
    .dropdown-menu {
        max-height: 250px;
    }
    
    .dropdown-options {
        max-height: 200px;
    }
}






/* ================================================
   MASTER SEO SECTION STYLES (COMPLETE FIX)
   Target: US Staffing & Recruiter Lists
================================================ */

/* 1. Main Container & Layout */
.vendor-seo-section {
    margin-top: 3rem;
    padding: 0 0.5rem 3rem 0.5rem;
    color: var(--dark-color);
}

.vendor-seo-container {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md); /* Gives it that "card" look */
    border-top: 5px solid var(--primary-color); /* Theme color branding */
    max-width: 1200px;
    margin: 0 auto;
}

.vendor-seo-wrapper {
    max-width: 900px;
    margin: 0 auto; /* Centers the reading content */
}

/* 2. Header Typography */
.vendor-seo-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.vendor-seo-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.vendor-seo-header p {
    font-size: 1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 3. Article & Content Typography */
.vendor-seo-article h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin: 2rem 0 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-seo-article p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.2rem;
}

/* 4. Comparison Table (The "Well Good" Look) */
.vendor-seo-table-wrapper {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.vendor-seo-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.vendor-seo-table th {
    background: var(--dark-color);
    color: #fff;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
}

.vendor-seo-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.9rem;
    vertical-align: top;
}

.vendor-seo-table tr:nth-child(even) {
    background: #f8fafc;
}

/* 5. "How-To" Steps Cards */
.vendor-seo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.vendor-seo-step {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.2s ease;
}

.vendor-seo-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.vendor-seo-step-number {
    position: absolute;
    top: -15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vendor-seo-step h4 {
    margin-top: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.vendor-seo-step p {
    font-size: 0.85rem;
    margin: 0;
    color: #64748b;
}

/* 6. Pro Tip Box */
.vendor-seo-pro-tip {
    background: #ecfdf5;
    border-left: 5px solid #10b981;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2.5rem 0;
}

.vendor-seo-pro-tip h4 {
    color: #064e3b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-seo-pro-tip p {
    color: #065f46;
    margin: 0;
    font-size: 0.95rem;
}

/* 7. FAQ Section (The Interactive Part) */
.vendor-seo-faq {
    margin: 3rem 0;
}

.vendor-seo-faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.vendor-seo-faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1.2rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: color 0.2s;
}

.vendor-seo-faq-trigger:hover {
    color: var(--primary-color);
}

.vendor-seo-faq-trigger::after {
    content: '+';
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.vendor-seo-faq-item.active .vendor-seo-faq-trigger::after {
    content: '-';
}

.vendor-seo-faq-content {
    display: none; /* Hidden by default */
    padding-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

.vendor-seo-faq-item.active .vendor-seo-faq-content {
    display: block; /* Shown when active */
}

/* 8. Keyword Cloud (The "Chips" at the bottom) */
.vendor-seo-tags-wrapper {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
    border: 1px solid #e2e8f0;
}

.vendor-seo-tags-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.vendor-seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.vendor-seo-tag {
    font-size: 0.8rem;
    background: #fff;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    cursor: default;
    font-weight: 500;
}

.vendor-seo-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fdf4ff; /* Slight purple tint on hover */
    transform: translateY(-2px);
}

/* Dividers */
.vendor-seo-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin: 3rem 0;
    opacity: 0.5;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .vendor-seo-container {
        padding: 1.5rem 1rem;
    }
    
    .vendor-seo-header h2 {
        font-size: 1.4rem;
    }
    
    .vendor-seo-steps {
        grid-template-columns: 1fr;
    }
}




/* ================================================
   SEO ADD-ONS: Glossary & Internal Linking
   Add to bottom of vendor-list.css
================================================ */

/* Glossary Section */
.vendor-seo-glossary {
    margin: 3rem 0;
}

.vendor-seo-glossary h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-seo-glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vendor-glossary-card {
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: background 0.2s ease;
}

.vendor-glossary-card:hover {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.vendor-glossary-card strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.vendor-glossary-card p {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Related Tools Section (Internal Linking) */
.vendor-seo-related {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.vendor-seo-related h3 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.vendor-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vendor-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vendor-related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.vendor-related-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    background: var(--dark-color);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
}

.vendor-related-card span {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.vendor-related-card:hover span {
    color: var(--primary-color);
}


.vendor-seo-tag {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}


