/* Custom styles for Bitway Exchange */

/* Animations */
@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Order book styles */
.order-row {
  transition: all 0.2s ease;
  cursor: pointer;
}

.order-row:hover {
  transform: translateX(2px);
}

.order-row.selected {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Price change animations */
.price-up {
  color: #10b981;
  animation: flash-green 0.5s ease-in-out;
}

.price-down {
  color: #ef4444;
  animation: flash-red 0.5s ease-in-out;
}

@keyframes flash-green {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(16, 185, 129, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes flash-red {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(239, 68, 68, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid {
    gap: 1rem;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

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

/* Form improvements */
input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-online {
  background-color: #10b981;
}

.status-offline {
  background-color: #ef4444;
}

.status-pending {
  background-color: #f59e0b;
}

/* Acréscimo depois: */

.carousel-container {
    position: relative;
    width: 100%;
    margin: 20px auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
}

    .carousel-images img {
        width: 100%;
        height: auto;
        object-fit: cover;
        flex-shrink: 0; /* <-- impede que a imagem encolha */
    }

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .indicator.active {
        background-color: #717171;
    }


/*Acrescentei*/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#dialogo {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.star {
    font-size: 34px;
    color: #ccc;
    cursor: pointer;
    margin: 0 2px;
    transition: color 0.2s;
}

    .star.selected {
        color: #facc15;
    }

#dialogo textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    resize: none;
    font-size: 14px;
    margin-top: 8px;
}

#dialogo button {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    #dialogo button.cancel {
        background: #ccc;
        color: #000;
    }

    #dialogo button.confirm {
        background: #22c55e;
        color: #fff;
    }