body{
font-family:system-ui,-apple-system,Segoe UI,Roboto;
background:#eef1f5;
margin:0;
padding:40px;
color:#111827;
}

.container{
max-width:1200px;
margin:auto;
}

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.topbar h1{
margin:0;
font-size:28px;
}

.topbar .actions{
display:flex;
gap:10px;
}

button{
background:#2563eb;
border:none;
color:white;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
font-size:14px;
}

button:hover{
background:#1e4fd7;
}

button.secondary{
background:#6b7280;
}

button.secondary:hover{
background:#4b5563;
}

button.danger{
background:#dc2626;
}

button.danger:hover{
background:#b91c1c;
}


/* QR cards grid */

.cards{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
gap:24px;
}


/* Card */

.card{
background:white;
border-radius:10px;
padding:20px;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
display:flex;
flex-direction:column;
justify-content:space-between;
min-height:190px;
}


/* Title */

.card h3{
margin:0 0 10px 0;
font-size:18px;
}


/* URL */

.card .url{
font-size:13px;
color:#374151;
word-break:break-all;
margin-bottom:10px;
}


/* Scan count */

.card .scans{
font-weight:600;
margin-bottom:14px;
}


/* Buttons */

.card .buttons{
display:flex;
flex-wrap:wrap;
gap:8px;
}


/* Analytics section */

.analytics{
margin-top:40px;
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
display:none;
}

.analytics h2{
margin-top:0;
}

.charts{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
margin-top:20px;
}

canvas{
width:100%;
max-height:320px;
}