.wrap {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.spacer {
	height: 1em;
}

img {
	max-width: 100% !important;
}



.row {
	width: 100%;
	display: grid;
	grid-template-columns: 70fr 30fr;
	gap: 20px; 	
}

@media screen and (max-width: 980px) {
	.row {
		grid-template-columns: 1fr;
	}
}

.card {
	background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
	box-shadow: 0px 2px 10px -6px rgba(0,0,0,.25);
	border: none;
	margin: 0px;
	
	details {
    margin-bottom: 1rem;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background-color: #f9f9f9;
    padding: 0.5rem;
    transition: all 0.3s ease;

    &::marker {
      display: none; // Remove default disclosure triangle
    }

    summary {
      cursor: pointer;
      font-weight: bold;
      color: #007cba;
      outline: none;
      display: flex;
      align-items: center;
      justify-content: space-between;

      &:hover {
        color: #005a90;
      }

      &::after {
        content: "▼";
        font-size: 0.8rem;
        color: #007cba;
        transition: transform 0.3s ease;
      }
    }

    &[open] summary::after {
      transform: rotate(180deg); // Rotate arrow for open state
    }

    p, blockquote, ul {
      margin-left: 1rem;
      margin-top: 0.5rem;
    }

    blockquote {
      border-left: 4px solid #ddd;
      padding-left: 1rem;
      color: #555;
      font-style: italic;
    }
  }
}



//panel styling
#ai-buttons-panel {
     position: fixed;
     text-align: center;
     width: 400px;
	height: 50px;
        bottom: 20px;
        right: 20px;
        margin-left: 10px;
        background: #fff;
        border: 1px solid #ccc;
        padding: 12px 4px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        z-index: 999999999999999;
        border-radius: 999px;
	display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 3px;
	cursor: grab;
	user-select: none;
  -webkit-user-drag: none;
	
	&:hover {
		cursor: grab;
	}

        @media screen and (max-width: 850px) { 
           right: 10px;
        }

      span.panel-label {
         display: inline-flex;
         align-items: center;
         justify-content: center;
         line-height: 3em;
      }  


      .button {
         padding: 10px;
         display: inline-flex;
         align-items: center;
         justify-content: center;
         width: 40px; /* Gelijke breedte en hoogte voor vierkante knoppen */
         height: 40px;
         border-radius: 50%; /* Ronde knoppen */
         font-size: 18px;
		  cursor: pointer;

         &:last-of-type {
            border-radius: 0px 50% 50% 0px; /* Ronde knoppen */
            margin-left: -5px;
         }

         .dashicons {
            margin: 0;
            line-height: 1;
         }

      }

      select {
      padding: 4px 24px 6px 5px;
      border-radius: 3px 0px 0px 3px;
   }


}

//fix add title placeholder bug
#title-prompt-text {
   position: relative !important;
   margin: 0px 0px 4px 0px !important;
   padding: 0px 0px 8px 0px !important;
   display: block !important;
   visibility: visible !important;
   opacity: 1 !important;
   clip-path: none !important;
   height: auto !important;
   width: auto !important;
}



//language select

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;

  .language-item {
    position: relative;
    display: inline-block;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;

    // Verberg de standaard checkbox
    input[type="checkbox"] {
      display: none;
    }
	  
	  label {
		  cursor: pointer;
			width: 100% !important;
			Height: 100% !important;
			display: block;
			padding: 10px 0px;
			  }

    // Vlag-stijl
    .flag {
      display: block;
      margin: 0 auto 0.5rem auto;
      width: 32px;
      height: 24px;
      background-size: cover;
	  background-position: center;
      border-radius: 3px;
    }

    // Actieve staat
    &.active {
      border-color: #007cba;
      background-color: #007cba;
      color: #fff;

      .flag {
        border: 2px solid #fff;
      }
		
		&:hover {
		  border-color: #007cba;
		  background-color: #007cba;
		}
    }

    // Hover staat
    &:hover {
      border-color: #007cba;
      background-color: #f1f1f1;
    }
  }
}



// knowledge base
.knowledge-base-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;

  th, td {
    padding: 10px;
    text-align: left;
    vertical-align: top; /* Zorg dat velden bovenaan uitlijnen */
  }

  th {
    background-color: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
  }

  td {
    border-bottom: 1px solid #e5e7eb;
    position: relative; /* Voor positionering van de actieknoppen */
  }

  input[type="text"], textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;

    &::placeholder {
      color: #9ca3af; /* Placeholder kleur */
      font-style: italic;
    }

    &:focus {
      border-color: #007cba;
      box-shadow: 0 0 0 3px rgba(0, 123, 186, 0.3);
      outline: none;
    }
  }

  textarea {
    resize: vertical;
    min-height: 140px;
  }

  /* Actieknoppen */
  .action-buttons {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;

    button {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      font-size: 1.2rem;
      line-height: 1;
    }

    .remove-row {
      color: #dc2626;
      &:hover {
        color: #b91c1c;
      }
    }
  }
}


#add-item-button {
    display: inline-block;
	width: auto;
    margin-top: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.125rem;
    color: #16a34a;
    transition: color 0.2s ease;

    &:hover {
        color: #15803d;
    }

    &::before {
        content: "+"; /* Unicode voor plusje */
    }
}