import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { Toaster } from 'react-hot-toast'
import App from './App'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <BrowserRouter>
      <App />
      <Toaster
        position="bottom-right"
        toastOptions={{
          style: {
            background: '#1e2335',
            color: '#f0ead8',
            border: '1px solid rgba(232,160,69,0.2)',
            fontFamily: "'DM Sans', sans-serif",
            fontSize: '0.875rem',
          },
          success: { iconTheme: { primary: '#5cb87a', secondary: '#1e2335' } },
          error:   { iconTheme: { primary: '#e05c5c', secondary: '#1e2335' } },
        }}
      />
    </BrowserRouter>
  </React.StrictMode>
)
