/* ZEN Reifenverwaltung */
:root{
    --zr-bg:#f4f6f8;
    --zr-surface:#ffffff;
    --zr-border:#d9dee5;
    --zr-text:#18212f;
    --zr-muted:#64748b;
    --zr-primary:#0f3d5e;
    --zr-primary-soft:#e8f1f7;
    --zr-sidebar:#0f2638;
    --zr-sidebar-hover:#17384f;
    --zr-sidebar-active:#1d597d;
    --zr-radius:14px;
    --zr-shadow:0 10px 30px rgba(15,38,56,.08);
    --sidebar-width:260px;
    --header-height:72px;
}

*{box-sizing:border-box}

html,body{
    min-height:100%;
    margin:0;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:var(--zr-bg);
    color:var(--zr-text);
}

a{color:inherit}

.app-shell{
    display:flex;
    min-height:100vh;
}

.app-sidebar{
    width:var(--sidebar-width);
    background:var(--zr-sidebar);
    color:#fff;
    flex:0 0 var(--sidebar-width);
    min-height:100vh;
    position:sticky;
    top:0;
    display:flex;
    flex-direction:column;
}

.sidebar-brand{
    height:var(--header-height);
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 20px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.brand-mark{
    width:38px;
    height:38px;
    border-radius:12px;
    background:#fff;
    color:var(--zr-sidebar);
    display:grid;
    place-items:center;
    font-weight:800;
}

.brand-title{font-weight:800;line-height:1.1}
.brand-subtitle{font-size:12px;color:rgba(255,255,255,.68)}

.sidebar-nav{
    padding:16px 12px;
    display:flex;
    flex-direction:column;
}

.sidebar-footer{
    margin-top:auto;
    padding:16px 12px;
    border-top:1px solid rgba(255,255,255,.08);
}

.sidebar-link{
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 14px;
    margin-bottom:6px;
    border-radius:12px;
    color:rgba(255,255,255,.82);
    text-decoration:none;
    font-weight:600;
}

.sidebar-link:hover{
    background:var(--zr-sidebar-hover);
    color:#fff;
}

.sidebar-link.active{
    background:var(--zr-sidebar-active);
    color:#fff;
}

.app-main{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
}

.app-topbar{
    min-height:var(--header-height);
    background:var(--zr-surface);
    border-bottom:1px solid var(--zr-border);
    display:flex;
    align-items:center;
    gap:16px;
    padding:0 24px;
    position:sticky;
    top:0;
    z-index:20;
}

.sidebar-toggle{
    display:none;
    border:1px solid var(--zr-border);
    background:#fff;
    border-radius:10px;
    width:42px;
    height:42px;
    font-size:20px;
}

.topbar-title{
    font-size:18px;
    font-weight:800;
}

.topbar-subtitle{
    font-size:13px;
    color:var(--zr-muted);
}

.topbar-spacer{flex:1}

.topbar-user{
    font-weight:700;
    color:var(--zr-primary);
}

.app-content{
    flex:1;
    padding:28px;
}

.page-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.page-header h1{
    margin:0 0 6px;
    font-size:30px;
    letter-spacing:-.03em;
}

.page-header p{
    margin:0;
    color:var(--zr-muted);
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.dashboard-card{
    background:var(--zr-surface);
    border:1px solid var(--zr-border);
    border-radius:var(--zr-radius);
    box-shadow:var(--zr-shadow);
    padding:22px;
}

.card-label{
    color:var(--zr-muted);
    font-weight:700;
    font-size:14px;
    margin-bottom:12px;
}

.card-value{
    font-size:30px;
    font-weight:900;
    letter-spacing:-.04em;
}

.app-footer{
    border-top:1px solid var(--zr-border);
    color:var(--zr-muted);
    padding:14px 24px;
    font-size:13px;
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.error-page{
    background:var(--zr-surface);
    border:1px solid var(--zr-border);
    border-radius:var(--zr-radius);
    box-shadow:var(--zr-shadow);
    padding:40px;
    max-width:680px;
}

.error-page h1{
    margin:0 0 10px;
    font-size:64px;
}
	.sidebar-divider{
    border:0;
    border-top:1px solid rgba(255,255,255,.08);
    margin:14px 0;
}

.sidebar-section-title{
    padding:0 14px 10px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    color:rgba(255,255,255,.55);
    text-transform:uppercase;
}

.sidebar-sub{
    padding-left:28px;
    font-size:14px;
}