<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Dashboard</title>
    <style>
        body{font-family:Inter,Segoe UI,Arial,sans-serif;background:#071018;color:#e6eef6;margin:0}
        .container{max-width:1000px;margin:48px auto;padding:24px}
        .card{background:rgba(13,17,20,0.6);padding:20px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
        .btn{display:inline-block;padding:10px 16px;border-radius:8px;background:#60a5fa;color:#06233b;text-decoration:none}
    </style>
</head>
<body>
    <div class="container">
        <div class="card">
            <h1>Welcome, {{ auth()->user()?->name ?? auth()->user()?->username }}</h1>
            <p class="muted">You're signed in as <strong>{{ auth()->user()?->email }}</strong> (role: {{ auth()->user()?->role }}).</p>

            <p style="margin-top:18px">This is the main dashboard. Add links to the vineyards, harvests and wines management here.</p>

            <form method="POST" action="{{ route('logout') }}" style="margin-top:18px;display:inline-block">
                @csrf
                <button type="submit" class="btn">Logout</button>
            </form>
        </div>
    </div>
</body>
</html>
