/* WalletKit Modal */
.wk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.wk-modal-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 25px;
    border-radius: 10px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0px 0px 17px 1px #900000;
    color: #fff;
}

/* Wallet List */
.wk-wallet-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 0 -10px;
}

.wk-wallet-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 5px 10px;
    border-radius: 8px;
    background: rgba(200, 0, 0, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.wk-wallet-item:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

.wk-wallet-item img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    border-radius: 6px;
}

.wk-wallet-item div {
    flex: 1;
}

.wk-wallet-item span {
    display: block;
    font-size: 16px;
    color: #fff;
}

/* Connect Button */
#wk-connect {
    margin-right: 10px;
}

.wk-btn-header {
    display: inline-flex;
    align-items: center;
    color: #fff;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #DC3545;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wk-btn-header:hover {
    color: #fff;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Chain Dropdown */
.wk-dropdown {
    position: relative;
    display: inline-block;
}

.wk-dropdown-menu,
#wk-dd-chains.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #DC3545;
    box-shadow: 0px 0px 17px 1px #900000;
    padding: 8px 0;
    margin-top: 5px;
    min-width: 175px;
    z-index: 1000;
}

.wk-dropdown-menu .dropdown-item,
#wk-dd-chains .dropdown-item {
    color: #fff !important;
    padding: 8px 15px;
}

.wk-dropdown-menu .dropdown-item:hover,
#wk-dd-chains .dropdown-item:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #fff !important;
}

/* Scrollbar Styling */
.wk-wallet-list::-webkit-scrollbar {
    width: 6px;
}

.wk-wallet-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.wk-wallet-list::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.5);
    border-radius: 3px;
}

.wk-wallet-list::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 53, 69, 0.7);
}

/* Connected State */
.wk-connected {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animations */
@keyframes wk-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wk-modal {
    animation: wk-fade-in 0.2s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .wk-modal-content {
        width: 90%;
        margin: 20px;
        min-width: unset;
    }

    .wk-wallet-item {
        padding: 10px;
    }

    .wk-wallet-item span {
        font-size: 14px;
    }
}

/* Update button styles to ensure white text */
.wk-btn-header,
.btn-outline-danger.btn-header {
    color: #fff !important;
}

.wk-btn-header span,
.btn-outline-danger.btn-header span {
    color: #fff !important;
}

/* Ensure SVG icons are white */
.wk-btn-header svg,
.btn-outline-danger.btn-header svg {
    color: #fff !important;
    stroke: currentColor;
}

/* Ensure dropdown items are white */
.wk-dropdown-menu .wk-dropdown-item,
#wk-dd-chains .dropdown-item {
    color: #fff !important;
}

/* Keep text white on hover */
.wk-btn-header:hover,
.btn-outline-danger.btn-header:hover,
.wk-dropdown-menu .wk-dropdown-item:hover,
#wk-dd-chains .dropdown-item:hover {
    color: #fff !important;
}

/* Account List Styling */
.wk-account-list {
    margin: 0 -10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.wk-account-list::-webkit-scrollbar {
    width: 6px;
}

.wk-account-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.wk-account-list::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.5);
    border-radius: 3px;
}

.wk-account-list::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 53, 69, 0.7);
}

@media (max-height: 700px) {
    .wk-account-list {
        max-height: 200px;
    }
}

@media (max-height: 500px) {
    .wk-account-list {
        max-height: 150px;
    }
}

#wk-btn-manage-accounts {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    color: #fff;
    border: 1px solid #DC3545;
}

#wk-btn-manage-accounts:hover {
    background-color: rgba(220, 53, 69, 0.1);
} 