/* ===== Overlay ===== */
.apl-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===== Modal Card ===== */
.apl-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 820px;           /* wider for two columns */
  max-width: 95%;
  max-height: 90vh;       /* keep within viewport */
  position: relative;
  overflow: hidden;       /* clip internals; forms will scroll */
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

/* Close button */
.apl-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

/* ===== Two-column body ===== */
.apl-modal-body {
  display: flex;
  height: 460px;          /* << fixed height on desktop to stop jumping */
}

/* Left column (image) */
.apl-modal-image {
  flex: 1;
  min-width: 0;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apl-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right column (forms) */
.apl-forms {
  flex: 1;
  min-width: 0;
  padding: 32px;
  overflow-y: auto;       /* scroll inside, box stays same size */
  -webkit-overflow-scrolling: touch;
}

/* (Optional) nicer thin scrollbar */
.apl-forms::-webkit-scrollbar { width: 8px; }
.apl-forms::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 8px; }

/* Headings & inputs */
.apl-forms h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 22px;
}
.apl-forms input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
}
.apl-forms input:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0,115,170,.12);
}

/* Buttons */
.apl-forms button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #00000;   /* ← your new login button color */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.apl-forms button:hover { filter: brightness(0.95); }

.apl-forms p {
  margin-top: 14px;
  text-align: center;
}

/* ===== Account icon (non-sticky, follows page flow if placed in header) ===== */
.apl-account-icon {
  position: relative;     /* you chose non-sticky earlier */
 color: #fff;

  top: 5px;
  right: 15px;
  z-index: 10000;
}
.apl-login-btn{
    background-color: #fff;
    color: #000000;
}
.apl-account-icon button {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .apl-modal-content {
    width: 94%;
    max-height: 90vh;
  }
  
 
  /*..................on mobile avatar in menu.................................................................................*/
/* Avatar circle with first letter */
/*

    /*..................on mobile avatar in menu............................./////////////////////////////////////*/

  .apl-modal-body {
    flex-direction: column;
    height: auto;                 /* let it grow on mobile */
  }
  .apl-modal-image {
    height: 180px;                /* fixed top image height */
  }
  .apl-forms {
    padding: 20px;
    max-height: calc(90vh - 180px - 40px); /* keep inside screen */
  }
}

/*..........ray cross button.............*/
.my-plugin-button {
    position: relative;
    overflow: hidden;
    background-color: black;
    border-radius: 10px;
    border:5px solid #fffff;

    z-index: 1;
}

.my-plugin-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    /*z-index: 2;*/
}
.my-plugin-button:hover{
    background-color: black;
   
}
.my-plugin-button:hover::before {
    animation: ray-sweep 1.5s ease-in-out;

}

@keyframes ray-sweep {
    0% {
        left: -100%;
    }
    100% {
        left:100%;
    }
}
/*,,,,,,,,,,,,login ID in circle.............*/
/* Wrapper for avatar + logout button */

.apl-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
        color: #000000;

}

.apl-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff; /* avatar background */
    color: #000000; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.apl-user-avatar i {
    font-size: 18px;
    line-height: 1;
}
.apl-logout-btn:hover{
    background-color: transparent;
}

/*.......................................new at last to show dropdown of avatar...................*/
/* Wrapper for avatar + dropdown */
.apl-user-info {
  position: relative;
}

/* Dropdown box */
.apl-dropdown {
  position: absolute;
  top: 120%; /* just below avatar */
  /*right: 50%;*/
  left: -100%;
  background: transparent;
  /*border: 1px solid #ddd;*/
  /*border-radius: 6px;*/
  /*box-shadow: 0 4px 12px rgba(0,0,0,.1);*/
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; /* <-- delay hide */
  z-index: 999;
}

/* Show dropdown when parent hovered */
.apl-user-info:hover .apl-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s; /* show instantly */
}
/*.................move menu dropdown to left with trigger.....................*/


.apl-profile-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:99999;
}

.apl-profile-modal .apl-modal-content{
    background:#fff;
    width:400px;
    max-width:90%;
    margin:100px auto;
    padding:30px;
    border-radius:10px;
    position:relative;
}

.apl-profile-close{
    position:absolute;
    right:15px;
    top:10px;
    cursor:pointer;
    font-size:24px;
}

#apl-profile-form input{
    width:100%;
    margin-bottom:15px;
}
.cc-comment-author{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:5px;
}

.cc-profession{
    font-size:12px;
    color:#777;
    background:#f5f5f5;
    padding:2px 8px;
    border-radius:20px;
}