/* B2B Commerce - WordPress Admin Integration CSS */

/* Ensure no red borders anywhere */
.b2b-admin-wrapper,
.b2b-admin-content,
.b2b-admin-card,
.b2b-unified-nav,
.b2b-nav-header,
.b2b-nav-menu,
.b2b-nav-item {
    border: none !important;
    outline: none !important;
}

/* Override any potential red border styling */


/* Specific override for any red border */
.b2b-admin-content {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure clean styling */
.b2b-admin-wrapper {
    border: none !important;
    outline: none !important;
}

/* Main wrapper for SoftivusB2B admin pages */
.b2b-admin-wrapper {
    margin: 20px 0;
    display: flex;
    min-height: calc(100vh - 100px);
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.b2b-admin-wrapper .dashicons,.b2b-admin-wrapper .dashicons-before:before{
    height:unset !important;
}

/* Unified Navigation */
.b2b-unified-nav {
    width: 280px;
    background: linear-gradient(135deg, #23272f 0%, #2c313a 100%);
    color: white;
    padding: 0;
    flex-shrink: 0;
    position: relative;
}

.b2b-unified-nav::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

.b2b-nav-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

.b2b-nav-brand {
    display: flex;
    align-items: center;
}

.b2b-nav-brand h2 {
    color: white !important;
    margin: 0 !important;
    font-weight: 600;
}

.b2b-nav-brand small {
    color: #b0b3b8 !important;
    font-weight: 400;
}

.b2b-nav-menu {
    padding: 20px 0;
}

.b2b-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #b0b3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    margin: 2px 0;
}

.b2b-admin-textarea{
    border-color:unset !important;
}

.b2b-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: #2196f3;
    transform: translateX(3px);
}

.b2b-nav-item.active {
    background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-left-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3);
}

.b2b-nav-item .dashicons {
    margin-right: 15px;
    font-size: 1.2em;
    width: auto;
    height: auto;
    opacity: 0.9;
}

.b2b-nav-item span:last-child {
    font-weight: 500;
    font-size: 0.95em;
}

/* Main content area */
.b2b-admin-content {
    background: #f6f8fb; /* softer neutral background */
    padding: 48px; /* add more breathing room */
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.b2b-admin-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #1976d2, #42a5f5);
}

/* Header styles */
.b2b-admin-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.b2b-admin-header h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #23272f;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.b2b-admin-header .icon {
    margin-right: 12px;
    color: #2196f3;
    font-size: 1.2em;
}

.b2b-admin-header p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Card styles */
.b2b-admin-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px; /* slightly larger padding for space */
    margin-bottom: 28px;
    border:1px solid rgb(0 0 0 / .06) !important;
    transition: all 0.3s ease;
}



.b2b-admin-card-title {
    font-size: 1.25em;
    font-weight: 600;
    color: #23272f;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #eef1f4;
}

.b2b-admin-card-title .icon {
    margin-right: 10px;
    color: #2196f3;
    font-size: 1.1em;
    margin-top: 6px !important;
}

/* Form styles */
.b2b-admin-form-group {
    margin-bottom: 20px;
}

.b2b-admin-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #23272f;
  
}

.b2b-admin-form-group input[type="text"],
.b2b-admin-form-group input[type="email"],
.b2b-admin-form-group input[type="number"],
.b2b-admin-form-group input[type="password"],
.b2b-admin-form-group textarea,
.b2b-admin-wrapper input[type="text"],
.b2b-admin-wrapper input[type="email"],
.b2b-admin-wrapper input[type="number"],
.b2b-admin-wrapper input[type="password"],
.b2b-admin-content input[type="text"],
.b2b-admin-content input[type="email"],
.b2b-admin-content input[type="number"],
.b2b-admin-content input[type="password"],
.b2b-admin-card input[type="text"],
.b2b-admin-card input[type="email"],
.b2b-admin-card input[type="number"],
.b2b-admin-card input[type="password"] {
    width: 100%;
    padding: 5px 15px;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.b2b-admin-card  .b2b-admin-table tbody tr td:last-child {
   text-align: left !important;
}

/* Enhanced select field styling for better visibility */
.b2b-admin-form-group select,
.b2b-admin-wrapper select,
.b2b-admin-content select,
.b2b-admin-card select,
select[name="role"],
select[name="approval"],
select[name="bulk-action-selector"] {
    width: 100%;
    max-width:100%;
    padding: 5px 15px;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



/* Enhanced input field hover and focus states */
.b2b-admin-form-group input:hover,
.b2b-admin-form-group textarea:hover,
.b2b-admin-wrapper input[type="text"]:hover,
.b2b-admin-wrapper input[type="email"]:hover,
.b2b-admin-wrapper input[type="number"]:hover,
.b2b-admin-wrapper input[type="password"]:hover,
.b2b-admin-content input[type="text"]:hover,
.b2b-admin-content input[type="email"]:hover,
.b2b-admin-content input[type="number"]:hover,
.b2b-admin-content input[type="password"]:hover,
.b2b-admin-card input[type="text"]:hover,
.b2b-admin-card input[type="email"]:hover,
.b2b-admin-card input[type="number"]:hover,
.b2b-admin-card input[type="password"]:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.b2b-admin-form-group input:focus,
.b2b-admin-form-group textarea:focus,
.b2b-admin-wrapper input[type="text"]:focus,
.b2b-admin-wrapper input[type="email"]:focus,
.b2b-admin-wrapper input[type="number"]:focus,
.b2b-admin-wrapper input[type="password"]:focus,
.b2b-admin-content input[type="text"]:focus,
.b2b-admin-content input[type="email"]:focus,
.b2b-admin-content input[type="number"]:focus,
.b2b-admin-content input[type="password"]:focus,
.b2b-admin-card input[type="text"]:focus,
.b2b-admin-card input[type="email"]:focus,
.b2b-admin-card input[type="number"]:focus,
.b2b-admin-card input[type="password"]:focus {
    outline: none;
    border-color: #6c757d !important;
    box-shadow: 0 0 0 3px rgba(108,117,125,0.2);
    background-color: #f8f9fa;
    transform: translateY(-1px);
}


/* Toggle switch */
.b2b-admin-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.b2b-admin-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.b2b-admin-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.b2b-admin-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.b2b-admin-toggle input:checked + .b2b-admin-toggle-slider {
    background-color: #2196f3;
}

.b2b-admin-toggle input:checked + .b2b-admin-toggle-slider:before {
    transform: translateX(26px);
}

/* Button styles */
.b2b-admin-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33,150,243,0.3);
    opacity:1 !important;
    padding: 12px 18px !important;
}

.b2b-admin-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33,150,243,0.4);
    text-decoration: none;
}

.b2b-admin-btn .icon {
    
    font-size: 1em;
}

.b2b-admin-btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

.b2b-admin-btn-success:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    box-shadow: 0 4px 12px rgba(76,175,80,0.4);
}

.b2b-admin-btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 2px 8px rgba(244,67,54,0.3);
}

.b2b-admin-btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    box-shadow: 0 4px 12px rgba(244,67,54,0.4);
}

/* Badge styles */
.b2b-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-badge-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.b2b-badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.b2b-badge-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table styles */
.b2b-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.b2b-admin-table th {
    background: rgb(248 250 252 / 0.8);
    color: #23272f;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    color: #495057;
    font-size: 0.95em;
}

/* Matrix tables (roles x methods) - consistent checkbox alignment */
.b2b-matrix-table th,
.b2b-matrix-table td {
    vertical-align: middle;
}
.b2b-matrix-table thead th {
    text-align: center;
}
.b2b-matrix-table tbody td:first-child {
    text-align: left;
}
.b2b-matrix-table tbody td:not(:first-child) {
    text-align: center;
}
.b2b-matrix-table input[type="checkbox"] {
    display: inline-block;
    margin: 0 auto;
}

.b2b-admin-table tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.b2b-admin-table tr:last-child td {
    border-bottom: none;
}

.b2b-admin-table tbody tr td:last-child {
    text-align: right;
}

/* Utility input style for toolbars */
.b2b-input {
    padding: 10px 12px;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px;
    background:#fff;
}

/* Import/Export specific styles */
.b2b-import-export-container {
    max-width: 800px;
}

.b2b-import-export-section {
    margin-bottom: 30px;
}

.b2b-import-export-section h3 {
    color: #23272f;
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.b2b-export-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.b2b-export-options .button {
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .b2b-admin-wrapper {
        flex-direction: column;
        margin: 10px 0;
    }
    
    .b2b-unified-nav {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }
    
    .b2b-admin-content {
        border-radius: 0 0 8px 8px;
        padding: 20px;
    }
    
    .b2b-admin-header h1 {
        font-size: 1.5em;
    }
    
    .b2b-admin-card {
        padding: 20px;
    }
    
    .b2b-admin-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .b2b-export-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .b2b-export-options .button {
        width: 100%;
        text-align: center;
    }
}

/* WordPress admin integration */
.wp-admin .b2b-admin-wrapper {
    margin: 20px 0;
}

.wp-admin .b2b-admin-content {
    background: #ffffff;
}

/* Stats grid */
.b2b-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.b2b-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.b2b-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.b2b-stat-card .stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #2196f3;
    margin-bottom: 10px;
    display: block;
}

.b2b-stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-stat-card .stat-icon {
    font-size: 2em;
    color: #2196f3;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Quick actions */
.b2b-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* Enhanced checkbox styling for better visibility */
.b2b-admin-wrapper input[type="checkbox"],
.b2b-admin-content input[type="checkbox"],
.b2b-admin-card input[type="checkbox"],
#select-all-users,
.user-checkbox {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #6c757d !important;
    border-radius: 3px;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}

.b2b-admin-wrapper input[type="checkbox"]:checked,
.b2b-admin-content input[type="checkbox"]:checked,
.b2b-admin-card input[type="checkbox"]:checked,
#select-all-users:checked,
.user-checkbox:checked {
    background-color: #2196f3;
    border-color: #2196f3;
}

.b2b-admin-wrapper input[type="checkbox"]:checked::after,
.b2b-admin-content input[type="checkbox"]:checked::after,
.b2b-admin-card input[type="checkbox"]:checked::after,
#select-all-users:checked::after,
.user-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.b2b-admin-wrapper input[type="checkbox"]:hover,
.b2b-admin-content input[type="checkbox"]:hover,
.b2b-admin-card input[type="checkbox"]:hover,
#select-all-users:hover,
.user-checkbox:hover {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.2);
}

/* Empty state */
.b2b-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.b2b-empty-state .dashicons {
    font-size: 4em;
    color: #dee2e6;
    margin-bottom: 20px;
} 

td.actions-cell {
    display: flex;
    flex-direction: column;
    gap:5px
}

td.actions-cell button {
    background: #2196f3;
    padding: 5px;
    border-radius: 5px;
    color: #fff
}

td.actions-cell span.b2b-status-badge.b2b-status-closed {
    background: #2196f3;
    padding: 5px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
}
.analytics-title{
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}
span.icon.dashicons.dashicons-edit {
    margin-top: 4px;
}

/* Modal Styles - Extracted from AdminPanel.php */
.b2b-modal {
    position: fixed !important;
    z-index: 1000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.5) !important;
}

.b2b-modal-content {
    background-color: #fefefe !important;
    margin: 5% auto !important;
    padding: 0 !important;
    border: 1px solid #888 !important;
    width: 80% !important;
    max-width: 600px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.b2b-modal-header {
    padding: 20px !important;
    border-bottom: 1px solid #ddd !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.b2b-modal-header h3 {
    margin: 0 !important;
    color: #333 !important;
}

.b2b-modal-close {
    color: #aaa !important;
    font-size: 28px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

.b2b-modal-close:hover {
    color: #000 !important;
}

.b2b-modal form {
    padding: 20px !important;
}

.b2b-modal-footer {
    padding: 20px !important;
    border-top: 1px solid #ddd !important;
    text-align: right !important;
}

.b2b-modal-footer button {
    margin-left: 10px !important;
}

/* Quote Action Styles - Extracted from AdminPanel.php */
.b2b-quote-action {
    display: inline-block !important;
    padding: 6px 12px !important;
    margin: 2px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    min-width: 60px !important;
}

.b2b-quote-action:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.b2b-quote-action.processing {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.b2b-admin-btn {
    background: #0073aa !important;
    color: white !important;
    border: 1px solid #0073aa !important;
}

.b2b-admin-btn:hover {
    background: #005a87 !important;
    color: white !important;
}

.b2b-admin-btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

.b2b-admin-btn-danger:hover {
    background: #c82333 !important;
}

.b2b-delete-quote {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-width: 60px !important;
}

.b2b-delete-quote:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Status Badge Styles */
.b2b-status-badge {
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 0.75em !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.b2b-status-pending {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeaa7 !important;
}

.b2b-status-responded {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.b2b-status-closed {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

.b2b-status-approved {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.b2b-status-declined {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Message Content Styles */
.message-content {
    max-width: 300px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Response Modal Styles */
#b2b-response-modal,
#b2b-view-response-modal,
#b2b-delete-modal {
    display: none !important;
}

/* Button Styles for Inquiries */
.b2b-respond-btn,
.b2b-close-btn,
.b2b-view-response-btn,
.b2b-delete-btn {
    background: #2196f3 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.8em !important;
    margin: 2px !important;
    transition: all 0.2s ease !important;
}

.b2b-respond-btn:hover,
.b2b-close-btn:hover,
.b2b-view-response-btn:hover,
.b2b-delete-btn:hover {
    background: #1976d2 !important;
    transform: translateY(-1px) !important;
}

.b2b-delete-btn {
    background: #dc3545 !important;
}

.b2b-delete-btn:hover {
    background: #c82333 !important;
}

/* Analytics Grid Styles */
.b2b-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.b2b-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    text-align: center !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease !important;
}

.b2b-stat-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.b2b-stat-card .stat-value {
    font-size: 2.5em !important;
    font-weight: 700 !important;
    color: #2196f3 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.b2b-stat-card .stat-label {
    color: #6c757d !important;
    font-size: 0.9em !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.b2b-stat-card .stat-icon {
    font-size: 2em !important;
    color: #2196f3 !important;
    margin-bottom: 15px !important;
    opacity: 0.8 !important;
}

/* Revenue Analytics Cards */
.b2b-revenue-card {
    padding: 20px !important;
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
    color: white !important;
    border-radius: 8px !important;
}

.b2b-revenue-card h3 {
    margin: 0 0 20px 0 !important;
    font-size: 1.2em !important;
}

.b2b-revenue-card .revenue-value {
    font-size: 2em !important;
    font-weight: bold !important;
}

.b2b-revenue-card p {
    margin: 10px 0 0 0 !important;
    opacity: 0.9 !important;
}

/* User Analytics Cards */
.b2b-user-analytics {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.b2b-user-card {
    padding: 24px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    text-align: center !important;
}

.b2b-user-card .user-value {
    font-size: 2em !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
}

.b2b-user-card .user-label {
    color: #666 !important;
    font-size: 0.9em !important;
}

/* Performance Metrics */
.b2b-performance-metrics {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

.b2b-metric-card {
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
}

.b2b-metric-card h4 {
    margin: 0 0 10px 0 !important;
    color: #23272f !important;
}

.b2b-metric-card .metric-value {
    font-size: 1.5em !important;
    font-weight: bold !important;
    color: #2196f3 !important;
}

.b2b-metric-card p {
    margin: 15px 0 5px 0 !important;
    color: #666 !important;
    font-size: 0.9em !important;
}

/* System Test Styles */
.b2b-test-card {
    padding: 24px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
}

.b2b-test-card h4 {
    margin: 0 0 5px 0 !important;
    color: #23272f !important;
}

.b2b-test-card p {
    margin: 0 !important;
}

.b2b-test-success {
    color: #4caf50 !important;
}

.b2b-test-failed {
    color: #f44336 !important;
}

.b2b-test-info {
    color: #2196f3 !important;
}

/* Troubleshooting Guide */
.b2b-troubleshooting {
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
}

.b2b-troubleshooting h4 {
    margin: 0 0 15px 0 !important;
    color: #23272f !important;
}

.b2b-troubleshooting-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
}

.b2b-troubleshooting-item h5 {
    margin: 0 0 10px 0 !important;
}

.b2b-troubleshooting-item p {
    margin: 0 !important;
    font-size: 0.9em !important;
    color: #666 !important;
}

/* Quick Actions */
.b2b-quick-actions {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* Import/Export Styles */
.b2b-import-export-container {
    max-width: 800px !important;
}

.b2b-import-export-section {
    margin-bottom: 30px !important;
}

.b2b-import-export-section h3 {
    color: #23272f !important;
    font-size: 1.3em !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e9ecef !important;
}

.b2b-export-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
}

.b2b-export-options .button {
    margin: 0 !important;
}

/* Responsive Design for New Styles */
@media (max-width: 768px) {
    .b2b-modal-content {
        width: 95% !important;
        margin: 10% auto !important;
    }
    
    .b2b-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .b2b-user-analytics {
        grid-template-columns: 1fr !important;
    }
    
    .b2b-performance-metrics {
        grid-template-columns: 1fr !important;
    }
    
    .b2b-troubleshooting-grid {
        grid-template-columns: 1fr !important;
    }
    
    .b2b-quick-actions {
        flex-direction: column !important;
    }
    
    .b2b-export-options {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .b2b-export-options .button {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Frontend Styles - Extracted from Frontend.php */
.b2b-registration-form {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

.b2b-registration-form h2 {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.b2b-message {
    padding: 15px !important;
    margin-bottom: 20px !important;
    border-radius: 4px !important;
    border: 1px solid !important;
}

.b2b-message.notice-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.b2b-message.notice-error {
    background: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 15px !important;
}

.form-group {
    margin-bottom: 15px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
}

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

.password-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 60px !important;
}


.password-toggle .eye-icon {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
    background: transparent !important;
}

/* SIMPLE PASSWORD TOGGLE - BULLETPROOF SOLUTION */
.b2b-registration-form .password-toggle {
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: normal !important;
    width: 50px !important;
    height: 20px !important;
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    display: block !important;
    text-align: center !important;
    line-height: 12px !important;
}

.b2b-registration-form .password-toggle:hover {
    background: #e0e0e0 !important;
}

.b2b-registration-form .password-toggle .eye-icon {
    display: none !important;
}

.b2b-registration-form .password-toggle .eye-icon.show::before {
    content: "Show" !important;
    display: block !important;
    font-size: 10px !important;
}

.b2b-registration-form .password-toggle .eye-icon.hide::before {
    content: "Hide" !important;
    display: block !important;
    font-size: 10px !important;
}

.b2b-submit-btn {
    background: #2196f3 !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.b2b-submit-btn:hover {
    background: #1976d2 !important;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f44336 !important;
    background-color: #ffebee !important;
}

.b2b-message.notice-error {
    background-color: #ffebee !important;
    border: 1px solid #f44336 !important;
    color: #c62828 !important;
}

.b2b-message.notice-success {
    background-color: #e8f5e8 !important;
    border: 1px solid #4caf50 !important;
    color: #2e7d32 !important;
}

.username-feedback,
.email-feedback {
    margin-top: 5px !important;
    font-size: 12px !important;
    padding: 5px !important;
    border-radius: 3px !important;
}

.username-feedback.error,
.email-feedback.error {
    background-color: #ffebee !important;
    color: #c62828 !important;
    border: 1px solid #f44336 !important;
}

.username-feedback.success,
.email-feedback.success {
    background-color: #e8f5e8 !important;
    color: #2e7d32 !important;
    border: 1px solid #4caf50 !important;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ProductManager Styles - Extracted from ProductManager.php */
#b2bco_visibility_fields .form-field {
    margin: 12px 0 !important;
}

#b2bco_visibility_box {
    border: 1px solid #e2e8f0 !important;
    padding: 12px 14px !important;
    border-radius: 6px !important;
    background: #fafbfc !important;
}

#b2bco_visibility_fields select {
    min-width: 280px !important;
    min-height: 120px !important;
    width: 100% !important;
}

#b2bco_visibility_summary {
    margin-left: 8px !important;
    color: #666 !important;
}