@extends('layouts.master')

@section('title', 'Account Type Details')

@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;--white:#fff;--off:#f7fbff;--border:#daeaf8;--fd:'Cormorant Garamond',Georgia,serif;--fb:'DM Sans',system-ui,sans-serif}
.main-content{background:var(--off);font-family:var(--fb)}
.page{max-width:900px;margin:0 auto;padding:40px 24px 64px}
.hero{background:linear-gradient(135deg,var(--sky-deep),var(--sky));border-radius:22px;padding:24px 30px;color:#fff;box-shadow:0 10px 28px rgba(14,165,233,.2);margin-bottom:22px}
.hero h1{margin:0;font-family:var(--fd);font-size:32px}
.card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:0 6px 20px rgba(14,165,233,.08)}
.row{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-bottom:12px}
.label{color:#64748b;text-transform:uppercase;font-size:11px;letter-spacing:.08em}
.value{color:#0f172a}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
.btn{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:10px;border:1px solid rgba(14,165,233,.2);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)}
</style>

<div class="page">
    <div class="hero">
        <h1>Account Type</h1>
    </div>

    <div class="card">
        <div class="row">
            <div class="label">Code</div>
            <div class="value">{{ $accountType->code }}</div>
        </div>
        <div class="row">
            <div class="label">Name</div>
            <div class="value">{{ $accountType->name }}</div>
        </div>
        <div class="row">
            <div class="label">Description</div>
            <div class="value">{{ $accountType->description ?? '—' }}</div>
        </div>
        <div class="actions">
            <a href="{{ route('account_types.index') }}" class="btn">Back</a>
            <a href="{{ route('account_types.edit.form', $accountType->id) }}" class="btn primary">Edit</a>
        </div>
    </div>
</div>
@endsection
