p, span, button, input, .input-error-tooltip, #task-list .wp-caption .wp-caption-text {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !important;
}

button.open-task-popup, .fn-task-popup {
    font-family: inherit;
    background: linear-gradient(-45deg, #ec0009, #F7C600, #c4048f, #c2022c);
    background-size: 400% 400%;
    animation: gradient 4s ease infinite;
    border-radius: 20px;
    border: 2px solid #F7C600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    color: #ffef5a !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1em;
    margin: 0 auto;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

button.open-task-popup svg, .fn-task-popup svg {
    fill: #ffeb00;
    width: 18px;
    margin-right: 4px;
    animation: upDown 1.5s ease-in-out infinite;
}

@keyframes upDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

.download-box img {
    border-radius: 4px !important;
}



/* Popup overlay */
#task-popup {
    display: none; /* Ẩn popup ban đầu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}






#task-popup .noidung {
    text-align: left;
    margin: 30px 20px 120px 20px;
}




#task-list img {
    border-radius: 0;
    max-width: 90%;
    margin: auto;
    display: block;
    padding: 10px 0;
}
#task-list .wp-caption .wp-caption-text {
    font-size: 15px !important;
    line-height: 1.2em;
    font-style: italic !important;
    color: #7b7b7b !important;
    background-color: #ffffff;
    padding: 2px;
    margin: 0 60px;
    z-index: 9;
    position: relative;
    margin-top: -15px;
    /* border: 2px solid #ff2500; */
}

#task-list figure {
    margin-bottom: 5px;
}




.popup-header {
    position:absolute;
    justify-content:center;
    inset-inline:0;
    top:0;
    width:100%;
    background-color: #efefef;
    border-bottom: 10px solid #ffffff;
    border-radius: 20px 20px 0 0;
    -webkit-border-radius: 20px 20px 0 0;
    -moz-border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

p.titlenv {
    font-size: 15px !important;
    font-weight: bold;
    color: #3e3e3e;
    line-height: 1.4em !important;
    text-align: center;
    padding: 0 10px;
}


.popup-footer {
    position:absolute;
    inset-inline:0;
    bottom:0;
    width:100%;
    box-sizing:border-box;
    flex-direction:column;
    align-items:center;
    gap:5px;
    
    background:#efefef;
    border-top: 10px solid #ffffff;
    border-radius:0 0 20px 20px;
    padding: 20px 20px 10px 20px;
    z-index:10;
}

.task-unlock-custom {
    display:flex;
    align-items:center;
    gap:5px;
    margin:0;           /* bỏ margin nếu thừa */
}

.popup-footer span {
    font-family: inherit;
    font-size: 15px;
    /* color: #303030; */
    /* font-style: italic; */
    text-align: center;
    justify-content: center;
    display: block;
}



#task-popup p {
    font-size: 16px;
    margin: 10px 0 !important;
    line-height: 1.4em;
}


#task-popup-content {
    position: fixed;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 700px;
    max-width: 90%;
    min-height: 720px;
    height: fit-content;
    max-height: 90%;
    padding: 0px 5px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 10px rgba(0,0,0,0.19);
    border: 2px solid #ffffff;
    display: flex;
    flex-direction: column;
}

.task-popup-inner {
  margin-top: 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
}




/* Scrollbar cho Chrome, Edge, Safari */
.task-popup-inner::-webkit-scrollbar {
    width: 6px;
    border-radius: 20px;
}

/* Track của scrollbar */
.task-popup-inner::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 20px;
}

/* Thanh cuộn (Thumb) */
.task-popup-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px; /* Bo góc thanh cuộn */
}

/* Hover trên thanh cuộn */
.task-popup-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}



#close-task-popup {
    position: absolute;
    top: -14px;
    right: -16px;
    width: 28px;
    height: 28px;
    font-size: 30px;
    line-height: 1.2em;
    color: #111;
    background: #fff;
    border-radius: 10px;
    padding: 0 2px 3px 2px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-task-popup:hover {
    color: red;
}



#copy-task-keyword {
    padding: 0;
    background: inherit;
    border: none;
    cursor: pointer;
    margin: 5px 5px 5px 10px;
}

#copy-task-keyword:hover {
}

#switch-task {
    padding: 0;
    background: inherit;
    border: none;
    cursor: pointer;
    margin: 5px;
}



#task-keyword {
    font-size: 18px;
    color: #b70000;
    font-weight: bold;
}

#task-keyword img {
    padding: 0;
}





.task-unlock-custom {
    margin-bottom: 10px;
    display: flex; 
    align-items: center; 
    gap: 5px; 
    width: 100%;
}


.task-unlock-custom button {
    font-size: 16px;
    line-height: 1em;
    font-weight: bold;
    text-transform: uppercase;
    
    font-family: inherit;
    background: linear-gradient(-45deg, #ec0009, #F7C600, #c4048f, #c2022c);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
    border-radius: 20px;
    border: 3px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffef5a !important;
    margin: 0 auto;
    width: 150px;
    height: 46px;
}


.task-unlock-custom  button:hover {
    background-color: #c40000;
}










.locked-content {
    padding: 20px;
    text-align: center;
    font-size: 16px;
}

input.task_password_input {
    font-size: 16px;
    padding: 10px 12px;
    border: 2px solid #9d9d9d;
    background-color: #fff;
    border-radius: 20px 0 0 20px;
    width: 90%;
}

input.task_password_input::-webkit-input-placeholder {
    color: #606060;
}

form.task-unlock-custom button {
    border-radius: 0 20px 20px 0;
}





/* Responsive cho mobile (max-width: 767px) */
@media all and (max-width: 767px) {
    
    
    #task-popup-content {
        width: 88%;
        max-width: 90%;
        min-height: 90%;
        height: fit-content;
        max-height: 90%;        
        top: 50%;
    }
    

    
    
    
    
    
    
    .task-popup-content {
        width: 80%;
        max-height: 80%;
        min-height: 650px;
        border: 5px solid #ffffff;
        padding: 0px 5px 10px;
    }

    .close-task-popup {
        top: -15px;
        right: -12px;
        width: 30px;
        height: 30px;
        font-size: 26px;
        padding: 0 4px 3px 5px;
    
    }
    .task-popup-inner {
     padding-right: 0;   
    }

#task-list {
    margin-top: 10px;
}


p.titlenv, .popup-footer span {
    font-size: 14px !important;
}


.popup-footer {
    padding: 10px;
}

#task-popup .noidung {
    text-align: left;
    margin: 55px 10px 130px 10px;
}


#task-list img {
    max-width: 90%;
}

#task-list .wp-caption .wp-caption-text {
        margin: -5px 20px 0 20px;
        font-size: 13px !important;
}

  #task-keyword {
    display: block;
    font-size: 16px;
  }
  #copy-task-keyword {
    margin: 0 0 0 5px;
}

}

