/* Custom Font for "Baixar" text */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

/* Instrument Sans font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* Apply Instrument Sans to entire site */
* {
    font-family: 'Instrument Sans', sans-serif;
}

.font-cursive {
    font-family: 'Dancing Script', cursive;
}

/* Platform Button Styles */
.platform-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
    max-width: 200px;
}

.platform-btn:hover {
    transform: translateY(-4px);
}

.platform-btn:active {
    transform: translateY(-2px);
}

/* Ícones - transição entre cinza e colorido */
.icon-default {
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.icon-colored {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.platform-btn:hover .icon-default,
.platform-btn:active .icon-default {
    opacity: 0;
}

.platform-btn:hover .icon-colored,
.platform-btn:active .icon-colored {
    opacity: 1;
}

.platform-btn:hover .icon-default,
.platform-btn:hover .icon-colored,
.platform-btn:active .icon-default,
.platform-btn:active .icon-colored {
    transform: scale(1.1);
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Animation for logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-container svg {
    animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .platform-btn {
        max-width: 45%;
        flex: 1;
    }
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Loader from Uiverse.io by catraco */
.loader {
    --color: #ec4899;
    --size: 40px;
    position: relative;
    width: var(--size);
    height: var(--size);
}

.loader span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid var(--color);
    border-bottom: 1px solid transparent;
    border-radius: 100%;
    animation: keyframes-rotate .8s infinite linear;
}

.loader svg {
    width: 100%;
    height: 100%;
    padding: 25%;
    fill: var(--color);
    animation: keyframes-blink .8s infinite ease-in-out;
}

@keyframes keyframes-rotate {
    0% {
        transform: rotate(360deg);
    }
}

@keyframes keyframes-blink {
  50% {
    opacity: 0.8;
  }
}

/* Barra de progresso - From Uiverse.io by musashi-13 */
@keyframes loadingBar {
  0% {
    width: 0%;
    animation-timing-function: ease-out;
  }
  30% {
    width: 33%;
    animation-timing-function: ease-out;
  }
  60% {
    width: 66%;
    animation-timing-function: ease-out;
  }
  90% {
    width: 100%;
    animation-timing-function: ease-out;
  }
  100% {
    width: 100%;
    animation-timing-function: ease-out;
  }
}

@keyframes checkScale1 {
  0% {
    transform: scale(0.75);
    background-color: #535353;
  }
  28% {
    transform: scale(0.75);
    background-color: #535353;
  }
  29% {
    transform: scale(1);
    background-color: rgb(0, 205, 0);
  }
  100% {
    transform: scale(1);
    background-color: rgb(0, 205, 0);
  }
}

@keyframes checkScale2 {
  0% {
    transform: scale(0.75);
    background-color: #535353;
  }
  58% {
    transform: scale(0.75);
    background-color: #535353;
  }
  59% {
    transform: scale(1);
    background-color: rgb(0, 205, 0);
  }
  100% {
    transform: scale(1);
    background-color: rgb(0, 205, 0);
  }
}

@keyframes checkScale3 {
  0% {
    transform: scale(0.75);
    background-color: #535353;
  }
  88% {
    transform: scale(0.75);
    background-color: #535353;
  }
  89% {
    transform: scale(1);
    background-color: rgb(0, 205, 0);
  }
  100% {
    transform: scale(1);
    background-color: rgb(0, 205, 0);
  }
}

.progress-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.progress-loader {
  position: relative;
  background-color: #535353;
  border-radius: 1em;
  height: 0.75em;
  width: 100%;
  max-width: 280px;
}

.progress-loader .bar {
  position: relative;
  background-color: rgb(0, 205, 0);
  width: 40px;
  height: 100%;
  border-radius: 1em;
  animation: loadingBar 6s linear infinite;
}

.progress-loader .check-bar-container {
  position: absolute;
  left: 0px;
  top: -4px;
  z-index: 69;
  display: flex;
  width: 100%;
  justify-content: space-between;
  height: 0.5em;
}

.progress-loader .check {
  border-radius: 1em;
  height: 1.5em;
  width: 1.5em;
  padding: 3px;
  background-color: #535353;
  transform: scale(0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-loader .check svg {
  width: 100%;
  height: 100%;
}

.progress-loader .check-bar-container .check:nth-of-type(2) {
  animation: checkScale1 6s linear infinite;
}
.progress-loader .check-bar-container .check:nth-of-type(3) {
  animation: checkScale2 6s linear infinite;
}
.progress-loader .check-bar-container .check:nth-of-type(4) {
  animation: checkScale3 6s linear infinite;
  transform-origin: right;
}

/* Logs container */
#logs-container {
  max-height: 120px;
  overflow-y: auto;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #4b5563;
  font-family: 'Courier New', monospace;
}

#logs-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.log-entry {
  padding: 0.25rem 0;
  border-bottom: 1px solid #e5e7eb;
  word-break: break-word;
}

.log-entry:last-child {
  border-bottom: none;
}

/* Modal animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#url-modal > div {
    animation: fadeIn 0.2s ease-out;
}

