@extends('layouts.master')

@section('title', 'New Conflict Check')

@section('content')
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">

<style>
:root{--sky:#0ea5e9;--sky-deep:#0369a1;--sky-light:#38bdf8;--sky-ghost:rgba(14,165,233,.07);--sky-border:rgba(14,165,233,.2);--ink:#0f172a;--ink-mid:#475569;--ink-soft:#94a3b8;--white:#fff;--off:#f7fbff;--surface:#eef6fd;--border:#daeaf8;--fd:'Cormorant Garamond',Georgia,serif;--fb:'DM Sans',system-ui,sans-serif}
.main-content{background:var(--off);font-family:var(--fb)}
.mt-page{max-width:900px;margin:0 auto;padding:40px 24px 64px}
.mt-hero{background:linear-gradient(135deg,var(--sky-deep),var(--sky));border-radius:22px;padding:26px 32px;color:#fff;box-shadow:0 10px 28px rgba(14,165,233,.2);margin-bottom:20px}
.mt-hero h1{margin:0;font-family:var(--fd);font-size:32px}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:0 6px 18px rgba(14,165,233,.08)}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin-bottom:6px}
input,textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:13px}
textarea{min-height:100px;resize:vertical}
.actions{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:18px}
.btn{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:10px;border:1px solid var(--sky-border);text-decoration:none;font-size:13px;font-weight:600;background:#fff;color:var(--sky-deep)}
.btn.primary{background:linear-gradient(135deg,var(--sky-deep),var(--sky));color:#fff;border-color:var(--sky-deep)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--sky-border);background:var(--sky-ghost);font-size:12px;color:var(--sky-deep)}
</style>

<div class="mt-page">
    <nav style="font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin-bottom:14px;">
        <a href="{{ route('modules.edit') }}" style="color:var(--ink-soft);text-decoration:none;">Edit Menu</a>
        <span>›</span>
        <a href="{{ route('modules.edit.matters') }}" style="color:var(--ink-soft);text-decoration:none;">Matters</a>
        <span>›</span>
        <span style="color:var(--sky-deep);">New Conflict Check</span>
    </nav>

    <div class="mt-hero">
        <h1>New Conflict Check</h1>
    </div>

    <form class="card">
        <div class="form-grid">
            <div>
                <label>Client Names</label>
                <textarea placeholder="Add all client names"></textarea>
            </div>
            <div>
                <label>Opposing Parties</label>
                <textarea placeholder="Add opposing parties"></textarea>
            </div>
            <div>
                <label>Organizations</label>
                <textarea placeholder="Add related organizations"></textarea>
            </div>
        </div>

        <div style="margin-top:12px;display:flex;align-items:center;gap:10px;">
            <span class="badge">Search Scope: Clients, Matters, Parties, Case Records</span>
        </div>

        <div class="actions">
            <a href="{{ route('modules.edit.matters') }}" class="btn">Cancel</a>
            <button type="submit" class="btn primary">Run Conflict Check</button>
        </div>
    </form>
</div>
@endsection
