:root {
    --kleur-bruin: #21140c;
    --kleur-bruin-hover: #5a4436;
	--kleur-geel: #ffc300;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* voorkomt horizontaal schuiven */
}
body {
    font-family: Arial, sans-serif;
    background: #fafafb;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 300px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    color: var(--kleur-bruin);
}
h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
h2::before {
    content: "";
    width: 29px;
    height: 29px;
    background: url("/icons/icon_mytapped_brown.png") no-repeat center/contain;
    filter: drop-shadow(0 2px 2px rgba(255,195,0,0.8));
}

label {
    display: block;
    margin-top: 10px;
    color: #000;
}

input[type=text], input[type=password], input[type=email] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.inline-add {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
    max-width: 600px;
}
.inline-add input[type="text"] {
    flex: 0 0 480px;
    margin-top: 0;
    width: 480px;
    min-width: 0;
    height: 36px;
}
.inline-btn {
    width: 95px;
    padding: 8px 12px;
    font-size: 0.95em;
    border-radius: 6px;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    box-sizing: border-box;
    height: 36px;
}
.table-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}
.table-form .form-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 6px;
}
.table-form .form-row .inline-btn {
    justify-self: end;
}
.table-form label {
    margin-top: 0;
}
.table-form .table-input {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    height: 36px;
}
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
select
{
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.remember {
    margin: 10px 0;
    font-size: 0.9em;
}

button {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	box-sizing: border-box;
    font-size: 1.1em;
}
button:hover {
    background: #222;
}
button {
    width: 100%;
    padding: 15px;
    margin: 10px 0; /* alleen verticaal */
}
button.small {
    width: auto;
    padding: 6px 10px;
    font-size: 0.95em;
    margin: 2px;
}

.error {
    color: red;
    text-align: center;
}
.topbar {
    background:var(--kleur-geel);
    color:#fff;
    padding:10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.topbar .pagetitel, .topbar .pagetitel a {
    font-weight:bold;
    font-size:1.2em;
	color: white;
	text-decoration: none;
	vertical-align: middle;
}

.topbar .menu {
    position:relative;
}
.topbar .menu input {
    display:none;
}
.topbar .menu label {
    font-size:1.5em;
    cursor:pointer;
}
.topbar .menu ul {
    display:none;
    position:absolute;
    right:0;
    top:40px;
    background:#fff;
    color:#000;
    list-style:none;
    padding:0;
    margin:0;
    border:1px solid #ccc;
    border-radius:5px;
	width: 200px;
}
.topbar .menu input:checked + label + ul {
    display:block;
}
.topbar .menu ul li {
    padding:10px 20px;
}
.topbar .menu ul li a {
    color:#000;
    text-decoration:none;
}
.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}
input[type="number"]
{
	font-size: 15px;
	height: 2rem;
}
.filter-form {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
.filter-form .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.filter-form label {
    margin: 0;
    font-size: 0.75em;
    color: #333;
}
.filter-form input[type="text"],
.filter-form select {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    height: 34px;
}
.reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: var(--kleur-geel);
    text-decoration: none;
}
.reset-btn:hover {
    background: #e6b000;
    border-color: #b88f00;
}
.reset-icon {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) saturate(100%);
}
@media (max-width: 600px) {
    .filter-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .reset-btn {
        width: 100%;
    }
}
.exercise-list {
    margin: 15px 0;
    padding: 0;
}
.exercise-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
}
.exercise-item.inprogress
{
	background: #fd0;
}
.exercise-item strong {
    color: var(--kleur-bruin);
    font-size: 1.1em;
}
.exercise-details {
    margin-left: 10px;
    color: #333;
}
.edit-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--kleur-bruin);
    text-decoration: none;
    font-weight: bold;
}
.edit-link:hover {
    text-decoration: underline;
}
.exercise-item {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}
.tasting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tasting-info {
    flex: 1;
}
.tasting-thumb {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
}
.rating-box {
    width: 38px;
    height: 38px;
    background: var(--kleur-geel);
    color: #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
    text-shadow: none;
}
.rating-box span {
    position: static;
    width: auto;
    height: auto;
    line-height: 1;
    text-align: center;
    color: #000;
    font-size: 1.1em;
    font-variant-numeric: tabular-nums;
}
a.exercise-item:hover {
    border-color: var(--kleur-bruin);
    background: #f0fbff;
    cursor: pointer;
}
.tasting-history-item:hover {
    border-color: #ddd;
    background: #fff;
    cursor: default;
}
.info-item {
    background: #f9f9f9;
    border: 1px dashed #bbb;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
    color: #555;
}
.info-item strong {
    color: #333;
}
#logo {
    display: block;
    max-width: 90%;
    margin: 0 auto;   /* horizontaal centreren */
}
button.done {
    background: var(--kleur-bruin-hover);
    color: #000;
}
button.done:hover {
    background: #c0e7ff;
}
button.in-program {
    position: relative;
    padding-left: 40px; /* ruimte voor icoon links */
	padding-right: 40px;
    background: var(--kleur-bruin-hover);
}

button.in-program:hover {
    background: #c0e7ff;
}

button.in-program .btn-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
}



button.navigatie { }
button.gereed { }
button.verwijderen { }
.btn-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px; /* ruimte tussen icon en tekst */
}
button .btn-icon {
  filter: brightness(0) saturate(100%) invert(75%) sepia(80%) saturate(700%) hue-rotate(355deg) brightness(100%) contrast(100%);
}
.header-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 6px; /* ruimte tussen icon en tekst */
}

.step {
    margin-bottom: 14px;
}

.star-rating {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.star-rating .star {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ddd;
    color: #333;
    border: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 32px;
    font-size: 0.95em;
}
.star-rating .star.active {
    background: var(--kleur-geel);
    color: #000;
}
.star-inline {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    background: #ddd;
    color: #333;
    font-weight: bold;
    margin: 2px 2px 0 0;
}
.star-inline.active {
    background: var(--kleur-geel);
    color: #000;
}
.rating-inline .star-inline {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.85em;
    margin: 2px 2px 2px 0;
}
.rating-date {
    display: inline-block;
    margin-left: 0;
    color: #555;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(14, 18, 24, 0.82);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

.photo-lightbox.open {
    display: flex;
}

.photo-lightbox-image {
    max-width: min(94vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    animation: lightbox-in 180ms ease-out;
}

.photo-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

@keyframes lightbox-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
