* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  height: 90%;
  margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #2b4de6; /* For browsers that do not support gradients */
    background-image: linear-gradient(180deg, #6c87ff, #2b4de6);
}

.grad1 {
  height: 100%;
  margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
  background-color: #2b4de6; /* For browsers that do not support gradients */
  background-image: linear-gradient(180deg, #6c87ff, #2b4de6);
}

.cherry-bomb-one-regular {
  font-family: "Cherry Bomb One", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Splash screen */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  z-index: 9999;
  animation: fadeOut 1s ease 2s forwards;
}

.logo {
  width: 150px;
  height: 150px;
  opacity: 0;
  animation: fadeInOut 3.5s ease;
}

@keyframes fadeInOut {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

main {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 8px #00000060;
  display: inline-block;

  
}
/**/
#actionBtn {
  padding: 10px 20px;
  font-size: 16px;
  background: #22aee0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
}

#actionBtn.loading {
  background: #ccc;
  cursor: wait;
}

#actionBtn.download {
  background: #28a745; /* hijau untuk download */
}


/* Loader (spinner) */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007BFF;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.5s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animasi fade */
.fade {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.navbar {
  display: flex;

  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);


  margin: 0px 0px 20px 0px;
width: 100%;
position: fixed;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      z-index: 1000;
}

.nav-item {
  flex: 0;
  text-align: center;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
  color: black;
  transition: all 0.3s ease-in-out;
  border-right: 1px solid #ddd;
}

.nav-item:last-child {
  border-right: none;
}

.nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

.nav-item:hover {
  color: #2b8ce6;
  transform: scale(1.1);
  transition: all 0.3s ease-in-out;
}

.active {
  color: #2b8ce6;
}

.card {
  background: #fff;
  
  padding: 20px 30px;
  border-radius: 12px;

  display: flex;
  gap: 25px;
  align-items: center;
}

/* Upload box */
.upload-box {
  width: 90px;
  height: 90px;
  border: 2px dashed #000442;
  border-radius: 8px;
  color: #141414;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  justify-content: center;
}

/* Upload box */
.upload-box.dragover {
  background: #22aee0;
  border: 2px dashed  #22aee0;
  color: white;
}
.upload-box:hover {
  background: #22aee0;
  border: 2px dashed  #22aee0;
  color: white;
}

.plus {
  font-size: 40px;
  line-height: 1.1;
  font-family: "Cherry Bomb One", system-ui;
}

#fileName {
  margin-top: 10px;
  font-size: 12px;
  color: #555;
  text-align: center;
}

/*scale*/

#scale {
  width: 60px;
  height: 45px;
  font-size: 25px;
  padding: 5px;
  color: #1d1d1d;
  border-radius: 6px;
  transition: background 0.3s;
  border: 1px solid #1d1d1d;
}

#scale:hover {
  background: #22aee0;
  border: 1px solid  #22aee0;
  color: white;
}

#method {
  height: 35px;
  font-size: 15px;
  padding: 5px;
  color: #1d1d1d;
  border: 1px solid #1d1d1d;
  border-radius: 6px;
  transition: background 0.3s;
}

#method:hover {
  background: #22aee0;
  border: 1px solid  #22aee0;
  color: white;
}

#method option {
  background: white !important;
  color: #1d1d1d !important;
}
