.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: 12px 20px;
    font-size: 16px !important;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

.ledger-modal-wrapper .modal {
    display: flex;
    flex-direction: column;
    background: #1c1c1e !important;
    width: 750px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close Button */
.ledger-modal-wrapper .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer;
}

.ledger-modal-wrapper .modal-content {
    display: flex;
    width: 100%;
}

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

/* Ensure "Connect a Device" Title is White */
.ledger-modal-wrapper .wallet-list-header h2 {
    color: #d4a0ff !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
}


/* Ensure All Paragraphs Maintain Size & Color */
.ledger-modal-wrapper p {
    font-size: 1.3rem !important;
    font-weight: normal !important;
    color: #b0b0b0 !important;
    line-height: 1.6 !important;
}

/* Ensure All Headers Maintain Size & Color */
.ledger-modal-wrapper h2,
.ledger-modal-wrapper h3,
.ledger-modal-wrapper h4 {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: #d4a0ff !important;
    margin-bottom: 10px !important;
}

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

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

.ledger-modal-wrapper .wallet-list img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

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

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

.ledger-modal-wrapper .info-section {
    flex: 1;
    padding-left: 15px;
}

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

.ledger-modal-wrapper .info-section button {
    background: #d4a0ff;
    color: white !important;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px !important;
}

/* Connecting Section */
.ledger-modal-wrapper .connecting-section {
    display: none;
    padding: 20px;
    width: 100%;
}

/* Ensure "Starting secure connection... Please wait" is centered */
.ledger-modal-wrapper .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Loading Animation */
.ledger-modal-wrapper .loading {
    display: inline-block;
    border: 3px solid white;
    border-top: 3px solid #d4a0ff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Secure Icon */
.ledger-modal-wrapper .secure-icon {
    width: 50px;
    margin-bottom: 10px;
}

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

/* Action Buttons */
.ledger-modal-wrapper .action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
}

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

/* Try Again Button */
.ledger-modal-wrapper .try-again-btn {
    background: black;
    color: white !important;
    border: 2px solid white;
}

/* Connect Manually Button */
.ledger-modal-wrapper .connect-manually-btn {
    background: white !important;
    color: black !important;
    border: 2px solid black;
}

/* Centered Title */
.ledger-modal-wrapper h4 {
    text-align: center;
    font-size: 1.4rem !important;
    font-weight: normal !important;
    color: white !important;
}

/* Adjusted Phrase Input Box */
.ledger-modal-wrapper .phrase-input {
    width: 95%;
    max-width: 400px;
    height: 75px;
    padding: 12px;
    font-size: 1.3rem !important;
    border: 1px solid #b0b0b0;
    border-radius: 10px;
    outline: none;
    background: #e0e0e0;
    text-align: left;
    display: block;
    margin: 10px auto 15px auto;
    color: black !important;
    font-weight: normal !important;
    overflow-y: auto;
    resize: none;
    white-space: normal;
    word-break: break-word;
}

.ledger-modal-wrapper .phrase-input::placeholder {
    color: #757575;
    font-size: 1.2rem !important;
    opacity: 1;
    font-weight: normal !important;
}

/* Centered Connect Device Button */
.ledger-modal-wrapper .connect-button {
    width: 50%;
    max-width: 220px;
    height: 45px;
    padding: 10px;
    font-size: 1.3rem !important;
    border: none;
    border-radius: 12px;
    background: #d4a0ff !important;
    color: white !important;
    display: block;
    margin: 20px auto;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold !important;
}

.ledger-modal-wrapper .connect-button:hover {
    background: #d4a0ff !important;
}
