/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    /* -webkit-transform: translate3d(0,0,0); */
}

/* LOADING BOX – */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%);  */
    width: 340px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 2rem;
    text-align: center;
    z-index: 3000;
    display: none;
    border: none;
    animation: fadeInScale 0.4s ease-out;
  }
  
  #loading h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e40af;
  }
  
  #loading p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
  }
  
  /* Spinner CSS hiện đại (không cần GIF) */
  #loading::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem auto;
    border: 5px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  /* Animation */
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* @keyframes fadeInScale {
    from {
      opacity: 0;
      transform: translate(-50%, -60%) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
   */
  /* Dark mode (nếu theme hỗ trợ) */
  @media (prefers-color-scheme: dark) {
    #loading {
      background: rgba(15, 23, 42, 0.95);
    }
    #loading h4 { color: #60a5fa; }
    #loading p { color: #94a3b8; }
    #loading::before {
      border-color: #1e293b;
      border-top-color: #60a5fa;
    }
  }

/* Kết thúc loading */

.pull-right {
    float: right;
}

.non-local-image {
    display: inline-block;
    border: 3px dashed #eee;
    border-radius: 5px;
}

.non-local-image:after {
    background: url(../logo.php) center center no-repeat;
    background-size: cover;
    content: "";
    z-index: -1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.3;
}

div.section-break {
    margin-top: 1em;
    margin-bottom: 0.5em;
    padding-top: 0.8em !important;
    border-top: 1px solid #ccc;
}

input.dp {
    width: 10em;
}

/* Custom css for datepicker */
.ui-datepicker-trigger {
    display:inline-block;
    border:0;
    padding:0;
    margin-left:2px;
    position:relative;
    top:-2px;
    width:16px;
    height:16px;
    background:inherit;
}

.draft-saved {
    background-color: black;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px 6px;
    border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    line-height: 14px;
    position: absolute;
    top: 3em;
    right: 0.5em;
}

.delete-draft:hover {
    background-color: #fc9f41 !important;
}

.notice_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #0a0; background: url('../assets/default/images/icons/ok.png') 10px 50% no-repeat #e0ffe0; }

.warning_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #f26522; background: url('../assets/default/images/icons/alert.png') 10px 50% no-repeat #ffffdd; }

.error_bar { margin: 0; padding: 5px 10px 5px 36px; height: 16px; line-height: 16px; border: 1px solid #a00; background: url('../assets/default/images/icons/error.png') 10px 50% no-repeat #fff0f0; }
