/*
//
// Modal Header
//
*/

.modal-header{
  width: 100%;
  padding: 1rem 1.2rem 1rem 2rem;
  border-bottom: 1px solid rgb(227, 227, 227);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border-radius: 10px 10px 0 0;
}

.draggable-modal{
  cursor: grab;
}

.modal-dragging, .modal-header[draggable-modal]:active { cursor: grabbing !important; }


.modal-title-container{
  display:flex;
  align-items: center;
}

.modal-title-container span{ 
  font-family: var(--fontFamilyText);
  font-weight: 500;
  font-size: 18px;
  color: var(--textColor-4);
}

.close-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
}

.close-modal svg {
  width: 15px;
  height: 15px;
  fill: var(--text-color-light);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 2px;
  transition: all 0.3s ease;
}

.close-modal:hover svg {
  fill: var(--errorColor);
  border-color: var(--errorColor);
}


/*
//
// Modal Body
//
*/

.modal-body{
  padding: 1rem 2rem 2rem 2rem;
}




/*
// ////////////////////////////////////////
// ////////////////////////////////////////
// INDIVIDUAL MODALS
// ////////////////////////////////////////
// ////////////////////////////////////////
*/


/*
//
// Custom CSS
//
*/

#custom-css-modal {
  width: calc( 100% - var(--rightPanelWidth) - var(--leftPanelWidth));
  background: var(--modal-background-color);
  border-top: 3px solid rgb(227, 227, 227);
  border-bottom: 3px solid rgb(227, 227, 227);
  border-left: 1px solid rgb(227, 227, 227);
  border-right: 1px solid rgb(227, 227, 227);
  padding: 0rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background: var(--backgroundColor-0);
  z-index: 1011;
  -webkit-box-shadow: 0px -7px 15px -4px rgba(0,0,0,0.11); 
  box-shadow: 0px -7px 15px -4px rgba(0,0,0,0.11);
  left: var(--leftPanelWidth);
}


#custom-css-modal .modal-header{
  border: none;
}


#custom-css-modal .modal-body{
  padding: 0;
  padding-bottom: 0.5rem;
}





/*
//
// ADD Form Modal
//
*/

#add-form-modal{
  background-color: #fff;
  max-width: 900px;
}

/*
//
// ADD Button Modal
//
*/

#add-button-modal{
  background-color: #fff;
  max-width: 900px;
}

/*
//
// ADD Container Modal
//
*/

#add-container-modal{
  background-color: #fff;
  max-width: 900px;
}

#add-container-modal .modal-body{
  display: flex;
  align-items: center;
  gap: 6px;
}

#add-container-modal .modal-body .checkbox-group label{
  font-family: var(--fontFamilyText);
  font-size: 12px;
  font-weight: 400;
  padding: 5px;
}

#add-container-modal .modal-body button{
  font-family: var(--fontFamilyText);
  font-size: 12px;
  font-weight: 400;
  padding: 5px;
}

/*
//
// History - Undo Redo
//
*/

#undo-redo-history-modal{
  width: 200px;
  max-height: 400px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
  position: fixed;
  right: 5px;
  top:  5px;
  transform: none !important;
}

#undo-redo-history-modal .modal-body{
  padding: 0;
}


/*
//
// Layer Panel
//
*/

/* Basis (deins bleibt) */
#layer-panel-modal{
  width: 200px;
  max-height: 400px;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);

  position: fixed;
  right: 5px;
  bottom:  5px;
  transform: none !important;
}

#layer-panel-modal .modal-body{
  padding: 0;
}


/*
//
// List Modal
//
*/

#list-settings-modal{
  width: 600px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px 0px 0px 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}


/*
//
// Tooltip
//
*/

#tooltip-modal{
  top: 15px !important;
  width: 350px;
  box-sizing: border-box;
  z-index: 1009;
  background: #f6f6f6;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.13);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tooltip-modal .modal-header {
  flex: 0 0 auto;
}

#tooltip-modal .modal-body{
  overflow-y: auto;
  flex: 1 1 auto;
}

#tooltip-modal .modal-body p{
  font-family: var(--fontFamilyText);
  color: var(--textColor-4);
  font-size: 13px;
  line-height: 1.5;
}

/*
//
// Global Settins
//
*/

#global-settings-modal{
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
  height: 800px;
  width: 800px;
}

#global-settings-modal .modal-body{
  display:flex;
  gap: 30px;
}

#global-settings-modal .modal-body .tabs{
  width: 500px;
}




/*
//
// Highlight Distances
//
*/

#highlight-distances-modal{
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 0 10px 10px 0;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#highlight-distances-modal .modal-header{
  padding: 0.5rem;
}

#highlight-distances-modal .modal-body{
  padding: 0.5rem;
}

#highlight-distances-modal #spacing-highlighter-toggles{
  display:flex;
  flex-direction: row;
  gap: 10px;
}

#highlight-distances-modal #spacing-highlighter-toggles label{
  width: max-content;
  align-self: center;
}

#highlight-distances-modal #spacing-highlighter-toggles span{
  font-size: 9px;
  font-family: var(--fontFamilyText);
  font-weight: 400;
  color: var(--textColor-4);
  text-align: center;
}



/*
//
// Image 
//
*/

#select-uploaded-image-modal{
  min-height: 500px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#select-uploaded-image-modal .modal-body{
  box-sizing:border-box;
}

#show-uploaded-images {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;   
  max-height: 520px;  
  width: calc(1040px + 5px);
  overflow-y: auto;      
}

#show-uploaded-images img{
  max-width: 120px;
  cursor: pointer;
}

.drag-drop-area{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  border: 2px dashed rgb(227,227,227);
  cursor: pointer;
  border-radius: 10px;
  background-color: var(--backgroundColor-0);
  transition: all ease 0.3s;
}

.drag-drop-area p{
  font-family: var(--fontFamilyText);
  color: var(--textColor-3);
  font-size: 13px;
  transition: all ease 0.3s;
  font-weight: 400;
}

.drag-drop-area:hover{
  border: 2px dashed  var(--firstColor);
  background-color: var(--firstColorPastel);
  color: var(--textColor-4);
}

.drag-drop-area:hover p{
  color: var(--textColor-4);
}

.upload-progress-wrap {
  margin-top: 8px;
}

.upload-progress-outer {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  transition: width 120ms linear;
  background: var(--firstColor);
}

.upload-progress-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 14px;
  color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.upload-progress-meta span{
  font-family: var(--fontFamilyText);
  color: var(--textColor-3);
  font-size: 11px;
}

.upload-progress-meta-right{
  display: flex;
  align-items: center;
}

.thumb-wrapper {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.thumb-img {
  object-fit: cover;
  cursor: pointer;
}

.thumb-img.is-selected {
  outline: 3px solid var(--firstColor);
}
.image-usage-icon{
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 20px;
}

.image-usage-label {
  position: absolute;
  bottom: 10px;
  right: 7px;
  background-color: #fff;
  color: var(--firstColor);
  font-family: var(--fontFamilyText);
  font-size: 12px;
  transition: all ease 0.3s;
  font-weight: 400;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;              
  transition: opacity 0.15s linear;
  border: 1px solid var(--firstColor);
}

.image-usage-label.is-used {
  opacity: 1;
}

.delete-image-btn{
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;               
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: none;
  color: var(--errorColor);   
  cursor: pointer;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 20px;
}

.thumb-wrapper:hover .delete-image-btn {
  display: flex;
}

.delete-image-btn .delete-image-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.delete-image-btn:hover {
  filter: brightness(0.95);
}

/* FILTER */

.image-filterbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-filterbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}


.ifb-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.ifb-checkbox span {
  margin-bottom: 0;
}

.search-image{
  width: 400px;
}

.search-image input{
  width: 100%;
  max-width: 400px;
}




/*
//
// ADD Icon
//
*/


#add-icon-modal{
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  height: 500px;  
  max-height: 500px;   
  overflow-y: auto;    
  background-color: #fff;
  max-width: 800px;
  gap: 0;
    margin-top: 8px;
}

#recent-container {
  max-width: 800px;
  height: auto;
  background: var(--backgroundColor-0);

  grid-template-columns: repeat(7, minmax(100px, 1fr));
}

#recent-container .icon-wrapper { opacity: 0; transition: opacity .2s ease; }
#recent-container .icon-wrapper { opacity: 1; }

.icon-filter-container{
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

#search{
  width: 250px;                
  height: 26px;
  padding: 0 12px 0 12px;      
  border-radius: 5px;
  background-color: #fff;
  border: 1px solid rgb(227,227,227);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
  color: var(--textColor-4);
  font-family: var(--fontFamilyText);
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

#search::placeholder{
  color: var(--textColor-3);
  opacity: 1;          
}

#search:hover{
  border-color: rgb(209,209,209);
  background-color: #fafafa;
}

#search:focus{
  outline: none;
  border-color: var(--firstColor);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--firstColor) 20%, transparent), inset 0 1px 0 rgba(0,0,0,.03);
  background-color: #fff;
}

.no-icons-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: var(--textColor-3);
  font-family: var(--fontFamilyText);
  font-size: 14px;
}

.icon-filters{
  display:flex;
  align-items: center;
  gap: 15px;
}

.icon-filters .radio-group,
.icon-filters .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    align-items: center;
    justify-content: space-between;
}

.icon-filters .radio-group label:has(input[type="radio"]),
.icon-filters .checkbox-group label:has(input[type="checkbox"]){
  font-family: var(--fontFamilyText);
  color: var(--textColor-3);
  border: 1px solid transparent;
  font-size: 12px;
  padding: 5px;
}

.icon-filters .radio-group label:has(input[type="radio"]:checked),
.icon-filters .checkbox-group label:has(input[type="checkbox"]:checked){
  font-family: var(--fontFamilyText);
  color: var(--firstColor);
}

.vertical-separator{
  color: var(--textColor-2);
}

.search-filter{
  display: flex;
}

.icon-wrapper {
  position: relative;
  cursor: pointer;
  width: 100%;    
  aspect-ratio: 1/1; 
  transition: all ease 0.2s;
  border-radius: 10px;
}

.icon-wrapper svg{
  fill: var(--textColor-4);
  transition: all ease 0.2s;
  width: 70%;
  height: 70%;
}

.icon-wrapper:hover svg {
  fill: var(--firstColor);
}

.icon-wrapper:hover {
  background-color: var(--backgroundColor-0);
}

.icon-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #eee;
  border-radius: 4px;
}

/*
.icon-item {
  width: 100%;
  height: 100%;
  fill: var(--textColor-4);
  vertical-align: middle
}*/

#svg-sprite-container svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

ul[uses-icons-instead] li {
  position: relative;
}

ul[uses-icons-instead] .edit-icon-btn {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  opacity: 0;
  cursor: pointer;
}

ul[uses-icons-instead] li:hover .edit-icon-btn {
  opacity: 1;
}









/*
//
// Add Project
//
*/
#add-website-project-modal{
  max-width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}


/*
//
// Delete Project
//
*/

#delete-website-project-modal{
  max-width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}


#delete-project-select{
  width: 100%;
}

/*
//
// publish-website-project-modal
//
*/

#publish-website-project-modal{
  width: 80%;
  max-width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}


/*
//
// unpublish-website-project-modal
//
*/

#unpublish-website-project-modal{
  width: 80%;
  max-width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}




/*
//
// Token Modals
//
*/


#token-modal{
  max-width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#token-modal-passwort{
  max-width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

.wb-otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 12px;
}

.wb-otp {
  width: 42px;
  height: 50px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--firstColorPastel);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  font-size: 24px;
  line-height: 1;
  color: #111827;
  caret-color: #111827;
}

.wb-otp:focus-visible {
  outline: none;
  border-color: var(--firstColor);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.wb-otp:not(:placeholder-shown) {
  font-weight: 600;
}

.wb-otp-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#wb-resend[disabled] {
  opacity: 1;
  border: 1px dashed var(--disabledColor);
  background: transparent;
  color: var(--disabledColor);
  cursor: not-allowed;
}

/*
//
// Modal Body: Inputs & Labels
//
*/
.wb-field-label,
.wb-otp-wrap .wb-field-label {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-top: 6px;
  margin-bottom: 6px;
}
.wb-input,
.wb-otp-wrap .wb-input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  color: #111827;
  background: #ffffff;
}
.wb-input:focus-visible {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/*
//
// Modal Body: Hinweise & Status
//
*/
.wb-error {
  color: var(--errorColor);
  font-size: 11px;
}

.muted {
  color: var(--textColor-4);
  font-size: 11px;
}

.success {
  color: var(--firstColor);
  font-size: 11px;
}


/*
//
// Profil Icon Modal
//
*/


#profile-icon-modal{
  width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13); 
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#profile-icon-modal .modal-body{
  display: flex;
  flex-direction: column;
}


/*
//
// Sign-in-modal
//
*/


#sign-in-modal{
  width: 400px;
  max-width: 92vw;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#sign-in-modal label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}


@media (max-width: 520px){
  #sign-in-modal{ width: calc(100vw - 32px); }
}


/*
//
// Reset Password
//
*/


#reset-password-modal{
  width: 400px;
  max-width: 92vw;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#reset-password-modal label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}


@media (max-width: 520px){
  #reset-password-modal{ width: calc(100vw - 32px); }
}



/*
//
// Register-account-modal
//
*/


#register-account-modal{
  width: 400px;
  max-width: 92vw;
  box-sizing: border-box;
  background: #fff;
  z-index: 1009;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
  -webkit-box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
  box-shadow: 4px 0px 8px 0px rgba(0,0,0,0.13);
}

#register-account-modal label{
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px;
}

#register-account-modal .flex-v-center label{
  color: var(--textColor-4);
  font-size: 11px;
  font-weight: 400;
  margin: 0;
  margin-left: 4px;
}


#register-account-modal .error{
  display: none;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid rgb(245, 170, 170);
  background: rgb(255, 244, 244);
  color: #9b1c1c;
  border-radius: 8px;
}


#register-account-modal input[type="checkbox"]{
  width: 14px;
  height: 14px;
}


@media (max-width: 520px){
  #register-account-modal{ width: calc(100vw - 32px); }
}





/*
//
// Magnetic modal (next to trigger)
//   → nur Stil, KEINE Position/Animation (das macht JS)
//
*/

.magnetic-modal {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
}


/*
//
// Container Modal 
//
*/
#add-container-modal,
#add-navigation-modal{
  padding: 8px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  gap: 5px;
  flex-direction: column;
}









/*
//
// Add Page
//
*/

#add-page-modal{
  width: 450px;
  box-sizing: border-box;
  background: #fff;
  z-index: 1011;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 10px;
}

#add-page-modal .modal-body input[type="text"]{
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid rgb(227, 227, 227);
  border-radius: 6px;
  color: var(--textColor-4);
}

#add-page-modal .modal-body input[type="text"]::placeholder {
  font-size: 12px;
}






/*
//
// Delete confirmation modal
//
*/

.delete-modal {
  background: var(--modal-background-color);
  max-width: 450px;
  border-radius: 10px;
  animation: fadeIn 0.2s forwards;
  height: auto;
}

.delete-modal .column-box { padding: 2rem; }
.delete-modal span,
.delete-modal p { text-align: center; }

.delete-modal p span {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 4;
}


/*
//
// Image viewer modal
//
*/

.image-modal {
  min-width: 300px;
  background: var(--modal-background-color);
  border-radius: 10px;
  animation: fadeIn 0.2s forwards;
  padding: 1rem 1rem 2rem;
  height: auto;
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgb(var(--whiteDark));
  text-align: center;
}

.modal-large-image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.close-image-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: rgb(var(--whiteDark));
  cursor: pointer;
}

.close-image-modal:hover { background: rgba(0, 0, 0, 0.7); }



/*
//
// Animations (nur dort, wo CSS-Position bewusst genutzt wird)
//
*/

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInFromBottom {
  from { bottom: -100%; }
  to   { bottom: 0;    }
}

/* @keyframes slideInFromLeft / Right → entfernt, JS übernimmt */
