@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&amp;display=swap');



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
body {
    display:block;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #dbd9d9b6;
}
body, img, * {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -webkit-user-drag: none;   /* Prevent image drag in WebKit browsers */
}
.DoNotPrint {
	display: none;
 }
 .noborder {
	border : 0px;
	background: transparent;
	background: transparent;
	overflow: hidden;
 }

 
 #loadingOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  text-align: center;
}

#theEditor {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative; 
}

#editorFrame {
    width: 750px;
}

#editorFrame input[type='text'] {
    border: solid 10px #1a7902 !important;

}

h1 {
     background: url('/neon_background.png') center center / cover no-repeat;
     text-indent:10px;
     font-family: "Poppins", sans-serif;
     font-display:unset;
     font-size:20px;
     color:#ffffff;
     border:0px solid #ffffff;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
     padding: 10px;
     line-height: 35px;
     border-bottom-right-radius:5px;
     border-top-right-radius:5px;
     text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
h2 {
     background: linear-gradient(135deg, #330099, rgba(102, 15, 241, 0.774));
     text-indent:2px;
     padding:2px;
     font-family: "Poppins", sans-serif;
     font-display:unset;
     font-size:15px;
     color:#ffffff;
     border:1px solid rgba(255, 255, 255, 0.2);
     border-bottom-right-radius:5px;
     border-top-right-radius:5px;
     box-shadow: 0 2px 6px rgba(107, 79, 181, 0.3);
     text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.tip {
    padding-bottom:10px;
    font-size:11px;
    font-style:italic;
}
.field_titles {
    font-weight:bold;
    font-size: 14px;
    padding-bottom: 5px;
}
.field_labels {
    font-size:11px;
    padding-bottom:20px;
}
.field_info {
    font-size:10px;
}

h2 span {
    float:right;
    align-content:flex-end;
    font-size: 10px;
    padding:4px;
    
}

h2 span a{
    color:#ebebeb    
}
h1 span {
    float:right;
    align-content:flex-end;
    font-size: 13px;
    padding:4px;
}

h1 span button{
    margin: 2px 5px 2px 5px;
    padding: 5px 5px 5px 5px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #3730a3, #1e3a8a);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover effects for the header buttons */
h1 span button:hover {
    background: linear-gradient(135deg, #4c1d95, #3730a3);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* Click/Active effects for the header buttons */
h1 span button:active {
    background: linear-gradient(135deg, #2d1f5c, #1e3a8a);
    transform: translateY(0);
}
#editorFrame {
    flex: 1 0 75%;
    height:10000px;
}
#sideWidget {
    /*flex: 1 0 25%; */
    width:500px;
    padding: 2px;

}

#inputVideo {
  /*flex: 1 0 25%; */
  display:none;
  

}
/* Apply to all buttons in #sideWidget except those with .directionalButtons */
#sideWidget button:not(.directionalButton) {
  background: linear-gradient(135deg, #3730a3, #1e3a8a);
  border: 1px solid transparent;
  float: right;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(55, 48, 163, 0.3);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: "Segoe UI","Liberation Sans",sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15385;
  margin: 0;
  outline: none;
  padding: 4px .8em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
  transition: all 0.3s ease;
}


#sideWidget button:not(.directionalButton):hover,
#sideWidget button:not(.directionalButton):focus {
  background: linear-gradient(135deg, #4c1d95, #3730a3);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(76, 29, 149, 0.4);
}

#sideWidget button:not(.directionalButton):active {
  background: linear-gradient(135deg, #2d1f5c, #1e3a8a);
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(55, 48, 163, 0.3);
}

/* Custom styles for directionalButtons */
#sideWidget input.directionalButton {
  background: linear-gradient(135deg, #6b4fb5, #8e7cc3);
  border: 1px solid transparent;
  float: none;
  align-items: center;     /* vertical centering */
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(107, 79, 181, 0.3);
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: "Segoe UI","Liberation Sans",sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15385;
  margin: 1px;
  width:auto;
  outline: none;
  padding: 6px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
  transition: all 0.3s ease;
}

#sideWidget input.directionalButton:hover,
#sideWidget input.directionalButton:focus {
  background: linear-gradient(135deg, #7d5ec9, #9f8ed4);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(107, 79, 181, 0.4);
}

#sideWidget input.directionalButton:active {
  background: linear-gradient(135deg, #5a42a1, #7d6cb0);
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(107, 79, 181, 0.3);
}

/* Custom styles for directionalButtons */
#sideWidget input.deleteButton {
  background-color: #d60202;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: "Segoe UI","Liberation Sans",sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15385;
  margin: 0;
  outline: none;
  padding: 4px .8em;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

#sideWidget input.deleteButton:hover,
#sideWidget input.deleteButton:focus {
  background-color: #f00303;
}

#sideWidget input.deleteButton:active {
  background-color: #b42b2b;
  box-shadow: none;
}

select {
    width: 30%;
    padding: 2px;
    margin-right:5px;
    margin-top:5px;
    margin-bottom:5px;
    border: solid 1px grey;
    border-radius: 5px;
    background-color: #ffffff;
    color: #000000;
    font-size: 10px;
    cursor: pointer;
}

select:focus {
    outline: none;
}


#sideWidget input[type='text'] {
    padding: 2px;
    margin-right:5px;
    margin-top:5px;
    border: solid 1px grey;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    font-size: 10px;
 
}

.widgetContents {
    text-align: top;
    font-size:12px;
    padding:5px;
    background-color: #eeebebb2;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 5px;

}



.drop-area {
    border: 2px dashed #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 60px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #248a72, #2dbc9c);
    box-shadow: 0 4px 12px rgba(36, 138, 114, 0.3);
}
    
.drop-area icon {
    font-size: 50px;
    color: #fdfdfd;
}
.drop-area header {
    font-size: 20px;
    color: #ffffff;
}
.drop-area span {
    font-size: 15px;
    color: #ffffff;
    margin: 10px 0 15px 0;
    text-align: center;
}
.drop-area input {
    display: none;
}
.drop-area button{
    margin: 10px 0 15px 0;
    padding: 7px 30px;
    font-size: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #248a72, #2dbc9c);
    border: none;
    box-shadow: 0 2px 6px rgba(36, 138, 114, 0.3);
    transition: all 0.3s ease;
    border-radius: 5px;
    cursor: pointer;
}

.drop-area button:hover {
    background: linear-gradient(135deg, #2da383, #3ecfae);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(36, 138, 114, 0.4);
}

#editor {
    width: 100%;
    height: 90%;
}

.tab {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
    background-color: #ccc;
  }
  
  .tab:hover {
    background-color: #ddd;
  }
  
  .tabcontent {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 15px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 1.5px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background: linear-gradient(135deg, #248a72, #2dbc9c);
  }

  input:focus + .slider {
    box-shadow: 0 0 4px rgba(36, 138, 114, 0.6);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

/* Property Panel Styles - 2-Column Floating Popup */
.property-modal {
    display: none;
    position: absolute;
    width: 320px;
    height: auto;
    max-height: 350px;
    z-index: 10000;
    background-color: #fff;
    border: 2px solid #6b4fb5;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(107, 79, 181, 0.3);
}

.property-modal-content {
    display: flex;
    flex-direction: column;
}

.property-modal-header {
    padding: 8px 10px;
    background: linear-gradient(135deg, #6b4fb5, #8e7cc3);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 4px 4px 0 0;
}

.property-modal-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.property-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.property-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.property-modal-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.property-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.property-column-left,
.property-column-right {
    display: flex;
    flex-direction: column;
}

.property-group {
    margin-bottom: 10px;
}

.property-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
    color: #333;
    font-size: 11px;
}

.property-group input[type="text"],
.property-group input[type="number"],
.property-group select {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    transition: border-color 0.2s;
}

.property-group input[type="text"]:focus,
.property-group input[type="number"]:focus,
.property-group select:focus {
    outline: none;
    border-color: #6b4fb5;
    box-shadow: 0 0 0 2px rgba(107, 79, 181, 0.1);
}

.property-modal-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.apply-btn,
.delete-btn {
    flex: 1;
    padding: 7px;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-btn {
    background: linear-gradient(135deg, #248a72, #2dbc9c);
    box-shadow: 0 2px 4px rgba(36, 138, 114, 0.3);
}

.apply-btn:hover {
    background: linear-gradient(135deg, #2da383, #3ecfae);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(36, 138, 114, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #c44569, #e74c3c);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #d35679, #f06050);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.4);
}

.apply-btn:active,
.delete-btn:active {
    transform: translateY(0);
}

/* Drawing Canvas Styles */
.drawing-container {
    position: absolute;
    background: white;
}

.drawing-canvas {
    border: 1px solid #999;
    cursor: crosshair;
    background: white;
    display: block;
}

/* Hide DoNotPrint elements when printing */
@media print {
    .DoNotPrint {
        display: none !important;
    }
}