body{
  font-family: 'Cairo', sans-serif;
}
    .massg-arry{
        top: 0;
        right: 0;
        background-color: #0000003b;
        position: fixed;
        z-index: 10;
        width: 100%;
        height: 100%;
    }

        .massg-arry .ewx{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .massg-arry .ewx.index{
        left: 50%;
    }
    
    .massg-arry .ewx p{
        font-family: 'Cairo', sans-serif;
        font-weight: bold;
        color: blue;
    }












    .xmsg-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.72); /* غامق وشفاف */
      backdrop-filter: blur(3px);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    /* صندوق الرسالة في الوسط */
    .xmsg-box {
      direction: rtl;
      font-family: system-ui, sans-serif;
      max-width: 420px;
      width: 90%;
      padding: 18px 16px;
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .xmsg-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .xmsg-title {
      margin: 0;
      font-size: 17px;
      font-weight: 700;
      color: #111827;
    }

    .xmsg-tag {
      padding: 4px 10px;
      background: #fee2e2;
      color: #b91c1c;
      border-radius: 999px;
      font-size: 11px;
      white-space: nowrap;
    }

    .xmsg-text {
      margin: 0;
      color: #4b5563;
      line-height: 1.7;
      font-size: 14px;
    }

    /* الخيارات فوق بعضها وفي نفس الكرت */
    .xmsg-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 4px;
    }

        .xmsg-options input{
          width: 90%;
          padding: 10px;
          margin: 10px auto;
          font-size: 20px;
          border: solid #00000089;
          border-radius: 7px;
          border-width: 3px;

        }

    .xmsg-btn {
      border: none;
      cursor: pointer;
      padding: 10px 14px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      transition: 0.15s;
      width: 100%;
      text-align: center;
    }

    .xmsg-ok {
      background: #2563eb;
      color: #ffffff;
    }

    .xmsg-edit {
      background: #f3f4f6;
      color: #111827;
    }

    .xmsg-cancel {
      background: #f97316;
      color: #ffffff;
    }

    .xmsg-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.18);
    }

    .xmsg-foot {
      display: flex;
      justify-content: space-between;
      margin-top: 6px;
      gap: 8px;
    }

    .xmsg-meta {
      font-size: 11px;
      color: #9ca3af;
    }





















            /* COMMON STYLES*/
.popup {
  margin: 20px;
  position: fixed;
  box-shadow: 4px 4px 10px -10px rgba(0, 0, 0, 1);
  width: 300px;
  justify-content: space-around;
  align-items: center;
  display: flex;
  border-radius: 4px;
  padding: 10px 0;
  font-weight: 300;
  left: 0;
  top: 15px;
  position: fixed;
  z-index: 51;
}
.popup svg {
  width: 1.25rem;
  height: 1.25rem;
}
.popup-icon svg {
  margin: 5px;
  display: flex;
  align-items: center;
}
.close-icon {
  margin-left: auto;
}
.close-svg {
  cursor: pointer;
}
.close-path {
  fill: grey;
}

/*SEPERATE STYLES*/

/* SUCCESS */
.success-popup {
  background-color: #edfbd8;
  border: solid 1px #84d65a;
}
.success-icon path {
  fill: #84d65a;
}
.success-message {
  color: #2b641e;
}

/* ALERT */
.alert-popup {
  background-color: #fefce8;
  border: solid 1px #facc15;
}
.alert-icon path {
  fill: #facc15;
}
.alert-message {
  color: #ca8a04;
}

/* ERROR */

.error-popup {
  background-color: #fef2f2;
  border: solid 1px #f87171;
}
.error-icon path {
  fill: #f87171;
}
.error-message {
  color: #991b1b;
}

/* INFO */

.info-popup {
  background-color: #eff6ff;
  border: solid 1px #1d4ed8;
}
.info-icon path {
  fill: #1d4ed8;
}
.info-message {
  color: #1d4ed8;  
}

.loading{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 51;
    background-color: #00000093;
}
.loader {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
  --cell-size: 52px;
  --cell-spacing: 1px;
  --cells: 3;
  --total-size: calc(var(--cells) * (var(--cell-size) + 2 * var(--cell-spacing)));
  display: flex;
  flex-wrap: wrap;
  width: var(--total-size);
  height: var(--total-size);
}

.cell {
  flex: 0 0 var(--cell-size);
  margin: var(--cell-spacing);
  background-color: transparent;
  box-sizing: border-box;
  border-radius: 4px;
  animation: 1.5s ripple ease infinite;
}

.cell.d-1 {
  animation-delay: 100ms;
}

.cell.d-2 {
  animation-delay: 200ms;
}

.cell.d-3 {
  animation-delay: 300ms;
}

.cell.d-4 {
  animation-delay: 400ms;
}

.cell:nth-child(1) {
  --cell-color: #ff0000;
}

.cell:nth-child(2) {
  --cell-color: #dc4343;
}

.cell:nth-child(3) {
  --cell-color: #f96d6d;
}

.cell:nth-child(4) {
  --cell-color: #ac0404;
}

.cell:nth-child(5) {
  --cell-color: #df0c0c;
}

.cell:nth-child(6) {
  --cell-color: #f53d3d;
}

.cell:nth-child(7) {
  --cell-color: #f44545;
}

.cell:nth-child(8) {
  --cell-color: #f15353;
}

.cell:nth-child(9) {
  --cell-color: #ff6060;
}

/*Animation*/
@keyframes ripple {
  0% {
    background-color: transparent;
  }

  30% {
    background-color: var(--cell-color);
  }

  60% {
    background-color: transparent;
  }

  100% {
    background-color: transparent;
  }
}

