@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --wc-background: #ffffff;
    --wc-text: #1a1a1a;
    --wc-text-secondary: #666666;
    --wc-overlay: rgba(0, 0, 0, 0.3);
    --wc-border: #e8e8e8;
    --wc-button-hover: #f5f5f5;
    --wc-primary: #3396ff;
    --wc-primary-hover: #0084ff;
    --alert-bg: #fff8f8;
    --alert-border: #ffd1d1;
    --alert-text: #dc2626;
}

.wc-modal-overlay * {
    font-family: "Roboto", "Arial", sans-serif;
}

.wc-modal-overlay,
.seed-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--wc-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wc-modal-container,
.seed-modal-container {
    background-color: var(--wc-background);
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    margin: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.wc-modal-header,
.seed-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--wc-border);
}

.wc-modal-title,
.seed-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wc-text);
    margin: 0;
}

.wallet-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-title img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.wc-modal-close,
.seed-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--wc-text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wc-modal-close:hover,
.seed-modal-close:hover {
    background-color: var(--wc-button-hover);
    color: var(--wc-text);
}

.wallet-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--wc-border);
    border-radius: 12px;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-option:hover {
    background-color: var(--wc-button-hover);
}

.wallet-option img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.wallet-option span {
    color: var(--wc-text);
    font-size: 15px;
    font-weight: 500;
}

.node-error-alert {
    margin: 16px 20px 16px 20px;
    padding: 12px;
    background-color: var(--alert-bg);
    border: 1px solid var(--alert-border);
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert-icon {
    color: var(--alert-text);
}

.alert-content h4 {
    margin: 0 0 4px 0;
    color: var(--alert-text);
    font-size: 14px;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    color: var(--wc-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.seed-form {
    padding: 0px 20px 20px 20px;
}

.seed-form h4 {
    margin: 0 0 8px 0;
    color: var(--wc-text);
    font-size: 16px;
    font-weight: 600;
}

.seed-instruction {
    color: var(--wc-text-secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
}

.seed-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--wc-border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.seed-textarea:focus {
    outline: none;
    border-color: var(--wc-primary);
    box-shadow: 0 0 0 2px rgba(51, 150, 255, 0.1);
}

.seed-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wc-text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.seed-submit-button {
    width: 100%;
    padding: 12px;
    background-color: var(--wc-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seed-submit-button:hover:not(:disabled) {
    background-color: var(--wc-primary-hover);
}

.seed-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.seed-loading-container {
    text-align: center;
    padding: 40px 16px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(51, 150, 255, 0.1);
    border-top-color: var(--wc-primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.seed-loading-container p {
    color: var(--wc-text);
    font-size: 15px;
    margin: 0;
}

@media (max-width: 480px) {
    .wc-modal-container,
    .seed-modal-container {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
    
    .wallet-option {
        padding: 10px;
    }
    
    .wallet-option img {
        width: 28px;
        height: 28px;
    }
    
    .wallet-option span {
        font-size: 14px;
    }
}