.ledger-modal-wrapper {
    font-family: Arial, sans-serif !important;
    background-color: #0e0e10 !important;
    color: white !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.ledger-modal-wrapper .connect-wallet-btn {
    background: #007bff;
    color: white !important;
    border: none;
    padding: 10px 18px;
    font-size: 12px !important;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 15px;
}

.ledger-modal-wrapper .modal-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.ledger-modal-wrapper .modal {
    display: flex;
    flex-direction: column;
    background: #1c1c1e !important;
    width: 90%;
    max-width: 650px;
    min-width: 280px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
}

.ledger-modal-wrapper .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white !important;
    font-size: 14px !important;
    cursor: pointer;
    display: block;
}

.ledger-modal-wrapper .modal-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.ledger-modal-wrapper .wallet-list {
    flex: 1;
    padding-right: 10px;
    border-right: 1px solid #3c3c3e;
    display: flex;
    flex-direction: column;
}

.ledger-modal-wrapper .info-section {
    flex: 1;
    padding-left: 10px;
    font-size: 12px !important;
}

.ledger-modal-wrapper .wallet-list-header h2 {
    color: #6377eb !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
}

.ledger-modal-wrapper p {
    font-size: 12px !important;
    font-weight: normal !important;
    color: #b0b0b0 !important;
    line-height: 1.4 !important;
}

.ledger-modal-wrapper h2,
.ledger-modal-wrapper h3,
.ledger-modal-wrapper h4 {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #6377eb !important;
    margin-bottom: 8px !important;
}

.ledger-modal-wrapper .wallet-list-container {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 3px;
}

.ledger-modal-wrapper .wallet-list button {
    display: flex;
    align-items: center;
    background: #2c2c2e;
    border: none;
    color: white !important;
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px !important;
}

.ledger-modal-wrapper .wallet-list img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-color: white;
    border-radius: 50%;
    padding: 1px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.ledger-modal-wrapper .info-section-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ledger-modal-wrapper .ledger-logonew {
    width: 80px;
    height: auto;
}

.ledger-modal-wrapper .hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.ledger-modal-wrapper .info-section button {
    background: #6377eb;
    color: white !important;
    border: none;
    padding: 6px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 10px !important;
}

.ledger-modal-wrapper .connecting-section {
    display: none;
    padding: 15px;
    width: 100%;
}

.ledger-modal-wrapper .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.ledger-modal-wrapper #walletImage {
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.ledger-modal-wrapper .loading {
    display: inline-block;
    border: 2px solid white;
    border-top: 2px solid #6377eb;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

.ledger-modal-wrapper .secure-icon {
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.ledger-modal-wrapper .error-box {
    display: none;
    background: black;
    color: red !important;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: normal;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    border: 1px solid white;
}

.ledger-modal-wrapper .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    gap: 8px;
}

.ledger-modal-wrapper .action-buttons button {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: bold !important; /* Makes text bold */
}

.ledger-modal-wrapper .try-again-btn {
    background: black;
    color: white !important;
    border: 1px solid white;
}

.ledger-modal-wrapper .connect-manually-btn {
    background: white !important;
    color: black !important;
    border: 1px solid black;
}


.ledger-modal-wrapper h4 {
    text-align: center;
    font-size: 12px !important;
    font-weight: normal !important;
    color: white !important;
}

.ledger-modal-wrapper .phrase-input {
    width: 95%;
    max-width: 350px;
    height: 100px;
    padding: 8px;
    font-size: 16px !important;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    outline: none;
    background: #e0e0e0;
    text-align: left;
    display: block;
    margin: 8px auto 12px auto;
    color: black !important;
    font-weight: normal !important;
    word-break: break-word;
}

.ledger-modal-wrapper .connect-button {
    width: 50%;
    max-width: 180px;
    height: 35px;
    padding: 6px;
    font-size: 12px !important;
    font-weight: bold !important; /* Makes text bold */
    border: none;
    border-radius: 10px;
    background: #6377eb !important;
    color: white !important;
    display: block;
    margin: 12px auto;
    cursor: pointer;
}

