* { box-sizing: border-box; }

body {
    font-family: system-ui;
    background: #f9fafb;
    color: #222;
    margin: 0;
    line-height: 1.6;
}

header img {height: 50px;}

a { color: #f4c548; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    padding: 20px;
    margin: 12px 0;
    min-height: 75vh;
	overflow-x: auto;
}

.tabs { display:flex; gap:30px; margin-bottom:20px; border-bottom:1px solid #ddd; }
.tabs a { padding:12px 0; font-weight:600; color:#555; text-decoration:none; position:relative; }
.tabs a.active { color:#000; }
.tabs a.active::after { content:""; position:absolute; bottom:-1px; left:0; width:100%; height:3px; background:#000; border-radius:3px; }


.input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.btn {
    display: inline-flex;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
}

.btn.primary {background: #1a73e8; color: #fff;}
.btn.secondary {background: #e5e7eb; color: #111827;}
.btn-outline {background: transparent; border: 1px solid #d1d5db; color: #111827;}
.btn.small {
    padding: 4px 6px;
    font-size: 14px;
    border-radius: 6px;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #1a73e8;
    color: #fff;
}

.badge.light-green {background: #2e7d32; color: #fff;}
.badge.light-orange {background: #f9a825; color: #222;}
.badge.light-red {background: #c62828; color: #fff;}

.badge-success, .badge-warning, .badge-danger, .badge-note {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85rem;
}

.badge-success {background: #2e7d32; color: #fff;}
.badge-warning {background: #f9a825; color: #222;}
.badge-danger {background: #ffcccc; color: #fff;}
.badge-danger .material-icons {color: #b00020;}
.badge-danger:hover .material-icons {color: #fff;}
.badge-danger:hover {background: #c62828;}

.badge-note {
    background: #607d8b;
    color: #fff;
}

.badge-note {
    min-width: 125px;
    text-align: center;
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: .5rem;
    background: #eef5ff;
    color: #245;
    font-size: .85rem;
}

.popup {
	position: absolute;
    min-height: auto;
    margin: 5% 20%;
    width: 50%;
    border: 1px solid;
	box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

hr {
	border: 0px;
    border-top: 1px solid #e5e5e5;
}

.matric-circlebox {
	display: flex;
	align-items: center;
}
	.matric-circle {
		border-radius: 500px;
		width: 100px;
		height: 100px;
		min-height: 100px;
		min-width: 100px;
		margin: 10px;
		text-align: center;
		color: #fff;
		line-height: 100px;
		font-size: 30px;
		overflow: hidden;
	}
	
	.matric-circle-red {background: #ef4444;}
	.matric-circle-green {background: #22c55e;}
	.matric-circle-orange {background: #f97316;}

.metric-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.metric-wrapper.locked details {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th, .table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}
	.table tr:hover {
		background-color: #f9f9f9;
	}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 12px;
    align-self: start;
    position: sticky;
    top: 76px;
}

.side-nav { display: flex; flex-direction: column; gap: 4px; }

.side-section {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 8px 8px 4px;
}

.side-section.muted { opacity: .7; }

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: #222;
    text-decoration: none;
}

.side-link:hover { background: #f6f7f9; }
.side-link.active { background: #e8f0fe; color: #1a73e8; }
.side-link.danger { color: #b00020; }
.side-link.danger:hover { background: #ffe8e8; }

.content > .card + .card { margin-top: 12px; }

.icon-queue {
    width: 115px;
    height: 50px;
}

.badge-note .material-icons,
.icon-queue .material-icons {
    padding: 10px 0;
    vertical-align: middle;
}

.icon-queue .material-icons {
    animation: tilt 2s ease-in-out infinite;
    transform-origin: 50% 50%;
}

@keyframes tilt {
    0%   { transform: rotate(0deg); opacity: .9; }
    50%  { opacity: 1; }
    100% { transform: rotate(360deg); opacity: .9; }
}

.report-wrapper {
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.report-header-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.report-title-block h1 { margin: 0 0 .25rem; }

.report-meta {
    font-size: .9rem;
    color: #666;
}

.progress-wrapper {
    color: #fff;
    text-align: center;
    margin: 15px 0;
    width: 100%;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: calc(var(--score) * 1%);
    background: linear-gradient(90deg, #00c853, #4caf50);
    border-radius: 20px;
    transform: translateX(-100%);
    animation: fillBar 1.8s ease-out forwards;
}

@keyframes fillBar {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.score-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.score-label {
    font-size: 14px;
    color: #666;
}

.report-screenshot {
    float: right;
}

.report-screenshot img {
    width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
	.report-screenshot:hover{
		float: unset;
		margin: auto;
		text-align:center;
	}
	.report-screenshot:hover img {
		width: 50%;
		margin: auto;
		position: absolute;
		box-shadow: 0 0px 90px rgba(0, 0, 0, 1);
		z-index: 9999999;
	}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.report-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric {
    border-left: 4px solid #e5e7eb !important;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.metric h4 { margin-top: 0; }

.metric-green  { border-left: 4px solid #22c55e !important; }
.metric-red    { border-left: 4px solid #ef4444 !important; }
.metric-orange { border-left: 4px solid #f97316 !important; }

.metric .intro {
    font-size: .92rem;
    color: #4b5563;
}

.metric .advies {
    font-size: .92rem;
    background: #f9fafb;
    padding: .6rem .75rem;
    border-radius: .5rem;
    border: 1px dashed #e5e7eb;
    margin-top: .35rem;
}

.code-block {
	background-color: #1e1e1e !important;
    color: #f8f8f2;
}

.report-section-title {
    margin-top: 0;
    margin-bottom: .75rem;
}

.report-summary-card p { margin-bottom: .5rem; }

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #111;
    text-decoration: none;
}

.brand .material-icons {
    font-size: 22px;
    color: #1a73e8;
}

.nav-toggle,
.sidebar-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    padding: 6px;
}

.nav-toggle:hover,
.sidebar-toggle:hover {
    background: #f3f5f7;
}

/* Navigation menu */
.main-nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li > a,
.menu > li > button.submenu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #222;
    text-decoration: none;
}

.menu > li.active > a,
.menu > li.active > button.submenu-toggle {
    background: #e8f0fe;
    color: #1a73e8;
}

.menu > li > a:hover,
.menu > li > button.submenu-toggle:hover {
    background: #f6f7f9;
}

.menu .logout { color: #b00020; }
.menu .logout:hover { background: #ffe8e8; }

.has-sub { position: relative; }

.has-sub .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: none;
    flex-direction: column;
}

.has-sub:hover .submenu { display: flex; }

.submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #222;
    text-decoration: none;
    border-radius: 8px;
}

.submenu li a:hover { background: #f6f7f9; }

.metric-wrapper {
    position: relative;
    margin-bottom: 1rem;
}
	.metric-wrapper img{max-width: 100%}

.metric-wrapper.locked details {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.upgrade-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.upgrade-box {
    text-align: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.upgrade-box strong {
    display: block;
    margin-bottom: .25rem;
}

.upgrade-box p {
    font-size: .9rem;
    margin-bottom: .75rem;
    color: #555;
}

.upgrade-card { max-width: 700px; margin: 2rem auto; }

.package-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    margin: 1rem 0;
}

.package {
    border: 2px solid #ddd;
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: .2s;
}

.package:hover {
    border-color: var(--accent, #2196f3);
    box-shadow: 0 0 5px rgba(0,0,0,.1);
}

.package input { display: none; }

.billing-options {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.summary { margin: 1rem 0; font-size: 1.1rem; }

.text-small { font-size: .9rem; }

@media (max-width: 1100px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    body.sidebar-open .sidebar {
        display: block;
        position: fixed;
        left: 0; right: 0; top: 64px;
        z-index: 60;
        max-height: 60vh;
        overflow: auto;
        margin: 0 16px;
    }
}

@media (max-width: 900px) {
    .report-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: inline-flex; }

    .main-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 60px;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }

    .main-nav.open { display: block; }

    .menu { flex-direction: column; align-items: stretch; gap: 0; }

    .menu > li { width: 100%; }

    .menu > li > a,
    .menu > li > button.submenu-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .has-sub .submenu {
        position: static;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        display: none;
    }

    .has-sub.open .submenu { display: flex; }
}

@media print {
    body { background: #fff; }

    .report-actions,
    .btn,
    .btn-secondary,
    .btn-outline,
    .nav,
    .site-header,
    .site-footer {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
        page-break-inside: avoid;
    }

    .report-wrapper {
        max-width: 100%;
        margin: 0;
    }
}

.center { text-align: center; }

.intro-box {
    background:#f9fafb;
    border-left:4px solid #6366f1;
    padding:14px 18px;
    border-radius:6px;
    margin-bottom:20px;
}
.meta-box {
    background:#f1f5f9;
    border:1px solid #e2e8f0;
    padding:10px 14px;
    border-radius:6px;
    margin-bottom:20px;
}
.badge-density {
    padding:3px 7px;
    border-radius:4px;
    font-size:11px;
    font-weight:bold;
    color:#fff;
}
.bd-low    { background:#6b7280; }
.bd-normal { background:#f59e0b; }
.bd-high   { background:#10b981; }

   .seo-info-box {
        background:#f9fafb;
        border-left:4px solid #3b82f6;
        padding:12px 16px;
        margin-bottom:20px;
        border-radius:6px;
    }
    .kans-badge {
        padding:4px 8px;
        border-radius:4px;
        color:#fff;
        font-weight:bold;
        font-size:11px;
        display:inline-block;
    }
    .kans-hoog { background:#10b981; }
    .kans-zeer-hoog { background:#059669; }
    .kans-gemiddeld { background:#f59e0b; }
    .kans-laag { background:#6b7280; }
    .keyword-tag {
        background:#eef2ff;
        color:#3730a3;
        padding:2px 6px;
        border-radius:4px;
        font-size:11px;
        font-weight:bold;
    }
    .advice-list {
        margin:0;
        padding-left:18px;
    }
    .advice-list li {
        margin:3px 0;
    }
	
.trend-info-box {
    background:#f9fafb;
    border-left:4px solid #6366f1;
    padding:14px 18px;
    border-radius:6px;
    margin-bottom:20px;
}
.density-badge {
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    font-weight:bold;
    color:#fff;
}
.density-low { background:#6b7280; }
.density-mid { background:#f59e0b; }
.density-high { background:#10b981; }

.trend-chart {
    margin:20px 0;
    text-align:center;
}

.intro-box {
    background:#f9fafb;
    border-left:4px solid #6366f1;
    padding:14px 18px;
    border-radius:6px;
    margin-bottom:20px;
}
.badge-density {
    padding:3px 7px;
    border-radius:4px;
    font-size:11px;
    font-weight:bold;
    color:#fff;
}
.bd-low    { background:#6b7280; }
.bd-normal { background:#f59e0b; }
.bd-high   { background:#10b981; }

.waiting-glow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: #eef5ff;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.badge-green {
    background: #16a34a; color:white; padding:4px 8px; border-radius:6px; font-size:12px;
}
.badge-orange {
    background: #ea580c; color:white; padding:4px 8px; border-radius:6px; font-size:12px;
}
.badge-red {
    background: #dc2626; color:white; padding:4px 8px; border-radius:6px; font-size:12px;
}
.badge-grey {
    background: #6b7280; color:white; padding:4px 8px; border-radius:6px; font-size:12px;
}


.waiting-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    animation: glow-slide 1.8s infinite ease-in-out;
}

@keyframes glow-slide {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.select_float_right {
	float: right;
    text-align: center;
    background: #eef5ff;
    padding: 10px;
    border-radius: 10px;
    font-size: small;
}
	.select_float_right select {
		border: 1px solid transparent;
		padding: 5px;
		background: transparent;
	}
		.select_float_right select:hover {
			border: 1px solid #1a73e8;
		}
