@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Nunito, system-ui, BlinkMacSystemFont, -apple-system, sans-serif;
}

body {
    background-color: none transparent;
}

.container{
    position:absolute;
    top:0px;
    right:0px;
    bottom:0px;
    left:0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-btn span{
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
    background: #4099de;
    color: white;
    --progress: 0%;
    overflow: hidden;
  }

  .upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress);
    height: 100%;
    /* Semi-transparent overlay so the underlying button color shows through */
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.15) 100%
    );
    transition: width 0.3s ease;
    z-index: 0;
  }

  .upload-btn .label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
  }

  .upload-btn svg{
    fill: white;
    margin-right: 10px;
  }
  
  .upload-btn.drag {
    border-color: #4f46e5;
    background: #4099de;
    opacity: 1;
  }
  
  .upload-btn.loading {
    pointer-events: none;
    cursor: not-allowed;
  }

  .upload-btn.loading::before {
    /* Keep loading state overlay transparent as well */
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }
  
  .upload-btn.success {
    background: #16a34a;
    color: white;
  }

  .upload-btn.success::before {
    background: #16a34a;
    width: 100%;
  }
  
  .upload-btn.error {
    background: #dc2626;
    color: white;
  }

  .upload-btn.error::before {
    background: #dc2626;
    width: 0%;
  }
  