/* MAB Frontend Dashboard Styles */

/* Reset any conflicting styles */
.mab-frontend-body * {
    box-sizing: border-box;
}

.mab-frontend-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

.mab-frontend-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    /* Debug: Add border to see container */
    /* border: 2px solid red; */
}

/* Sidebar Navigation */
.mab-sidebar {
    width: 20%;
    min-width: 250px;
    max-width: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: relative;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    /* Debug: Add border to see sidebar */
    /* border: 2px solid blue; */
}

.mab-sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mab-sidebar-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white !important;
}

.mab-user-role {
    font-size: 0.85rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    color: white !important;
}

.mab-sidebar-menu {
    flex: 1;
    padding: 1rem 0;
}

.mab-nav-link {
    color: white !important;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.mab-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.mab-nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
}

.mab-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.mab-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mab-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mab-user-avatar {
    font-size: 1.5rem;
    opacity: 0.8;
}

.mab-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mab-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white !important;
}

.mab-user-role-small {
    font-size: 0.75rem;
    opacity: 0.7;
    color: white !important;
}

.mab-logout-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.mab-logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Toggle */
.mab-mobile-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 1.2rem;
}

/* Login Page */
.mab-login-wrapper {
    max-width: 400px;
    margin: 4rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mab-login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.mab-login-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.mab-login-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.mab-login-form-container {
    padding: 2rem;
}

.mab-form-group {
    margin-bottom: 1.5rem;
}

.mab-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.mab-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mab-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mab-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.mab-login-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mab-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.mab-login-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mab-login-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mab-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mab-login-result {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.mab-login-result .mab-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mab-login-result .mab-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mab-login-footer {
    background: #f8f9fa;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.mab-security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.8rem;
}

.mab-shield-icon {
    font-size: 1rem;
}

/* Dashboard Content */
.mab-dashboard-content {
    flex: 1;
    flex-grow: 1;
    padding: 2rem;
    min-height: 100vh;
    background: #f8f9fa;
    overflow-x: auto;
    width: 80%;
    /* Debug: Add border to see content */
    /* border: 2px solid green; */
}

/* Section Navigation */
.mab-section {
    display: none;
}

.mab-section.active {
    display: block;
}

.mab-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mab-section-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.mab-dashboard-header {
    margin-bottom: 2rem;
}

.mab-dashboard-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.mab-dashboard-header p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

.mab-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mab-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.mab-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.mab-stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.mab-stat-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mab-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.mab-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mab-action-btn {
    background: white;
    color: #333;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mab-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
    color: #333;
    text-decoration: none;
}

.mab-btn-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.mab-btn-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Offers Page */
.mab-offers-content {
    flex: 1;
    padding: 2rem;
}

.mab-offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mab-offers-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.mab-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mab-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.mab-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mab-btn-secondary:hover {
    background: #5a6268;
}

.mab-offer-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.mab-form-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.mab-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mab-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.mab-offers-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mab-table {
    width: 100%;
    border-collapse: collapse;
}

.mab-table th,
.mab-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.mab-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.mab-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mab-status-active {
    background: #d4edda;
    color: #155724;
}

.mab-status-revoked {
    background: #f8d7da;
    color: #721c24;
}

.mab-status-expired {
    background: #fff3cd;
    color: #856404;
}

/* Logs Page */
.mab-logs-content {
    flex: 1;
    padding: 2rem;
}

.mab-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mab-logs-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.mab-logs-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mab-logs-filters select {
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mab-logs-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mab-result {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mab-result-hit {
    background: #d4edda;
    color: #155724;
}

.mab-result-miss {
    background: #f8d7da;
    color: #721c24;
}

.mab-result-revoked {
    background: #fff3cd;
    color: #856404;
}

.mab-result-expired {
    background: #d1ecf1;
    color: #0c5460;
}

/* Loading and Error States */
.mab-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.mab-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mab-mobile-toggle {
        display: block !important;
    }
    
    .mab-sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
    }
    
    .mab-sidebar.open {
        transform: translateX(0);
    }
    
    .mab-dashboard-content {
        width: 100%;
        padding: 1rem;
    }
    
    .mab-dashboard-content,
    .mab-offers-content,
    .mab-logs-content {
        padding: 1rem;
    }
    
    .mab-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mab-form-row {
        grid-template-columns: 1fr;
    }
    
    .mab-offers-header,
    .mab-logs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .mab-logs-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* User Role Display - styles already defined above */

.mab-role-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

/* User Info in Navbar */
.mab-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mab-user-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Role-specific Stats */
.mab-role-stats {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* Settings Grid */
.mab-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mab-settings-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mab-settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mab-settings-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.mab-settings-card h3 i {
    color: #667eea;
    margin-right: 8px;
}

.mab-settings-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Enhanced Action Buttons */
.mab-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mab-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mab-action-btn i {
    font-size: 18px;
}

/* Enhanced Navbar */
.mab-navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mab-navbar-brand h2 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.mab-navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mab-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mab-nav-link:hover,
.mab-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mab-nav-link i {
    font-size: 16px;
}

/* Search and Filter Controls */
.mab-search-controls {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mab-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.mab-search-group,
.mab-filter-group,
.mab-pagination-controls {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.mab-search-group label,
.mab-filter-group label,
.mab-pagination-controls label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.mab-search-group input,
.mab-filter-group select,
.mab-pagination-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mab-search-group input:focus,
.mab-filter-group select:focus,
.mab-pagination-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Section Actions */
.mab-section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mab-section-actions .mab-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mab-section-actions .mab-btn-secondary:hover {
    background: #5a6268;
}

/* Pagination Styles */
.mab-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.mab-pagination-info {
    color: #666;
    font-size: 14px;
}

.mab-pagination-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.mab-btn-pagination {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mab-btn-pagination:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.mab-btn-pagination:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.mab-page-numbers {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}

.mab-page-number {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mab-page-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.mab-page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Enhanced Table Styles */
.mab-offers-list,
.mab-logs-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.mab-table {
    width: 100%;
    border-collapse: collapse;
}

.mab-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

.mab-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.mab-table tr:hover {
    background: #f8f9fa;
}

.mab-table .mab-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mab-table .mab-status.active {
    background: #d4edda;
    color: #155724;
}

.mab-table .mab-status.revoked {
    background: #f8d7da;
    color: #721c24;
}

.mab-table .mab-status.expired {
    background: #fff3cd;
    color: #856404;
}

.mab-table .mab-actions {
    display: flex;
    gap: 5px;
}

.mab-table .mab-btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mab-table .mab-btn-edit {
    background: #007bff;
    color: white;
}

.mab-table .mab-btn-edit:hover {
    background: #0056b3;
}

.mab-table .mab-btn-delete {
    background: #dc3545;
    color: white;
}

.mab-table .mab-btn-delete:hover {
    background: #c82333;
}

/* Bulk Actions */
.mab-bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    margin: 15px 0;
}

.mab-bulk-info {
    color: #1976d2;
    font-weight: 600;
    font-size: 14px;
}

.mab-bulk-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mab-bulk-buttons select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mab-bulk-buttons button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mab-bulk-buttons .mab-btn-secondary {
    background: #6c757d;
    color: white;
}

.mab-bulk-buttons .mab-btn-secondary:hover {
    background: #5a6268;
}

/* Enhanced Table Features */
.mab-table .mab-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.mab-table .mab-status-dropdown {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.mab-table .mab-status-dropdown:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.mab-table .mab-status-dropdown.active {
    background: #d4edda;
    border-color: #28a745;
}

.mab-table .mab-status-dropdown.revoked {
    background: #f8d7da;
    border-color: #dc3545;
}

.mab-table .mab-status-dropdown.expired {
    background: #fff3cd;
    border-color: #ffc107;
}

.mab-table .mab-offer-number {
    font-family: monospace;
    font-weight: 600;
    color: #667eea;
}

.mab-table .mab-client-name {
    font-weight: 600;
    color: #333;
}

.mab-table .mab-passport {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.mab-table .mab-program-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mab-table .mab-program-name {
    font-weight: 600;
    color: #333;
}

.mab-table .mab-consultant {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.mab-table .mab-countries {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.mab-table .mab-country-from {
    color: #666;
}

.mab-table .mab-country-to {
    color: #28a745;
    font-weight: 600;
}

.mab-table .mab-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.mab-table .mab-created-date {
    color: #666;
}

.mab-table .mab-updated-date {
    color: #667eea;
    font-weight: 600;
}

/* Action Buttons in Table */
.mab-table .mab-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.mab-table .mab-btn-status {
    background: #17a2b8;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mab-table .mab-btn-status:hover {
    background: #138496;
}

.mab-table .mab-btn-view {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mab-table .mab-btn-view:hover {
    background: #218838;
}

.mab-table .mab-btn-export {
    background: #6f42c1;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mab-table .mab-btn-export:hover {
    background: #5a32a3;
}

/* Responsive Table */
@media (max-width: 1200px) {
    .mab-table {
        font-size: 12px;
    }
    
    .mab-table th,
    .mab-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .mab-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .mab-bulk-actions {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .mab-bulk-buttons {
        justify-content: center;
    }
}

/* Responsive Design for Search Controls */
@media (max-width: 768px) {
    .mab-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mab-search-group,
    .mab-filter-group,
    .mab-pagination-controls {
        min-width: auto;
    }
    
    .mab-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mab-pagination-buttons {
        justify-content: center;
    }
}

/* Role-specific Dashboard Styles */
.mab-role-dashboard {
    margin-top: 20px;
}

.mab-role-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mab-role-stat {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mab-role-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mab-role-stat h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mab-role-stat p {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.mab-recent-activity {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 20px;
}

.mab-recent-activity h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.mab-activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mab-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mab-activity-item:hover {
    background: #e9ecef;
}

.mab-activity-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mab-activity-content {
    flex: 1;
}

.mab-activity-content p {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 500;
}

.mab-activity-time {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

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

.mab-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mab-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.mab-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mab-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.mab-stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.mab-stat-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading and Error States */
.mab-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.mab-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mab-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 16px;
}

/* Responsive Design for Role Dashboard */
@media (max-width: 768px) {
    .mab-role-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mab-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mab-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .mab-activity-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .mab-activity-icon {
        align-self: center;
    }
}

/* Enhanced Form Styles */
.mab-form-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mab-form-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.mab-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.mab-form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.mab-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.mab-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

/* Priority and Status Indicators */
.mab-priority-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mab-priority-indicator.low {
    background: #e9ecef;
    color: #6c757d;
}

.mab-priority-indicator.normal {
    background: #d1ecf1;
    color: #0c5460;
}

.mab-priority-indicator.high {
    background: #fff3cd;
    color: #856404;
}

.mab-priority-indicator.urgent {
    background: #f8d7da;
    color: #721c24;
}

.mab-status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mab-status-indicator.active {
    background: #d4edda;
    color: #155724;
}

.mab-status-indicator.pending {
    background: #fff3cd;
    color: #856404;
}

.mab-status-indicator.draft {
    background: #e2e3e5;
    color: #383d41;
}

.mab-status-indicator.under_review {
    background: #d1ecf1;
    color: #0c5460;
}

.mab-status-indicator.expired {
    background: #f8d7da;
    color: #721c24;
}

.mab-status-indicator.revoked {
    background: #f5c6cb;
    color: #721c24;
}

/* Expiry Date Warnings */
.mab-expiry-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.mab-expiry-warning.urgent {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.mab-expiry-warning.critical {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    font-weight: 600;
}

/* Tags Display */
.mab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.mab-tag {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Enhanced Table with New Columns */
.mab-table .mab-priority-column {
    text-align: center;
}

.mab-table .mab-expiry-column {
    font-size: 12px;
}

.mab-table .mab-tags-column {
    font-size: 11px;
}

.mab-table .mab-status-column {
    text-align: center;
}

/* Notifications Panel */
.mab-notifications-panel {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.mab-notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.mab-notification-item:hover {
    background: #f8f9fa;
}

.mab-notification-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.mab-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.mab-notification-icon.expiry {
    background: #ff9800;
}

.mab-notification-icon.status {
    background: #4caf50;
}

.mab-notification-icon.system {
    background: #2196f3;
}

.mab-notification-content {
    flex: 1;
}

.mab-notification-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.mab-notification-message {
    color: #666;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.mab-notification-time {
    color: #999;
    font-size: 12px;
}

/* Workflow Enhancement Features */
.mab-workflow-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.mab-workflow-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mab-workflow-btn.primary {
    background: #667eea;
    color: white;
}

.mab-workflow-btn.primary:hover {
    background: #5a6fd8;
}

.mab-workflow-btn.secondary {
    background: #6c757d;
    color: white;
}

.mab-workflow-btn.secondary:hover {
    background: #5a6268;
}

.mab-workflow-btn.success {
    background: #28a745;
    color: white;
}

.mab-workflow-btn.success:hover {
    background: #218838;
}

.mab-workflow-btn.warning {
    background: #ffc107;
    color: #212529;
}

.mab-workflow-btn.warning:hover {
    background: #e0a800;
}

.mab-workflow-btn.danger {
    background: #dc3545;
    color: white;
}

.mab-workflow-btn.danger:hover {
    background: #c82333;
}

/* Print Styles */
@media print {
    .mab-navbar {
        display: none;
    }
    
    .mab-action-btn {
        display: none;
    }
    
    .mab-search-controls,
    .mab-pagination {
        display: none;
    }
    
    .mab-role-dashboard {
        break-inside: avoid;
    }
    
    .mab-form-section {
        break-inside: avoid;
    }
}

/* Analytics, Templates, and Workflow Styles */
.mab-analytics-grid,
.mab-templates-grid,
.mab-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mab-analytics-card,
.mab-template-card,
.mab-workflow-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mab-analytics-card h3,
.mab-template-card h4,
.mab-workflow-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.mab-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mab-stat-label {
    font-weight: 500;
    color: #666;
}

.mab-stat-value {
    font-weight: 600;
    color: #333;
}

.mab-country-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mab-country-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Program and Country field styling */
.mab-program-name strong,
.mab-country-info strong {
    color: #333;
    font-weight: 600;
}

.mab-program-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.mab-country-info {
    font-size: 14px;
    color: #666;
}

.mab-country-from,
.mab-country-to {
    font-size: 13px;
    color: #666;
    margin: 2px 0;
}

/* Quick Add Section */
.mab-quick-add-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.mab-quick-add-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.mab-quick-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.mab-quick-add-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.mab-quick-add-item:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
}

.mab-quick-add-item.selected {
    border-color: #28a745;
    background: #d4edda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.mab-quick-add-item strong {
    color: #333;
    font-weight: 600;
}

.mab-quick-add-item br {
    margin-bottom: 5px;
}

/* Quick Create Form */
.mab-quick-create-container {
    margin-bottom: 30px;
}

.mab-form-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.mab-quick-create-info {
    background: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.mab-quick-create-info h4 {
    margin: 0 0 10px 0;
    color: #0066cc;
    font-size: 14px;
}

.mab-default-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.mab-default-item {
    font-size: 13px;
    color: #555;
    padding: 5px 0;
}

.mab-default-item strong {
    color: #333;
    font-weight: 600;
}

.mab-form-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.mab-template-actions,
.mab-workflow-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.mab-workflow-status {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.mab-btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.mab-btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .mab-analytics-grid,
    .mab-templates-grid,
    .mab-workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown scroll functionality for All Offers filters */
.mab-filter-group select {
    max-height: 100px;
    overflow-y: auto;
}

.mab-filter-group select option {
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure All Offers dropdowns have proper styling */
#all-offers-program-filter,
#all-offers-country-filter {
    max-height: 100px;
    overflow-y: auto;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#all-offers-program-filter option,
#all-offers-country-filter option {
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll functionality for ALL dropdowns in the system */
select {
    max-height: 100px;
    overflow-y: auto;
}

select option {
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific styling for Add New Offer form dropdowns */
#program_name,
#from_country,
#to_country {
    max-height: 100px;
    overflow-y: auto;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#program_name option,
#from_country option,
#to_country option {
    padding: 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar styling for dropdowns */
#all-offers-program-filter::-webkit-scrollbar,
#all-offers-country-filter::-webkit-scrollbar {
    width: 8px;
}

#all-offers-program-filter::-webkit-scrollbar-track,
#all-offers-country-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#all-offers-program-filter::-webkit-scrollbar-thumb,
#all-offers-country-filter::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#all-offers-program-filter::-webkit-scrollbar-thumb:hover,
#all-offers-country-filter::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Warning button styling */
.mab-btn-warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mab-btn-warning:hover {
    background: #e0a800;
    color: #212529;
    border-color: #d39e00;
}

/* Searchable Dropdown Styles */
.mab-searchable-dropdown {
    position: relative;
    width: 100%;
}

.mab-dropdown-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.mab-dropdown-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    background: transparent;
    cursor: pointer;
}

.mab-dropdown-arrow {
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    color: #666;
    transition: transform 0.3s ease;
}

.mab-dropdown-arrow.open {
    transform: rotate(180deg);
}

.mab-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mab-dropdown-options.show {
    display: block;
}

.mab-dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.mab-dropdown-option:hover {
    background-color: #f8f9fa;
}

.mab-dropdown-option.selected {
    background-color: #007bff;
    color: white;
}

.mab-dropdown-option:last-child {
    border-bottom: none;
}

/* Scrollbar for dropdown options */
.mab-dropdown-options::-webkit-scrollbar {
    width: 8px;
}

.mab-dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mab-dropdown-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.mab-dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Recent Activity Section */
.mab-recent-activity {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mab-recent-activity h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.mab-activity-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

.mab-activity-item {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mab-activity-item:last-child {
    border-bottom: none;
}

.mab-activity-item .mab-activity-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mab-activity-item .mab-activity-time {
    color: #6c757d;
    font-size: 12px;
    margin-left: auto;
}

/* Scrollbar for Recent Activity */
.mab-activity-list::-webkit-scrollbar {
    width: 8px;
}

.mab-activity-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mab-activity-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.mab-activity-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Logs List Scrollbar */
.mab-logs-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

.mab-logs-list::-webkit-scrollbar {
    width: 8px;
}

.mab-logs-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mab-logs-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.mab-logs-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Enhanced Analytics Styles */
.mab-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mab-analytics-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.mab-analytics-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mab-analytics-card h3 i {
    color: #007cba;
}

.mab-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.mab-stat-item:last-child {
    border-bottom: none;
}

.mab-stat-label {
    font-weight: 500;
    color: #666;
}

.mab-stat-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.mab-country-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mab-country-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.mab-country-list li:last-child {
    border-bottom: none;
}

.mab-country-name {
    font-weight: 500;
    color: #333;
}

.mab-country-count {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.mab-trends-list {
    max-height: 200px;
    overflow-y: auto;
}

.mab-trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.mab-trend-item:last-child {
    border-bottom: none;
}

.mab-trend-month {
    font-weight: 500;
    color: #333;
}

.mab-trend-count {
    color: #666;
    font-size: 14px;
}

.mab-verification-stats {
    max-height: 200px;
    overflow-y: auto;
}

.mab-verification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.mab-verification-item:last-child {
    border-bottom: none;
}

.mab-verification-date {
    font-weight: 500;
    color: #333;
}

.mab-verification-details {
    color: #666;
    font-size: 14px;
}

.mab-no-data {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Bulk Operations Modal Styles */
.mab-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mab-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.mab-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.mab-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mab-modal-close:hover {
    color: #333;
}

.mab-modal-body {
    padding: 20px;
}

.mab-modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.mab-offer-list {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

.mab-offer-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.mab-offer-item:last-child {
    border-bottom: none;
}

.mab-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.mab-offer-checkbox {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.mab-checkbox-text {
    flex: 1;
    line-height: 1.4;
}

.mab-checkbox-text strong {
    color: #333;
    font-weight: 600;
}

.mab-checkbox-text small {
    color: #666;
    font-size: 12px;
}

.mab-bulk-actions {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mab-bulk-actions button {
    padding: 8px 16px;
    font-size: 14px;
}

.mab-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mab-form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.mab-form-group {
    margin-bottom: 20px;
}

.mab-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}
