/**
 * BT Live Withdrawals - Frontend CSS
 */

/* Main Wrapper */
.bt-withdrawals-wrapper {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 10px;
    background-color: #191919;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.bt-withdrawals-header {
    margin-bottom: 5px;
}

.bt-withdrawals-title {
    font-size: 20px;
    font-weight: 700;
    background: #000;
    margin: 0;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #50f172;
    border-radius: 10px;
    justify-content: space-between;
}

.bt-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: red;
    letter-spacing: 0.5px;
    padding: 1px 5px 5px 2px;
    border-radius: 5px;
    animation: btPulse 2s 
ease-in-out infinite;
}

@keyframes btPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Withdrawals List */
.bt-withdrawals-list {
    /* background: #ffffff; */
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #50f172;
}

/* Loading State */
.bt-loading {
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* Error Message */
.error-message {
    padding: 40px;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
}

/* No Transactions */
.no-transactions {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* Withdrawal Item */
.withdrawal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.withdrawal-item:last-child {
    border-bottom: none;
}

.withdrawal-item:hover {
    background: #000;
}

.withdrawal-item::after,
.withdrawal-item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ff0000, #00ffff);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.withdrawal-item::before {
  top: -5px;
  transform-origin: left;
}

.withdrawal-item:hover::after,
.withdrawal-item:hover::before {
  transform: scaleX(1);
}

/* New Transaction Animation */
.withdrawal-item.new-transaction {
    animation: btSlideIn 0.5s ease, btHighlight 2s ease;
}

@keyframes btSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes btHighlight {
    0%, 100% {
        background: #f8fafc;
    }
    50% {
        background: #dbeafe;
    }
}

/* Left Section */
.withdrawal-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.withdrawal-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    /* background: #f1f5f9; */
    padding: 4px;
    flex-shrink: 0;
}

.withdrawal-logo:not(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
}

.withdrawal-info {
    flex: 1;
    min-width: 0;
}

.withdrawal-username {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    /* margin-bottom: 4px; */
}

.withdrawal-partner {
    font-size: 15px;
    color: #FEDB39;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Section */
.withdrawal-right {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.withdrawal-amount {
    font-size: 18px;
    font-weight: 700;
    color: #44e6ff;
}

.withdrawal-register-btn {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdrawal-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    color: #ffffff;
}

.withdrawal-time {
    font-size: 12px;
    color: #94a3b8;
    display: none; /* Hidden since we're showing register button instead */
}

/* Register Buttons Section - REMOVED */
/* No longer needed as buttons are now inline with each transaction */

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .bt-withdrawals-wrapper {
        max-width: 100%;
        margin: 15px auto;
    }

@media screen and (max-width: 768px) {
    .bt-withdrawals-wrapper {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .bt-withdrawals-title {
        font-size: 20px;
    }
    
    .withdrawal-item {
        padding: 14px 16px;
    }
    
    .withdrawal-logo {
        width: 40px;
        height: 40px;
    }
    
    .withdrawal-username {
        font-size: 14px;
    }
    
    .withdrawal-partner {
        font-size: 15px;
    }
    
    .withdrawal-amount {
        font-size: 16px;
    }
    
    .withdrawal-register-btn {
        padding: 5px 16px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .bt-withdrawals-wrapper {
        max-width: 100%;
        margin: 15px auto;
    }
    
    .bt-withdrawals-title {
        font-size: 13px;
        gap: 5px;
    }
    
    .withdrawal-item {
        padding: 12px;
    }
    
    .withdrawal-left {
        flex: 1;
        min-width: 0;
    }
    
    .withdrawal-right {
        margin-left: 8px;
    }
    
    .withdrawal-amount {
        font-size: 16px;
    }
    
    .withdrawal-register-btn {
        padding: 5px 14px;
        font-size: 11px;
    }
}