/* Add your CSS styles here 
*
* .obs_input {}
* .obs_label {}
*/

/** predefined color settings **/
:root {
    --red: 217 0 3;
    --textcolor: 51 51 51;
    --grey:204 204 204;
    --bgcolor: 238 238 238;
    }

#opdf-form {
    margin-top:25px;
    background-color:rgb(var(--bgcolor) / 1);
    width: 100%; 
    padding:0px 14px 0px 14px; 
    border-radius:12px;
    margin: 0 auto;
}
#obs_pdfsender {display: block; margin:5px auto 25px auto;}

#opdf-form input[type='submit']:disabled {
    background-color: #ddd; 
    color: #888; 
    cursor: not-allowed;
    opacity: 0.5;
}

#opdf-form input[type='submit']:hover {
    background-color: #000000; 
    color: #ffffff; 
    cursor:pointer;
    opacity: 0.5;
}

#opdf-form input[type='submit']:active {
    background-color: #000000; 
    color: #ffffff; 
    cursor:progress;
    opacity: 0.5;
}



.divider {border-bottom:1px solid rgb(var(--bgcolor) / 1); margin-bottom:15px;}

#obs_form_title {
    margin-top:25px;
    text-align: center;
}

.obspdf_column{    width: calc(100% / 2);
    float: left;
    display: inline-table;
}


input[name="generate_pdf"] { 
    margin-top:25px;
    padding:15px; 
    text-align:center; 
    border:1px solid #444; 
    color:#444;
    border-radius:25px;  
    background:#fff;
}

/* latin name in selection list (label) */
.latinname { color:rgb(var(--red) / 1);
    font-style: italic; 
    }


/* normalize label */
label.obs_label {
    font-weight: normal !important;
    font-size: 15px !important;
    font-style: normal!important;
    text-transform: initial !important;
    margin-left: 15px!important;
    line-height: 22px;
    vertical-align: top;
    width:30em;
}

/* show Thumbnail image */
.showthumbimg  {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 70px;
    float: left;
}

#statusMessage {
    font-size:14px;
    color:#9D7A64;
    font-weight: bold;
}

/***AADDEEDDDDD***/
/* Zet checkbox + afbeelding + label horizontaal */
.obspdf_column > * {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Checkbox styling */
input.obs_input {
    margin-top: 4px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    float:left;
    display: flex;
}
.infolabel { width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 15px;
    }

#opdf-form input[type="text"],
#opdf-form input[type="email"],
#opdf-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgb(var(--grey) / 1);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    box-sizing: border-box;
}

#opdf-form textarea {
    resize: vertical;
    min-height: 100px;
}
/* Afbeelding fixeren */
.showthumbimg {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

/* Label netjes uitlijnen */
label.obs_label {
    flex: 1;
    margin-left: 0 !important;
    line-height: 1.4;
}

/*** Additioneel zoeken en filteren 19 aug 2025 **/
/* Style the search field */
input[name="keysearch"][type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 80%;
  background: #f1f1f1;
}

/* Container */
.sort-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: sans-serif;
  margin-bottom: 1rem;
}

/* Switch basis */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider (achtergrond) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}

/* Bolletje */
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Actieve staat */
.switch input:checked + .slider {
  background-color: #4CAF50;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}