        /* In-page message system */
        .message-container {
            position: fixed;
            top: 80px;
            right: 20px;
            max-width: 400px;
            padding: 15px 40px 15px 15px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
            font-weight: 500;
            display: none;
        }
        
        .message-container.success {
            background-color: #e8f5e8;
            color: #2e7d32;
            border-left: 4px solid #4caf50;
        }
        
        .message-container.error {
            background-color: #ffebee;
            color: #c62828;
            border-left: 4px solid #f44336;
        }
        
        .message-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            color: inherit;
            opacity: 0.7;
        }
        
        .message-close:hover {
            opacity: 1;
        }

        /* OTHER field styling for all dropdowns */
        .other-field-container {
            display: none;
            margin-top: 10px;
        }
        
        .other-field-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .other-field-input {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .mini-crud-icons {
            display: flex;
            gap: 4px;
        }
        
        .mini-crud-btn {
            background: none;
            border: none;
            padding: 4px 6px;
            cursor: pointer;
            font-size: 14px;
            border-radius: 3px;
            transition: background 0.2s;
        }
        
        .mini-crud-btn:hover {
            background: #f0f0f0;
        }

        /* Enhanced form field labels with FFO triggers */
        .form-group label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
            font-weight: 500;
            color: #333;
        }

        /* FFO trigger button styling */
        .ffo-trigger {
            background: transparent;
            border: none;
            color: #3498db;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 3px;
            transition: all 0.3s ease;
            margin-left: 5px;
        }

        .ffo-trigger:hover {
            background: #e8f4f8;
            color: #2980b9;
        }

        .ffo-icon {
            animation: boltPulse 2s infinite;
            font-size: 1.1rem;
        }

        @keyframes boltPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* Constrain page width like other SafetyBuddy pages */
        .providers-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header with TIP icon */
        .providers-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .providers-header h2 {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* Search and Filter Controls */
        .search-filter-controls {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        
        .search-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            align-items: center;
        }
        
        .search-input-container {
            position: relative;
            flex: 1;
        }
        
        #search-input {
            width: 100%;
            padding: 10px 40px 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        .clear-search-btn {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            padding: 5px;
        }
        
        .clear-search-btn:hover {
            color: #333;
        }
        
        .search-button {
            background-color: #4a6fa5;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }
        
        .search-button:hover {
            background-color: #3a5a8c;
        }
        
        .filter-view-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
        }
        
        .filter-section {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .filter-section label {
            font-weight: 500;
            color: #555;
        }
        
        #provider-filter {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            min-width: 150px;
        }
        
        .view-toggle {
            display: flex;
            background: #f5f5f5;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .view-toggle button {
            padding: 8px 15px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .view-toggle button.active {
            background: #4a6fa5;
            color: white;
        }
        
        /* Results info */
        .results-info {
            margin-bottom: 15px;
            color: #666;
            font-size: 14px;
        }
        
        /* List view styles */
        .providers-list {
            display: none;
        }
        
        .providers-list.active {
            display: block;
        }
        
        .providers-table {
            width: 100%;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .providers-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .providers-table th,
        .providers-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        .providers-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #333;
        }
        
        .providers-table tr:hover {
            background: #f8f9fa;
        }
        
        .action-buttons {
            display: flex;
            gap: 5px;
        }
        
        .action-btn {
            padding: 5px 8px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            font-size: 12px;
        }
        
        .action-btn.view-btn {
            background: #4a6fa5;
            color: white;
        }
        
        .action-btn.edit-btn {
            background: #f39c12;
            color: white;
        }
        
        .action-btn.delete-btn {
            background: #e74c3c;
            color: white;
        }
        
        /* Card view styles */
        .providers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
        }
        
        .providers-grid.active {
            display: grid;
        }
        
        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 30px;
            padding: 20px;
        }
        
        .pagination button {
            padding: 8px 15px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .pagination button:hover:not(:disabled) {
            background: #f5f5f5;
        }
        
        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .pagination-text {
            font-weight: 500;
            color: #555;
        }
        
        /* Enhanced card styling */
        .provider-card {
            border: 2px solid #519df7;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            padding: 20px;
            background: white;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .provider-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .provider-name {
            font-size: 1.25rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
        }
        
        .provider-details {
            margin-bottom: 15px;
        }
        
        .provider-details div {
            margin-bottom: 5px;
            font-size: 14px;
        }
        
        .provider-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        
        .provider-actions button {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .edit-btn {
            background: #f39c12;
            color: white;
        }
        
        .delete-btn {
            background: #e74c3c;
            color: white;
        }
        
        .view-btn {
            background: #4a6fa5;
            color: white;
        }
        
        /* Loading and empty states */
        .loading-indicator {
            text-align: center;
            padding: 40px;
            color: #666;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: #666;
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #ccc;
        }
        
        /* Enhanced form fields */
        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .form-group {
            flex: 1;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        
        /* Provider form */
        .provider-form {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        
        .form-actions {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .cancel-form-btn {
            background: #757575;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .save-btn {
            background: #4a6fa5;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .add-provider-btn {
            background: #53b175;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* Tab system */
        .provider-tabs {
            display: flex;
            background: #f5f5f5;
            border-radius: 8px;
            padding: 5px;
            margin-bottom: 20px;
        }
        
        .provider-tab {
            flex: 1;
            padding: 10px 20px;
            text-align: center;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .provider-tab.active {
            background: white;
            color: #4a6fa5;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .providers-container {
                padding: 0 15px;
            }
            
            .search-bar {
                flex-direction: column;
                gap: 10px;
            }
            
            .filter-view-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }
            
            .providers-grid {
                grid-template-columns: 1fr;
            }
            
            .form-row {
                flex-direction: column;
            }
            
            .pagination {
                flex-wrap: wrap;
                gap: 10px;
            }
        }