
/* 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;
    }
}








/* Esconde as imagens quadradas no desktop */

.img-desktop {
    display: block;
}

.img-mobile {
    display: none;
}

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

    .grid {
        gap: 1rem;
    }

    /* No mobile: esconde as imagens horizontais e mostra as quadradas */
    .img-desktop {
        display: none;
    }

    .img-mobile {
        display: block;
    }
    /*
    .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;
}

/* Carousel */
.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;
    }

.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;
    }

/* Dialog */
#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;
    }

/* Overlay e Modal */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 9999;
}

#modal {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

    #modal button {
        background-color: #3498db;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

        #modal button:hover {
            background-color: #2980b9;
        }

/* Ticker de preços */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    background: transparent;
    padding: 0.25rem 0;
}

.ticker {
    display: inline-flex;
    gap: 0.5rem;
    padding-left: 100%;
    animation: ticker-slide 20s linear infinite;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
    /* Use -50% se duplicar itens via JS */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #1F2937;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
    min-width: 180px;
    font-weight: bold;
    color: white; /* tickets brancos */
    white-space: nowrap;
}

    .ticker-item .symbol {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .ticker-item .price {
        margin-right: 0.5rem;
        color: #34D399;
    }

    .ticker-item .change.positive {
        color: #34D399;
    }

    .ticker-item .change.negative {
        color: #F87171;
    }
