/* Sidebar User Info Styles */
.kt-sidebar-user-info {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* User info text - visible by default */
.kt-sidebar-user-info .user-info-text {
    opacity: 1;
    transition: opacity 0.2s ease, width 0.3s ease;
    overflow: hidden;
}

/* Balance info - visible by default */
.kt-sidebar-user-info .user-balance-info {
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When sidebar is collapsed */
.kt-sidebar-collapse .kt-sidebar-user-info {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    text-align: center;
}

/* Hide text when collapsed */
.kt-sidebar-collapse .kt-sidebar-user-info .user-info-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Hide balance info when collapsed */
.kt-sidebar-collapse .kt-sidebar-user-info .user-balance-info {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

/* Center avatar when collapsed */
.kt-sidebar-collapse .kt-sidebar-user-info > div:first-child {
    justify-content: center;
    margin-bottom: 0;
}

/* Avatar badge animation */
.kt-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--tw-bg-background);
    border-radius: 50%;
}

/* Button styles */
.user-balance-info .kt-btn-primary {
    background: linear-gradient(to right, #36D1DC 0%, #5B86E5 51%, #36D1DC 100%);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-balance-info .kt-btn-primary:hover {
    background: linear-gradient(to right, #36D1DC 0%, #5B86E5 51%, #36D1DC 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(113, 48, 195, 0.3);
}

/* Balance display */
.user-balance-info .bg-accent\/30 {
    background: rgba(42, 126, 236, 0.1);
    border: 1px solid rgba(113, 48, 195, 0.2);
    backdrop-filter: blur(10px);
}

/* Dark mode adjustments */
.dark .user-balance-info .bg-accent\/30 {
    background: rgba(42, 126, 236, 0.15);
    border: 1px solid rgba(113, 48, 195, 0.3);
}

.dark .kt-btn-primary {
    box-shadow: 0 2px 8px rgba(113, 48, 195, 0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .kt-sidebar-user-info {
        padding: 1rem;
    }
}

/* Mobile sidebar drawer */
@media (max-width: 1023px) {
    .kt-drawer .kt-sidebar-user-info {
        padding: 1rem 1.25rem;
    }

    .kt-drawer .kt-sidebar-user-info .user-info-text,
    .kt-drawer .kt-sidebar-user-info .user-balance-info {
        opacity: 1;
        max-height: none;
        width: auto;
    }
}

/* Smooth transitions for all elements */
.kt-sidebar-user-info * {
    transition: all 0.3s ease;
}

/* Avatar container */
.kt-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kt-avatar-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.kt-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text colors */
.text-warning {
    color: #fbbf24;
}

/* Hover effects */
.kt-sidebar-user-info:hover .kt-avatar-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Icon in button */
.kt-btn i {
    transition: transform 0.3s ease;
}

.kt-btn:hover i {
    transform: scale(1.1);
}

/* Coin icon animation */
.user-balance-info .ki-dollar {
    animation: coinPulse 2s ease-in-out infinite;
}

@keyframes coinPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Growth percentage badge */
.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

/* Balance info hover effect */
.user-balance-info .bg-accent\/30:hover {
    background: rgba(113, 48, 195, 0.15);
    border-color: rgba(113, 48, 195, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.dark .user-balance-info .bg-accent\/30:hover {
    background: rgba(113, 48, 195, 0.2);
    border-color: rgba(113, 48, 195, 0.4);
}

/* Tooltip for collapsed state */
.kt-sidebar-collapse .kt-sidebar-user-info .kt-avatar {
    cursor: pointer;
    position: relative;
}

.kt-sidebar-collapse .kt-sidebar-user-info .kt-avatar:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Smooth font rendering */
.kt-sidebar-user-info {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

