.wtcleden-message {
    padding: 10px;
    background-color: #dff0d8;
    border: 1px solid #3c763d;
    color: #3c763d;
    margin-top: 10px;
    border-radius: 5px;
}
.wtcleden-message.error {
    padding: 10px;
    border: 1px solid #a94442;
    background-color: #f2dede;
    color: #a94442;
    margin-top: 10px;
    border-radius: 5px;
}
.wtcleden-profiel-blok {
    text-align: center;
    margin-bottom: 20px;
}
.wtcleden-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.wtcleden-naam {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}
.wtcleden-tabmenu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 20px;
}
.wtcleden-tabknop {
    background: #f1f1f1;
    padding: 5px;
    display: flex;
    align-items: left;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius:8px;
    margin-top:5px;
    cursor: pointer;
    transition: background 0.2s;
}
.wtcleden-tabknop:hover { background: #e9e9e9; }
.wtcleden-tabknop.active { background: #ffffff; font-weight: bold; }
.wtcleden-icon { margin-right: 10px; text-align: center; width:10%; }
.wtcleden-text { width:80%; }
.wtcleden-arrow { width:10%; right:5px; font-size: 20px; color: #999; }
.wtcleden-tabinhoud-container { position: relative; }
.wtcleden-tabinhoud { display: none; opacity: 0; transition: opacity 0.3s ease; }
.wtcleden-tabinhoud.active { display: block; opacity: 1; }

/* Nieuwe layout fix */
.wtcleden-tabs-columns { display: flex; gap: 20px; width: 100%; align-items: flex-start; }
.wtcleden-sidebar { width: 33%; }
.wtcleden-tabinhoud-container { width: 67%; }

/*koppel ritten*/
.wtcleden-popup {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 9999;
}
.wtcleden-popup.open { display: flex; align-items: center; justify-content: center; }
.wtcleden-popup-inner {
    background: #fff; padding: 0; border-radius: 10px; max-width: 700px; width: 90%;
    max-height: 90vh; overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.wtcleden-popup-header {
    padding: 10px; background: #f1f1f1; border-bottom: 1px solid #ccc; position: sticky; top: 0; z-index: 10;
    display: flex; gap: 10px; align-items: center;
}
.wtcleden-popup-header input[type="text"] { flex: 1; padding: 6px 10px; font-size: 14px; width:70%; }
.wtcleden-strava-scroll { overflow-y: auto; padding: 15px; flex-grow: 1; }
.close-popup {
    position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 20px; cursor: pointer;
}
.wtcleden-koppel-knop {
    margin-top: 20px; padding: 10px 20px; font-weight: bold; background: #0073aa; color: white;
    border: none; border-radius: 6px; cursor: pointer;
}
.wtcleden-activiteit em { color: green; font-weight: bold; }
.wtcleden-activiteit p { text-align: center;}
.wtcleden-activiteit button.koppel-strava-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wtcleden-verwijder-btn { background: none; border: none; color: red; font-size: 16px; cursor: pointer; }
.wtcleden-tabel tr { transition: all 0.3s ease; }
.wtcleden-tooltip {
    position: absolute; background: #333; color: #fff; padding: 6px 10px; font-size: 13px; border-radius: 5px;
    white-space: nowrap; pointer-events: none; z-index: 9999; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease-in-out;
}
.wtcleden-message {
    margin-top: 15px; background: #dff0d8; padding: 10px; border-left: 5px solid #3c763d; color: #3c763d; border-radius: 5px;
}
/*avatar profiel foto*/
.wtcleden-avatar-hover {
    position: relative; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; cursor: pointer;
}
.wtcleden-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wtcleden-avatar-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4); color: white; display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.2s;
}
.wtcleden-avatar-hover:hover .wtcleden-avatar-overlay { opacity: 1; }
.wtcleden-avatar-overlay .dashicons { font-size: 28px; }
/* Modal basis */
.wtcleden-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; z-index: 9999; }
.wtcleden-modal-inner {
    max-width: 520px; margin: 8vh auto; background: #fff; border-radius: 10px; padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.wtcleden-modal-body { margin: 10px 0; }
.wtcleden-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ----------------------------------------------------
   Meldingen: sluitknop
---------------------------------------------------- */
.wtcleden-message { position: relative; }
.wtcleden-message .wtcleden-close{
    position:absolute; top:5px; right:8px; background:none; border:none; font-size:18px; line-height:1; cursor:pointer; color:inherit; padding:0;
}
.wtcleden-message .wtcleden-close:hover{ opacity:.7; }

/* ----------------------------------------------------
   Registratie: wachtwoordcriteria + oogje
---------------------------------------------------- */
.wtcleden-pw-criteria{
    margin: 6px 0 0 0; padding-left: 18px; color: #999; font-size: 12px;
}
.wtcleden-pw-criteria li{ margin: 3px 0; }
.wtcleden-pw-criteria li.ok{ color: #3c763d; font-weight: 600; }

.wtcleden-pw-match{ display:block; margin-top:6px; font-size:12px; color:#999; }
.wtcleden-pw-match.ok{ color:#3c763d; font-weight:600; }
.wtcleden-pw-match.err{ color:#a94442; font-weight:600; }

.wtcleden-pw-wrap{ position: relative; }
.wtcleden-pw-wrap input[type="password"],
.wtcleden-pw-wrap input[type="text"]{
    width: 100%; padding-right: 42px; /* ruimte voor oogje */
}
.wtcleden-eye-btn{
    position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px; line-height: 1; color: #666; z-index: 2;
}
.wtcleden-eye-btn:hover{ color:#333; }
.wtcleden-eye-btn .icon-eye-off{ display: none; }
.wtcleden-eye-btn[aria-pressed="true"] .icon-eye{ display: none; }
.wtcleden-eye-btn[aria-pressed="true"] .icon-eye-off{ display: inline; }

/* ----------------------------------------------------
   Floating labels (inputs)
   – label heeft dezelfde achtergrond als de pagina
   – werkt bij focus, bij tekst en met .has-value fallback
---------------------------------------------------- */
:root{
    /* Je kan deze variabele overschrijven in je thema of container */
    --wtcleden-page-bg: #fffbf7;
}

.wtcleden-field { margin-bottom: 16px; }

.wtcleden-float{ position: relative; }
.wtcleden-float input{
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.wtcleden-float input:focus{
    outline: none; border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0,115,170,.15);
}
.wtcleden-float label{
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    padding: 0 4px;
    /* HIER: label matcht pagina-achtergrond */
    background-color: var(--wtcleden-page-bg);
    color: #777; font-size: 14px; pointer-events: none; transition: all .15s ease; z-index: 1;
}

/* Actief/gevuld: label omhoog en kleiner */
.wtcleden-float input:focus ~ label,
.wtcleden-float input:not(:placeholder-shown) ~ label,
.wtcleden-float input.has-value ~ label{
    top: -14px; transform: none; font-size: 12px; color: #0073aa;
}

/* Zorg dat label niet onder het oogje verdwijnt */
.wtcleden-float.wtcleden-pw-wrap label{ right: 42px; }

/* (optioneel) error stijl */
/*
.wtcleden-float input.is-invalid{ border-color:#a94442; }
.wtcleden-float input.is-invalid ~ label{ color:#a94442; }
*/


/* ============================ APPEND-ONLY ============================
   Avatar upload modal (eigen popup)
   – extra styles: dropzone, preview, progress en buttons
===================================================================== */
#wtcleden-avatar-modal.wtcleden-modal { display: none; }
#wtcleden-avatar-modal.wtcleden-modal.open { display: block; }

.wtcleden-upload {
  position: relative;
  border: 2px dashed #c9c9c9;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
}
.wtcleden-upload.is-dragover { border-color: #999; background: #fafafa; }
.wtcleden-upload input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.wtcleden-upload__hint p { margin: 0 0 6px; font-weight: 600; }
.wtcleden-upload__hint small { color: #666; }

.wtcleden-upload__preview { margin-top: 14px; text-align: center; }
.wtcleden-upload__preview img { max-width: 220px; max-height: 220px; border-radius: 8px; display: inline-block; }

.wtcleden-upload__progress {
  position: relative; height: 8px; background: #eee; border-radius: 999px; margin-top: 16px; overflow: hidden;
}
.wtcleden-upload__bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, #b3d4ff, #4aa3ff);
  transition: width .2s ease;
}
.wtcleden-upload__percent { display: inline-block; margin-top: 6px; font-size: 12px; color: #555; }

.wtcleden-modal__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.wtcleden-btn { border: 1px solid #d0d0d0; background: #fff; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.wtcleden-btn--primary { background: #2271b1; color: #fff; border-color: #2271b1; }
.wtcleden-btn[disabled] { opacity: .6; cursor: not-allowed; }

/*strava-tab styling*/

.wtcleden-stravaconnect-wrapper{
    padding:20px;
    border: solid 1px #000000;
    border-radius: 10px;
    margin-right:10px;

}
.wtcleden-stravaconnect-wrapper-title{
    position: absolute;
    font-size: 18px;
    background-color:#fffbf7;
    left:30px;
    top:-10px;
    font-weight: 800;
    padding:5px 10px 5px 10px;

}
.wtcleden-mijn-ritdeelnames-wrap{
    margin-top:40px;
}
.wtcleden-pagination { margin-top: 12px; }
.wtcleden-pagination .page-numbers { list-style: none; padding: 0; display: flex; gap: 6px; align-items: center; }
.wtcleden-pagination .page-numbers li { display: inline-block; margin-bottom:unset;}
.wtcleden-pagination a.page-numbers, .wtcleden-pagination span.page-numbers { padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px; text-decoration: none; }
.wtcleden-pagination .current { background: #2271b1; color: #fff; border-color: #2271b1; }
.wtcleden-pagination .disabled { opacity: 0.5; border-style: dashed; }
.page-numbers li:last-child {margin-bottom: none !important;}

.wtcleden-tabinhoud form .wtc-field{
    position: relative;
    margin: 22px 0 16px;
}

/* VASTE label-badge: geen animatie, geen focus-effecten, gewoon vast over de rand */
.wtcleden-tabinhoud form .wtc-field > label{
    position: absolute;
    left: 12px;
    top: 0;                         /* bovenlijn van het veld */
    transform: translateY(-50%);    /* precies half over de bovenrand */
    background: #fffbf7;            /* gevraagd */
    padding: 0 8px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;           /* label blokkeert klikken niet */
}

/* Invoervelden blijven normaal; geen JS nodig */
.wtcleden-tabinhoud form .wtc-field > input[type="text"],
.wtcleden-tabinhoud form .wtc-field > input[type="email"],
.wtcleden-tabinhoud form .wtc-field > input[type="password"],
.wtcleden-tabinhoud form .wtc-field > input[type="date"],
.wtcleden-tabinhoud form .wtc-field > input[type="tel"],
.wtcleden-tabinhoud form .wtc-field > select,
.wtcleden-tabinhoud form .wtc-field > textarea{
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;             /* normale padding; label ligt erboven */
}

/* Checkbox-rijen blijven standaard */
.wtcleden-tabinhoud form p > label > input[type="checkbox"]{ margin-right: 6px; }
