
/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 60px; /* Margin bottom by footer height */
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px; /* Set the fixed height of the footer here */
  line-height: 60px; /* Vertically center the text there */
  background-color: #f5f5f5;
}

.footer small {
  font-size: .8rem;
}

/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

.container {
  width: auto;
  max-width: 700px;
  padding: 0 15px;
  padding-bottom: 2px;
}

.table td, .table th {
  border: none;
}

input.form-control, select.form-control {
  height: 1.5rem
}

.custom-control-label::after {
    top: .02rem;
    left: -1.75rem;
    width: 1.6rem;
    height: 1.6rem;
}

/*---- custome search ----*/
.custom-search {
    position: relative;
}

.custom-search .form-control {
    padding-left: 40px; /* Laissez de l'espace pour l'icône */
    background-color: #bbb;
    color: #fff;
}

.custom-search::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; 
    height: 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' class='bi bi-search' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M11.742 10.329a6.5 6.5 0 1 0-1.414 1.414l3.823 3.822a1 1 0 0 0 1.415-1.415l-3.822-3.821z'/%3e%3ccircle cx='6.5' cy='6.5' r='5.4' fill='%23bbb' stroke='%23fff' stroke-width='2.5'/%3e%3c/svg%3e");
    background-size: cover;
    z-index: 1000;
}

.custom-search .form-control::placeholder {
    color: #efefef;
}
/*---- end custom search ----*/






/* Wizard */
*,::after,::before {
    box-sizing: inherit !important;
}
.wizard-progress {
  display: table;
  width: 100%;
  table-layout: fixed;
  position: relative;
}
.wizard-progress .step {
  display: table-cell;
  text-align: center;
  vertical-align: top;
  overflow: visible;
  position: relative;
  font-size: 14px;
  color: #000;
  font-weight: bold;
  transition: background 0.7s; 
  transition: border 0.9s; 
}
.wizard-progress .step:not(:last-child):before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 37px;
  background-color: #e7e7e7;
  height: 6px;
  width: 100%;
  transition: background 0.7s; 
  transition: border 0.9s; 
}
.wizard-progress .step .node {
  display: inline-block;
  border: 6px solid #e7e7e7;
  background-color: #e7e7e7;
  border-radius: 18px;
  height: 18px;
  width: 18px;
  position: absolute;
  top: 25px;
  left: 50%;
  margin-left: -18px;
  transition: background 0.7s; 
  transition: border 0.9s; 
}
.wizard-progress .step.complete, .wizard-progress .step.complete .node {
  cursor: pointer;
}
.wizard-progress .step.complete:before {
  background-color: #007bff;
  transition: background 0.7s; 
  transition: border 0.9s; 
}
.wizard-progress .step.complete .node {
  border-color: #007bff;
  background-color: #007bff; 
  transition: background 0.7s; 
  transition: border 0.9s; 
}
.wizard-progress .step.complete .node:before {
  /*font-family: FontAwesome;
  content: "";*/
  content: "✓";
  color: #fdd400;
  font-size: 1.4em;
  line-height: .8em;
}
.wizard-progress .step.in-progress:before {
  background: #07c;
  background: -moz-linear-gradient(right, #007bff 0%, #e7e7e7 40%);
  background: -webkit-linear-gradient(right, #007bff 0%, #e7e7e7 40%);
  background: linear-gradient(to right, #007bff 0%, #e7e7e7 40%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#07c", endColorstr="#e7e7e7",GradientType=1 );
  transition: background 0.7s; 
  transition: border 0.9s; 
}
.wizard-progress .step.in-progress .node {
  border-color: #007bff;
  transition: background 0.7s; 
  transition: border 0.9s; 
}


/* CSS pour l'animation slideDown */

.slide-area {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  display: block;
}

/* CSS pour l'animation slideUp */
.slide-area.hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in;
  display: none;
}

/* Fix Bootstrap 4 btn xs */
.btn-group-xs > .btn, .btn-xs {
  padding: .3rem .4rem;
  font-size: .875rem;
  line-height: .6;
  border-radius: .2rem;
}

.normal-badge {
  font-weight: normal;
  padding-left: .5rem;
  padding-right: .5rem;
  margin: 0 2px;
  border: 1px solid #ddd; cursor: pointer;
}

/*-------*/
.radio-group {
  display: flex;
  gap: 4px; margin: 0 0 10px;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #eaecef;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.radio-group label:hover {
  background-color: #ccc;
}

.radio-group input[type="radio"]:checked + label {
  background-color: #007bff;
  color: #fff;
}

.radio-group input[type="radio"]:checked + label.off {
  background-color: #dc3545;
}

.area, #var_box {
    font-family: Monaco, Courier New, Consolas, Menlo, Inconsolata, "Source Code Pro", monospace; font-size: .8rem;
}
#macro {
    background: #000; color: #eee; font-size: .5rem;
}

/*--  Toolbox --*/
.toolbox {
    display: inline-block;
}
.toolbox-links {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    display: inline;
    position: absolute;
}

.toolbox-links.visible {
    width: auto; /* Ajustez la largeur souhaitée */
    animation: slideIn 0.3s forwards;
    background-color: #f5f5f5;
    padding-left: 10px;
    padding-right: 10px;
}

.mark-style {
  background-color: rgba(0, 123, 255, 0.25);
  border-radius: 2px;
}
.comment-box {
  width: 100%;
  padding: 10px;
  border: 2px solid #ced4da;
  border-radius: 5px;
  background-color: #ffffff;
  font-family: Monaco, Courier New, Consolas, Menlo, Inconsolata, "Source Code Pro", monospace !important;
  resize: none;
  max-width: 800px;
}


/* ------ start switch------ */
label.switch {
  transform: scale(1);
  display: flex;
  width: 100px;
  height: 40px;
  position: relative;
  margin:0;
  /*fond bleu et ombre interieur */
}
label.switch input {
  display: none;
}
label.switch div {
  display: block;
  width: 100px;
  height: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, #8b8c8e 20%, #f4f4f4);
  border-radius: 12px;
}
label.switch div:after {
  content: "";
  position: absolute;
  display: block;
  height: 23px;
  width: 98px;
  left: 1px;
  top: 1px;
  border-radius: 12px;
  background: #0ea741;
  box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}
label.switch i {
  display: block;
  width: 32px;
  height: 32px;
  position: absolute;
  top: 3px;
  left: 7px;
  transition: 0.25s;
  background-image: url("../images/sim-card-2.png");
  background-size: cover;
}
label.switch input:checked ~ i {
  left: 63px;
  background-image: url("../images/sim-card-1.png");
}
label.switch input:checked + div:after {
  background: #007bff;
  box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
label.switch input:checked + div > .off {
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0);
}
label.switch input:checked + div > .on {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
label.switch:hover {
  cursor: pointer;
}
label.switch:focus, label.switch:active {
  outline: 0;
}

label.switch .on, label.switch .off {
  text-transform: uppercase;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  font-weight: 600;
  z-index: 2;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  letter-spacing: 1px;
  transition: 0.25s;
}

label.switch .on {
  color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0);
}

label.switch .off {
  left: initial;
  right: 14px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* ------end switch------ */

@media (max-width: 767px) {
  input.form-control, textarea.form-control {
    width: 92%;
  }
  select.form-control {
    width: 85%;
  }
  .toolbox-links {
       line-height: 1.4rem;
  }
  .comment-box {
    width: 92%;
    max-width: 600px;
  }
}


/*--- Extra animation ---*/

.puff-in-center {
  -webkit-animation: puff-in-center 0.5s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
          animation: puff-in-center 0.5s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
}
.slide-out-fwd-tr {
  -webkit-animation: slide-out-fwd-tr 0.8s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
          animation: slide-out-fwd-tr 0.8s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
.slide-out-elliptic-top-bck {
  -webkit-animation: slide-out-elliptic-top-bck 0.7s ease-in both;
          animation: slide-out-elliptic-top-bck 0.7s ease-in both;
}
.slide-out-elliptic-bottom-bck {
  -webkit-animation: slide-out-elliptic-bottom-bck 0.7s ease-in both;
          animation: slide-out-elliptic-bottom-bck 0.7s ease-in both;
}
.slide-out-elliptic-leftbottom-bck {
  -webkit-animation: slide-out-elliptic-leftbottom-bck 1s ease-in-out;
          animation: slide-out-elliptic-leftbottom-bck 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-10%);
    }
    to {
        transform: translateX(0);
    }
}

/**
 * ----------------------------------------
 * animation puff-in-center
 * ----------------------------------------
 */
@-webkit-keyframes puff-in-center {
  0% {
    -webkit-transform: scale(1.5);
            transform: scale(1.5);
    -webkit-filter: blur(4px);
            filter: blur(4px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}

@keyframes puff-in-center {
  0% {
    -webkit-transform: scale(1.5);
            transform: scale(1.5);
    -webkit-filter: blur(4px);
            filter: blur(4px);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: blur(0px);
            filter: blur(0px);
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation slide-out-fwd-tr
 * ----------------------------------------
 */

@-webkit-keyframes slide-out-fwd-tr {
  0% {
    -webkit-transform: translateZ(0) translateY(0) translateX(0);
            transform: translateZ(0) translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(700px) translateY(-800px) translateX(700px);
            transform: translateZ(700px) translateY(-800px) translateX(700px);
    opacity: 0;
  }
}
@keyframes slide-out-fwd-tr {
  0% {
    -webkit-transform: translateZ(0) translateY(0) translateX(0);
            transform: translateZ(0) translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(700px) translateY(-800px) translateX(700px);
            transform: translateZ(700px) translateY(-800px) translateX(700px);
    opacity: 0;
  }
}
/**
 * ----------------------------------------
 * animation slide-out-elliptic-top-bck
 * ----------------------------------------
 */
@-webkit-keyframes slide-out-elliptic-top-bck {
  0% {
    -webkit-transform: translateY(0) translateX(0) scale(1);
            transform: translateY(0) translateX(0) scale(1);
    -webkit-transform-origin: 20% 1200px;
            transform-origin: 20% 1200px;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-800px) translateX(500px) scale(0.4);
            transform: translateY(-800px) translateX(500px) scale(0.4);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 1;
  }
}
@keyframes slide-out-elliptic-top-bck {
  0% {
    -webkit-transform: translateY(0) translateX(0) scale(1);
            transform: translateY(0) translateX(0) scale(1);
    -webkit-transform-origin: 20% 1200px;
            transform-origin: 20% 1200px;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-800px) translateX(500px) scale(0.4);
            transform: translateY(-800px) translateX(500px) scale(0.4);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 1;
  }
}
/**
 * ----------------------------------------
 * animation slide-out-elliptic-leftbottom-bck
 * ----------------------------------------
 */
@-webkit-keyframes slide-out-elliptic-leftbottom-bck {
  0% {
    -webkit-transform: translateX(0) translateY(0) rotate(0) scale(1);
            transform: translateX(0) translateY(0) rotate(0) scale(1);
    -webkit-transform-origin: 2000px 50%;
            transform-origin: 2000px 50%;
    opacity: 1;
  }
  20% {
    -webkit-transform: translateX(-100px) translateY(-100px) scale(0.7);
            transform: translateX(-100px) translateY(-100px) scale(0.7);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px) translateY(600px) scale(0);
            transform: translateX(-1000px) translateY(600px) scale(0);
    -webkit-transform-origin: -100% 50%;
            transform-origin: -100% 50%;
    opacity: 1;
  }
}
@keyframes slide-out-elliptic-leftbottom-bck {
  0% {
    -webkit-transform: translateX(0) translateY(0) rotate(0) scale(1);
            transform: translateX(0) translateY(0) rotate(0) scale(1);
    -webkit-transform-origin: 2000px 50%;
            transform-origin: 2000px 50%;
    opacity: 1;
  }
  20% {
    -webkit-transform: translateX(-100px) translateY(-100px) scale(0.7);
            transform: translateX(-100px) translateY(-100px) scale(0.7);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px) translateY(600px) scale(0);
            transform: translateX(-1000px) translateY(600px) scale(0);
    -webkit-transform-origin: -100% 50%;
            transform-origin: -100% 50%;
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation slide-out-elliptic-left-bck 
 * ----------------------------------------
 */
@-webkit-keyframes slide-out-elliptic-left-bck {
  0% {
    -webkit-transform: translateX(0) rotateY(0) scale(1);
            transform: translateX(0) rotateY(0) scale(1);
    -webkit-transform-origin: 2000px 50%;
            transform-origin: 2000px 50%;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px) rotateY(30deg) scale(0);
            transform: translateX(-1000px) rotateY(30deg) scale(0);
    -webkit-transform-origin: -100% 50%;
            transform-origin: -100% 50%;
    opacity: 1;
  }
}
@keyframes slide-out-elliptic-left-bck {
  0% {
    -webkit-transform: translateX(0) rotateY(0) scale(1);
            transform: translateX(0) rotateY(0) scale(1);
    -webkit-transform-origin: 2000px 50%;
            transform-origin: 2000px 50%;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(-1000px) rotateY(30deg) scale(0);
            transform: translateX(-1000px) rotateY(30deg) scale(0);
    -webkit-transform-origin: -100% 50%;
            transform-origin: -100% 50%;
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation slide-out-elliptic-bottom-bck
 * ----------------------------------------
 */
@-webkit-keyframes slide-out-elliptic-bottom-bck {
  0% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
            transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% -1400px;
            transform-origin: 50% -1400px;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(600px) rotateX(30deg) scale(0);
            transform: translateY(600px) rotateX(30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 1;
  }
}
@keyframes slide-out-elliptic-bottom-bck {
  0% {
    -webkit-transform: translateY(0) rotateX(0) scale(1);
            transform: translateY(0) rotateX(0) scale(1);
    -webkit-transform-origin: 50% -1400px;
            transform-origin: 50% -1400px;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(600px) rotateX(30deg) scale(0);
            transform: translateY(600px) rotateX(30deg) scale(0);
    -webkit-transform-origin: 50% 100%;
            transform-origin: 50% 100%;
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * puffIn
 * ----------------------------------------
 */
.puffIn {
  -webkit-animation-name: puffIn;
          animation-name: puffIn;
}

@-webkit-keyframes puffIn {
  0% {
    opacity: 0;
    transform-origin: 50% 50%;
    transform: scale(2, 2);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform-origin: 50% 50%;
    transform: scale(1, 1);
    filter: blur(0px);
  }
}
@keyframes puffIn {
  0% {
    opacity: 0;
    transform-origin: 50% 50%;
    transform: scale(2, 2);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform-origin: 50% 50%;
    transform: scale(1, 1);
    filter: blur(0px);
  }
}
.magictime {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

@media (print), (prefers-reduced-motion) {
  .magictime {
    -webkit-animation: unset !important;
            animation: unset !important;
    transition: none !important;
  }
}


/*----------- calculator */
#calculator-header {
    background-color: #233659;
    padding: 10px;
}

#calculator-header a {
    /* default blue/purples would be unreadable against blue background */
    color: inherit;
}

#message-box {
    color: white;
    margin-bottom: 10px;
}

#message-box > textarea {
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    min-height: 5em;
}

#information-box {
    display: grid;
    grid-template-columns: repeat(5, auto);
    column-gap: 10px;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    justify-content: space-between;
}
#information-box > .label {
    padding-top: 5px;
    text-align: center;
    font-size: small;
    font-variant: all-petite-caps;
    background-color: #233659;
    color: white;
}
#information-box > .value {
    padding-top: 5px;
    font-size: medium;
    text-align: center;
    background-color: #233659;
    color: white;
    margin-bottom: 0;
}

#viewers {
    background-color: #F9F9F9;
    padding-top: 20px;
}
#viewers-inner {
    color: black;
    padding: 5px;
    margin-bottom: 10px;
}

.label {
    display: block;
    font-size: small;
    font-variant: all-petite-caps;
    padding-bottom: 5px;
}
.value {
    display: block;
    margin-bottom: 14px;
}

#message-viewer, #segments-viewer {
    line-height: 0.8;
}

.block {
    align-items: center;
    color: black;
    display: inline-flex;
    font-family: Monaco, Courier New, Consolas, Menlo, Inconsolata, "Source Code Pro", monospace;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}
.block.selected {
    color: white;
}
.block > span {
    cursor: default;
}
.block > span.invisible::before {
    content: "•";
}

#segment-counter {
  font-size: 2.4em; font-weight: bold;
  line-height: 1.4em;
}

#message-viewer > .block {
    font-size: .9em;
    height: 1em;
    border: 1px solid #ccc;
    border-radius: 2px; margin: 1px; padding: 2px 5px;
}
#message-viewer > .block.error {
    background-color: red;
}

#segments-viewer > .block {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    font-size: .6em;
    height: 1em;
    padding: 4px;
    width: 5ch;
}
#segments-viewer > .block.twilio > img {
    display: inline;
    height: 1em;
}

/********************************/
/* GSM-7 Segments Color Palette */
/********************************/
[data-encoding="GSM-7"] .segment-type-0 {
    background-color: #CCE4FF;
}
[data-encoding="GSM-7"] .segment-type-0.selected {
    background-color: #0263E0;
}

[data-encoding="GSM-7"] .segment-type-1 {
    background-color: #D1FAE0;
}
[data-encoding="GSM-7"] .segment-type-1.selected {
    background-color: #14B053;
}

[data-encoding="GSM-7"] .segment-type-2 {
    background-color: #FDDCC4;
}
[data-encoding="GSM-7"] .segment-type-2.selected {
    background-color: #F47C22;
}

[data-encoding="GSM-7"] .segment-type-3 {
    background-color: #FFF1B3;
}
[data-encoding="GSM-7"] .segment-type-3.selected {
    background-color: #E8B407;
}

[data-encoding="GSM-7"] .segment-type-4 {
   background-color: #E7DCFA;
}
[data-encoding="GSM-7"] .segment-type-4.selected {
    background-color: #6D2ED1;
}

/********************************/
/* UCS-2 Segments Color Palette */
/********************************/
[data-encoding="UCS-2"] .segment-type-0 {
    background-color: #FFF1B3;
}
[data-encoding="UCS-2"] .segment-type-0.selected {
    background-color: #E8B407;
}

[data-encoding="UCS-2"] .segment-type-1 {
    background-color: #E7DCFA;
}
[data-encoding="UCS-2"] .segment-type-1.selected {
    background-color: #6D2ED1;
}

[data-encoding="UCS-2"] .segment-type-2 {
    background-color: #CCE4FF;
}
[data-encoding="UCS-2"] .segment-type-2.selected {
    background-color: #0263E0;
}

[data-encoding="UCS-2"] .segment-type-3 {
    background-color: #D1FAE0;
}
[data-encoding="UCS-2"] .segment-type-3.selected {
    background-color: #14B053;
}

[data-encoding="UCS-2"] .segment-type-4 {
   background-color: #FDDCC4;
}
[data-encoding="UCS-2"] .segment-type-4.selected {
    background-color: #F47C22;
}

.block.non-gsm {
  color: red;
}

.block.as-two {
  color: red;
}

.recently-changed {
    animation: pulseHighlight 1s ease-out infinite;
}

@keyframes pulseHighlight {
  0% {
    color: yellow;
  }
  100% {
    color: white;
  }
}

/********************************/
/* Legend                       */
/********************************/
.legend {
    font-size: 10px;
    background-color: #f9f9f9;
    padding: 0px 0px 5px 5px;
}

.legend-block {
    display: inline;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 12px;
    height: 1em;
    padding: 4px;
    width: 6ch;
    vertical-align: middle;
    font-family: monospace;
  }
  
#warnings-viewer {
    font-size: 10px;
}
