body {
    margin: 0;
    padding: 0;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@font-face {
    font-family: 'PPNeueMontreal-Medium';
    src: url('../fonts/PPNeueMontreal-Medium.woff2') format('woff2'),
         url('../fonts/PPNeueMontreal-Medium.woff') format('woff'),
         url('../fonts/PPNeueMontreal-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'PPNeueMontreal-Book';
    src: url('../fonts/PPNeueMontreal-Book.woff2') format('woff2'),
         url('../fonts/PPNeueMontreal-Book.woff') format('woff'),
         url('../fonts/PPNeueMontreal-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PPNeueMontreal-Bold';
    src: url('../fonts/PPNeueMontreal-Bold.woff2') format('woff2'),
         url('../fonts/PPNeueMontreal-Bold.woff') format('woff'),
         url('../fonts/PPNeueMontreal-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PPNeueMontreal-Thin';
    src: url('../fonts/PPNeueMontreal-Thin.woff2') format('woff2'),
         url('../fonts/PPNeueMontreal-Thin.woff') format('woff'),
         url('../fonts/PPNeueMontreal-Thin.otf') format('opentype');
    font-style: normal;
    font-display: swap;
}

  input::placeholder,
  #tipAmount::placeholder {
    font-family: 'PPNeueMontreal-Book', monospace;  
    color: #38A8A3;
    font-size: 16px;
  }


  .step-label {
    font-family: 'PPNeueMontreal-Book', monospace;
    /* Add any additional styles you want for this text */
    font-size: 16px;
    color: #333;
    margin-bottom: 0px;
    border-radius: 5px 0px 0px 5px;
  }
h1 {
    text-align: center;
    color: #003734;
    font-family: 'PPNeueMontreal-Bold', monospace;  
    font-size: clamp(13px, 5vw, 35px); /* Fluid typography */
    margin: 0;
    padding: 20px 20px 5px; /* Top, left/right, bottom padding */
    background-color: transparent; /* Explicitly set to transparent */
    z-index: 1000; /* Ensure it stays on top of other content */
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 .right-side-image {
    width: clamp(35px, 10vw, 50px); /* Fluid image size */
    height: auto;
    margin-left: 5px;
    vertical-align: middle;
}

/* Add this rule to ensure no other styles are overriding */
img.right-side-image {
    max-width: clamp(35px, 10vw, 50px);
    width: clamp(35px, 10vw, 50px);
}

h2 {
    font-family: 'PPNeueMontreal-Medium', monospace;  
    font-size:115px;
    margin-left: 100px; /* Remove left margin */

    color: 131e20; 

}
p {
    font-family: 'PPNeueMontreal-Medium', monospace;  
    font-size:15px;
    color: #131e20; 
}
.box-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    overflow-x: auto;
    transition: all 0.3s ease-in-out;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    min-height: auto;
}

/* Update direction classes to maintain centering */
.box-wrapper.layer-direction,
.box-wrapper.ethereum-direction,
.box-wrapper.delegate-direction,
.box-wrapper.noStakeReport-direction {
    justify-content: center;
}

.box {
    border: none; /* Remove the existing border */
    margin-left: 0; /* Remove left margin as it's now handled by the wrapper */
    margin-top: 0px;
    margin-right: 0; /* Remove auto margin */
    margin-bottom: 0px;
    padding: 0ex;
    color: #262626;  
    font: 1.3rem 'PPNeueMontreal-Thin', monospace;  
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    gap: 5px; /* Uniform 5px gap */
}

a {
    font-family: 'PPNeueMontreal-Book', monospace;  
    font-size: 15px;
    color: #01A09C;
    margin-top: 5px;
    margin-bottom: 10px;
    align-self: center;
}

.button-style-1 {
    background-color: #003734;
    font-family: 'PPNeueMontreal-Book', monospace;  
    color: #eefffb;
    padding: 7px 50px;
    border: none;
    font-size: 15px;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    width: 300px; /* Make the button span the full width of its container */
    margin-top: 5px; /* Change from 20px to 12px */
    display: block; /* Changed from inline to block */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    transition: background-color 0.3s ease; /* Add smooth transition */
}

.button-style-1:hover {
    background-color: #049159; /* Darker shade for hover effect */
    color: #88FFEC;
}

.button-style-2 {
    background-color: #003734;
    font-family: 'PPNeueMontreal-Book', monospace;  
    color: #eefffb;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Wallet Manager Dropdown Styles */
.wallet-manager-dropdown {
    position: relative;
    display: inline-block;
}

.wallet-manager-toggle {
    background-color: #003734;
    font-family: 'PPNeueMontreal-Book', monospace;
    color: #eefffb;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.wallet-manager-toggle:hover {
    background-color: #049159;
    color: #88FFEC;
}

.wallet-manager-text {
    flex: 1;
}

.wallet-manager-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.wallet-manager-dropdown.open .wallet-manager-arrow {
    transform: rotate(180deg);
}

.wallet-manager-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #d4d8e3;
    border: 3px solid #003734;
    border-radius: 10px;
    padding: 20px;
    min-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.wallet-manager-dropdown.open .wallet-manager-content {
    display: block;
}

/* Add backdrop for mobile dropdown */
.wallet-manager-dropdown.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

@media (max-width: 600px) {
    .wallet-manager-dropdown.open::before {
        display: block;
    }
}

.wallet-section {
    margin-bottom: 20px;
}

.wallet-section:last-child {
    margin-bottom: 0;
}

.wallet-section-title {
    font-family: 'PPNeueMontreal-Bold', monospace;
    font-size: 14px;
    color: #003734;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #003734;
    position: relative;
}

.wallet-manager-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: #003734;
    color: #eefffb;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.wallet-manager-close:hover {
    background-color: #049159;
}

@media (max-width: 600px) {
    .wallet-manager-close {
        display: flex;
    }
}

.wallet-section .wallet-group {
    margin-bottom: 12px;
}

.wallet-section .wallet-group:last-child {
    margin-bottom: 0;
}

.wallet-section .button-style-1,
.wallet-section .button-style-2 {
    width: 100%;
    margin: 0 0 8px 0;
    font-size: 14px;
    padding: 8px 16px;
}

.wallet-section .wallet-balance {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 13px;
    color: #083b44;
    margin: 0;
    text-align: center;
}

.wallet-section .network-group {
    margin-top: 8px;
    padding: 8px;
    background-color: #d4d8e3;

}

.wallet-section .network-display {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.wallet-section .toggle-button {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 11px;
    padding: 4px 8px;
    background-color: #003734;
    color: #eefffb;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wallet-section .toggle-button:hover {
    background-color: #049159;
}

/* Wallet connection container styles */
.wallet-connection-container .button-style-2 {
    width: auto;
    min-width: 140px; /* Increased from 120px */
    max-width: 180px; /* Increased from 160px */
    font-size: 12px; /* Reduced from 16px */
    padding: 8px 6px;
    flex: 1;
    white-space: normal;
    line-height: 1.2;
    height: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.wallet-connection-container .button-style-2 .truncated-address {
    font-size: 11px; /* Reduced from 14px */
    display: block;
    margin-top: 2px;
}

.wallet-connection-container .button-style-2:hover {
    background-color: #049159;
    color: #88FFEC;
}

.wallet-connection-container .button-style-2:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Remove the conflicting media query */
@media (max-width: 400px) {
    .box-wrapper {
        padding: 20px;
        width: 90%;
        max-width: 350px;
        margin-left: -5px;
    }

    .box {
        padding: 10px;
        width: 100%;
        margin-top: 0;
    }

    /* Update wallet button styles for mobile */
    .wallet-connection-container .button-style-2 {
        font-size: 11px; /* Reduced from 15px */
        padding: 6px 4px;
        min-width: 120px; /* Increased from 100px */
    }
    
    .wallet-connection-container .button-style-2 .truncated-address {
        font-size: 10px; /* Reduced from 13px */
    }
}

.button-style-3 {
    background-color: #003734;
    font-family: 'PPNeueMontreal-Book', monospace;  
    color: #eefffb;
    padding: 25px 65px;
    border: none;
    font-size: 20px;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    width: 400px; 
    margin-top: 5px; /* Change from 10px to 12px */
    display: block; /* Changed from inline to block */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    transition: background-color 0.3s ease; /* Add smooth transition */
}

.button-style-3:hover {
    background-color: #049159; /* Darker shade for hover effect */
    color: #88FFEC;
}

.button-style-3:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

.button-style-3:disabled:hover {
    background-color: #cccccc; /* Keep the disabled color on hover */
}

.contest-address-style {
    color: #165863; /* Set the color you prefer */
    font-size: 16px; /* Example: set font size */
    /* Add other styling as needed */
}
.title-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px; /* Adjust this value to control the distance from the top */
    background-color: transparent; /* Add this if you want to ensure visibility over other content */
}

img {
    text-align: center;
    width: auto;
}

h1 img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0;
}

#_queryId {
    font-size: 20px; /* Smaller font size for mobile */
    padding: 10px; /* Larger padding for better touch interaction */
    width: 400px; /* Full width to utilize screen space */
    color: #008D8B; /* Dark gray text color */
    border: 1px solid #7FAFB1; /* Dark gray text color */
    border-radius: 12px /* Dark gray text color */
}
#_queryId:not(:placeholder-shown) {

    color: #008D8B;; /* Dark gray text color */

}
#stakeAmount {
    font-size: 20px; /* Smaller font size for mobile */
    padding: 10px; /* Larger padding for better touch interaction */
    width: 400px; /* Full width to utilize screen space */
    color: #008D8B; /* Dark gray text color */
    border: 1px solid #7FAFB1; /* Dark gray text color */
    border-radius: 0px 12px 12px 0px; /* Dark gray text color */
}

#tipAmount {
    font-size: 20px; /* Smaller font size for mobile */
    padding: 10px; /* Larger padding for better touch interaction */
    width: 400px; /* Full width to utilize screen space */
    color: #008D8B; /* Dark gray text color */
    border: 1px solid #7FAFB1; /* Dark gray text color */
    border-radius: 0px 12px 12px 0px /* Dark gray text color */
}

/* Add this new style for general content alignment */
.content-wrapper {
    max-width: 1200px; /* Or any suitable max-width */
    margin: 0 auto; /* Center the wrapper */
    padding: 0 20px; /* Add some padding */
}

.input-with-label {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px; /* Limit maximum width */
    justify-content: center; /* Center the input and label horizontally */
    margin-bottom: 5px; /* Change from 10px to 12px */
    border-radius: 0px 5px 5px 0px;
}
input {
    background-color: #f0f0f0; /* Light gray background */
    color: #C4EDEB;; /* Dark gray text color */
    border: 1px solid #7FAFB1; /* Light gray border */
    height: 23px;
    border-radius: 5px 5px 5px 5px;
}

input:not(:placeholder-shown) {
    color: black; /* This is the color when the input has text */
}

.centered-input:not(:placeholder-shown) {
    color: black; /* Color when has text */
}

.input-label {
    white-space: nowrap;
    background: #f0f0f0;
    height: 43px;
    color: #191b24;
    border: 1px solid #7FAFB1;; /* Dark gray text color */
    text-align: center;
    padding: 0 10px;
    display: flex;
    align-items: center;
    margin-right: -2px;
    margin-top: 12px; /* Change from 10px to 12px */
    border-radius: 12px 0px 0px 12px;
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 5px;

}

.input-label-2 {
    white-space: nowrap;
    background: #f0f0f0;
    height: 43px;
    color: #131e20;
    border: 1px solid #7FAFB1;; /* Dark gray text color */
    text-align: center;
    padding: 0 10px;
    display: flex;
    align-items: center;
    margin-right: -2px;
    margin-top: 8px;
    border-radius: 12px 0px 0px 12px;
    width: 30px;
    font-family: 'PPNeueMontreal-Book', monospace;
}

.input-address {
    font-size: 20px !important;
    padding: 10px !important;
    width: 100% !important;
    max-width: 400px !important;
    color: #008D8B !important;
    border: 1px solid #7FAFB1 !important;
    border-radius: 12px !important;
    background-color: #f0f0f0 !important;
    height: 45px !important;
    box-sizing: border-box !important;
    margin-top: 12px !important;
    line-height: 1.2 !important;
}

.input-address:not(:placeholder-shown) {
    color: #008D8B !important;
}

/* Style for select dropdowns */
select.input-address {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008D8B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 45px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

select.input-address:disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed;
}

select.input-address option {
    background-color: #eefffb;
    color: #003734;
    padding: 8px;
    white-space: normal;
    word-wrap: break-word;
}

/* Refresh button for validator dropdown */
.refresh-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #008D8B;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    z-index: 3;
}

/* Specific styling for delegate section to ensure proper width */
#delegateSection .input-button-container {
    max-width: 340px;
    padding-right: 35px;
}

#delegateSection .input-address {
    max-width: 340px !important;
}

/* Ensure all sections with info icons have proper spacing */
.input-button-container:has(.info-icon) {
    padding-right: 35px;
}

/* Specific styling for bridge to layer section */
#bridgeToLayerSection .input-button-container:has(.info-icon) {
    max-width: 340px;
}

/* Specific styling for bridge to ethereum section */
#bridgeToEthSection .input-button-container:has(.info-icon) {
    max-width: 340px;
}

/* Fallback for browsers that don't support :has() */
#bridgeToLayerSection .input-button-container,
#bridgeToEthSection .input-button-container,
#delegateSection .input-button-container {
    padding-right: 0px;
    max-width: 340px;
}

.refresh-btn:hover {
    background-color: #e0e0e0;
    color: #003734;
}

.refresh-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.deposit-limit {
    font-size: 12px;
    margin-left: auto; /* Pushes the deposit limit to the right */
    color: #131e20;
}

.step-label {
    position: relative;
    font-family: 'PPNeueMontreal-Book', monospace;  

  }
  .info-icon {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #165863;
    font-size: 16px;
    z-index: 2;
    background-color: #f0f0f0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Hide info icon in Bridge to Ethereum section */
#bridgeToEthSection .info-icon {
    display: none;
}

.tooltip {
    display: none;
    position: fixed;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    z-index: 9999;
    max-width: 250px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* Font styles */
    font-family: 'PPNeueMontreal-Book', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    white-space: normal;
    pointer-events: auto;
}

/* Style for links within tooltips */
.tooltip a {
    color: #165863;
    text-decoration: underline;
    font-weight: bold;
}

.tooltip a:hover {
    text-decoration: none;
    color: #003734;
}

/* Update the JavaScript positioning in the HTML */
@media (max-width: 768px) {
    .tooltip {
        max-width: 280px;
        width: max-content;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: clamp(13px, 6vw, 35px); /* Fluid typography */
    }
    
    select.input-address {
        font-size: 14px !important;
        padding: 8px !important;
        padding-right: 40px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .refresh-btn {
        right: 35px;
        font-size: 14px;
    }
    
    .info-icon {
        right: -25px;
        width: 18px;
        height: 18px;
        font-size: 14px;
    }
    
    #delegateSection .input-button-container {
        max-width: 300px;
        padding-right: 25px;
    }
    
    #delegateSection .input-address {
        max-width: 300px !important;
    }
    
    /* Mobile spacing for all sections with info icons */
    .input-button-container:has(.info-icon) {
        padding-right: 25px;
    }
    
    #bridgeToLayerSection .input-button-container:has(.info-icon) {
        max-width: 300px;
    }
    
    #bridgeToEthSection .input-button-container:has(.info-icon) {
        max-width: 300px;
    }
    
    /* Mobile fallback for browsers that don't support :has() */
    #bridgeToLayerSection .input-button-container,
    #bridgeToEthSection .input-button-container,
    #delegateSection .input-button-container {
        padding-right: 25px;
        max-width: 300px;
    }

    .box-wrapper {
        padding: 20px;
        width: 90%;
        max-width: 350px;
        margin-left: -5px;
    }

    .button-style-2 {
        width: 100%;
        font-size: 20px;
        padding: 10px;
    }

    .box {
        padding: 10px;
        width: 100%;
        margin-top: 0;
    }
}

.main-content {
    flex: 1 1 400px; /* Changed from flex: 0 0 420px to allow shrinking */
    min-width: 300px; /* Minimum width before scrolling */
    max-width: 420px; /* Maximum width */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    min-height: 500px; /* Increased to match container height */
    max-height: 500px; /* Increased to match container height */
    box-sizing: border-box;
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
}

.main-content a {
    padding: 10px 0;
}

/* Remove the transform-based positioning */
.ethereum-direction .main-content {
    transform: none;
}

#connectButton {
    background-color: #08D482;
    font-family: 'PPNeueMontreal-Book', monospace;  
    color: #191B24;
    padding: 6px 8px;
    border: none;
    font-size: 12px;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 90px;
    flex: 1;
    max-width: 140px;
}

#connectButton:hover {
    background-color: #025552;
    color: #88FFEC;
}

#walletAddress {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 10px;
    color: #131e20;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    flex: 1;
    text-align: center;
    padding: 6px 3px;
    background-color: #f0f0f0;
    border: 1px solid #7FAFB1;
    border-radius: 24px;
    line-height: 1.2;
}

input {
    
    width: 50%; /* Full width on mobile */
    max-width: none; /* Remove max-width constraint on mobile */

}

.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

.popup.error {
    background-color: #ff4444;
    color: white;
    border: 1px solid #cc0000;
}

.popup.pending {
    background-color: #ffbb33;
    color: white;
    border: 1px solid #ff8800;
}


.info-text {
    font-family: 'PPNeueMontreal-Bold', Arial, sans-serif;
    font-size: 12px;
    color: #131e20;
    margin: 2px 0;
    text-align: center;
    width: 100%;
}

.info-text span {
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
}

.input-fields {
    margin-bottom: 10px; /* Reduced spacing between input fields */
}

.step-label {
    margin-bottom: 8px; /* Reduced spacing between inputs by half */
}

.connected-address-style {
    color: black;
}

.button-container {
    display: flex;
    justify-content: center;
}

.input-button-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.input-with-label {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.input-label, .input-label-2 {
    font-family: 'PPNeueMontreal-Bold', Arial, sans-serif;

    min-width: 40px;
    margin-right: 0;
    margin-top: 12px;
    display: inline-block;
    text-align: center;
    font-size: 14px; /* Changed from inherit to explicit size */
    line-height: 1;
    height: 43px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: #f0f0f0;
    border: 1px solid #7FAFB1;
}

.input {
    margin-top: 12px;
    line-height: 1;
    padding: 10px;
    height: 43px;
    box-sizing: border-box;
    background-color: #f0f0f0;
    border: 1px solid #7FAFB1;
    width: 100%;
    border-radius: 0px 12px 12px 0px;
}

.balance-error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 50px;
    background-color: #ffeded;
    color: #cc0000;
    border-radius: 10px;
    z-index: 1000;
    border: 3px solid #cc0000;
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
    font-size: 15px;
    width: 250px;
    text-align: center;
}

.disclaimer {
    text-align: center;
    color: #003734;
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: clamp(10px, 3vw, 16px);
    margin: 0;
    padding: 0 20px 1px;
    background-color: transparent;
    z-index: 1000;
}

.frontend-code-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 14px;
    color: #01A09C;
    text-decoration: none;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.frontend-code-link:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #003734;
}

.truncated-address {
    font-family: 'PPNeueMontreal-Thin', Arial, sans-serif;
    font-size: 14px;
}

.bridge-direction {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  width: 100%;
  max-width: 300px;
}

.bridge-direction button {
  width: 300px;
  padding: 10px 20px;
  border: none;
  border-radius: 24px;
  font-family: 'PPNeueMontreal-Book', monospace;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0 auto;
}

#approveButton {
  background-color: #003734;
  color: #eefffb;
}

#approveButton:hover {
  background-color: #049159;
  color: #88FFEC;
}

#approveButton:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

#depositButton, #withdrawButton {
  background-color: #003734;
  color: #eefffb;
}

#depositButton:hover, #withdrawButton:hover {
  background-color: #049159;
  color: #88FFEC;
}

#depositButton:disabled, #withdrawButton:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

.withdrawal-history-container {
    margin-top: 0;
    padding: 1rem;
    background: #EFFEFC;
    border: 2px solid #7FAFB1;
    border-radius: 24px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.withdrawal-history-container h3 {
    font-family: 'PPNeueMontreal-Medium', monospace;
    color: #003734;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    display: block !important; /* Ensure visibility */
}

.withdrawal-table-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #083b44 #C4EDEB;
    height: calc(100% - 60px); /* Subtract header height */
    max-height: 300px; /* Limit maximum height to prevent overflow */
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar styling */
.withdrawal-table-container::-webkit-scrollbar {
    width: 8px;
    display: block;
}

.withdrawal-table-container::-webkit-scrollbar-track {
    background: #C4EDEB;
    border-radius: 4px;
}

.withdrawal-table-container::-webkit-scrollbar-thumb {
    background-color: #083b44;
    border-radius: 4px;
    border: 2px solid #C4EDEB;
}

.withdrawal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

/* Set column widths */
.withdrawal-table th:nth-child(1), /* Actions */
.withdrawal-table td:nth-child(1) {
    width: 120px;
    white-space: normal;
}

.withdrawal-table th:nth-child(2), /* ID */
.withdrawal-table td:nth-child(2) {
    width: 60px;
}

.withdrawal-table th:nth-child(3), /* Sender */
.withdrawal-table td:nth-child(3),
.withdrawal-table th:nth-child(4), /* Recipient */
.withdrawal-table td:nth-child(4) {
    width: 160px;
}

.withdrawal-table th:nth-child(5), /* Amount */
.withdrawal-table td:nth-child(5) {
    width: 100px;
}

.withdrawal-table th:nth-child(6), /* Time */
.withdrawal-table td:nth-child(6) {
    width: 160px;
}

.withdrawal-table th:nth-child(7), /* Status */
.withdrawal-table td:nth-child(7) {
    width: 80px;
}

/* Style for action buttons */
.attest-button, .claim-button {
    background-color: #003734;
    color: #eefffb;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
    margin: 2px;
    white-space: normal;
    display: inline-block;
    width: 100px;
    min-height: 40px;
    line-height: 1.2;
    text-align: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.attest-button span, .claim-button span {
    display: block;
}

.attest-button:hover, .claim-button:hover {
    background-color: #049159;
    color: #88FFEC;
}

.attest-button:disabled, .claim-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Update mobile styles for action buttons */
@media (max-width: 1024px) {
    .withdrawal-table th:nth-child(1),
    .withdrawal-table td:nth-child(1) {
        width: 100px;
    }

    .attest-button, .claim-button {
        width: 90px;
        font-size: 11px;
        padding: 3px 6px;
    }
}

.no-withdrawals {
    text-align: center;
    padding: 2rem;
    color: #003734;
    display: block !important; /* Ensure visibility */
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #ff0000;
    display: block !important; /* Ensure visibility */
}

@media (max-width: 800px) {
    .box-wrapper {
        flex-direction: column;
        align-items: center;
        overflow: visible;
        padding: 20px 10px;
        min-height: auto;
    }

    .main-content {
        width: 100%;
        max-width: 400px;
    }

    .transactions-container {
        width: 100%;
        max-width: 800px; /* Increased from 600px to match new width */
        min-width: unset;
        height: auto;
        min-height: 500px;
        margin-top: 20px;
        position: relative;
    }

    .transactions-container:not(.active) {
        display: none;
    }

    .withdrawal-table {
        min-width: 800px; /* Increased from 600px to match new width */
    }
}

/* Update small screen styles */
@media (max-width: 600px) {
    .box-wrapper {
        padding: 10px;
    }

    .main-content {
        max-width: 100%;
    }

    .transactions-container {
        max-width: 100%;
    }

    .withdrawal-table {
        min-width: 100%;
    }
}

/* Extra small screen optimization for 4 tabs */
@media (max-width: 480px) {
    .bridge-direction-btn {
        font-size: 14px; /* Even smaller font for very small screens */
        padding: 8px 12px; /* Reduced padding for very small screens */
    }
    
    .bridge-buttons-container {
        height: 520px; /* Slightly taller on very small screens */
    }
    
    .main-content {
        min-height: 520px;
        max-height: 520px;
    }
}

/* No-Stake Reporting Input Styling */
/* No-Stake Reporting Input Styling */
.no-stake-input {
    width: 100% !important; /* Full width */
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif !important; /* Keep same font */
    font-size: 12px !important; /* Smaller font size */
    padding: 12px !important; /* Consistent padding */
    box-sizing: border-box !important; /* Include padding in width calculation */
    margin: 0 !important; /* Remove any default margins */
    border: 1px solid #ccc !important; /* Custom border */
    border-radius: 8px !important; /* Custom border radius for no-stake inputs */
    background-color: #fff !important; /* White background */
}

#noStakeQueryData {
    height: auto !important; /* Auto height based on rows */
    min-height: 200px !important; /* Minimum height for 10 rows */
    line-height: 1.4 !important; /* Better line height for readability */
    resize: vertical !important; /* Allow vertical resizing */
    white-space: pre-wrap !important; /* Preserve line breaks and spaces */
    word-wrap: break-word !important; /* Break long lines */
    overflow-wrap: break-word !important; /* Modern word wrapping */
}

/* Align the label container with the textarea */
.no-stake-query-container .input-label,
.no-stake-value-container .input-label {
    width: 100% !important; /* Full width to match textarea */
    text-align: left !important; /* Left align the text */
    display: block !important; /* Block display for full width */
    margin-bottom: 0 !important; /* No space - label and input as one container */
    font-weight: bold !important; /* Make label more prominent */
    order: -1 !important; /* Ensure label appears first (above) */
    border-radius: 0 !important; /* Remove the 12px 0px 0px 12px border radius */
    background: none !important; /* Remove background */
    border: none !important; /* Remove border */
    margin: 0 !important; /* Remove all margins */
    padding: 0 !important; /* Remove padding */
    height: auto !important; /* Auto height */
    color: #131e20 !important; /* Keep text color */
}

/* Make the query data container full width and vertical layout */
.no-stake-query-container,
.no-stake-value-container {
    width: 100% !important; /* Full width */
    max-width: none !important; /* Override any max-width constraints */
    display: flex !important; /* Use flexbox */
    flex-direction: column !important; /* Stack elements vertically */
    align-items: flex-start !important; /* Align items to the left */
}

/* Ensure the textarea takes full width */
.no-stake-query-container textarea {
    width: 100% !important; /* Full width */
    max-width: none !important; /* Override max-width */
    box-sizing: border-box !important; /* Include padding in width */
}

/* Full-width container styling */
.input-button-container.full-width {
    width: 100% !important; /* Full width */
    max-width: none !important; /* Override max-width constraints */
    margin: 0 !important; /* Remove margins */
}

#noStakeValue {
    font-size: 12px !important; /* Smaller font for value field too */
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif !important; /* Keep same font */
}

/* Bridge Direction Selector Styles */
.bridge-direction-selector {
    display: flex;
    justify-content: stretch; /* Changed from flex-start to stretch */
    gap: 0;
    margin: -20px -20px 10px -20px;
    border-bottom: 3px solid black;
    background-color: #C4EDEB;
    border-radius: 10px 10px 0 0;
    padding: 0;
    position: relative;
    width: calc(100% + 40px); /* Ensure full width accounting for container padding */
}

.bridge-direction-btn {
    flex: 1; /* Make each button take equal space */
    padding: 10px 16px; /* Reduced padding to fit 4 tabs */
    border: none;
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
    font-size: 16px; /* Reduced font size to fit 4 tabs */
    cursor: pointer;
    background-color: #E0E0E0; /* Greyed out background for unselected */
    color: #666666; /* Muted text color for unselected */
    transition: all 0.3s ease;
    border-right: 1px solid #7FAFB1;
    position: relative;
    border-radius: 0;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis for long text */
}

.bridge-direction-btn:first-child {
    border-top-left-radius: 7px;
}

.bridge-direction-btn:last-child {
    border-right: none; /* Remove right border from last tab */
}

.bridge-direction-btn.active {
    background-color: #003734; /* Darker, more prominent background for active */
    color: #eefffb; /* Light text for contrast */
    border-bottom: 3px solid #003734;
    font-weight: bold;
}

.bridge-direction-btn:hover:not(.active) {
    background-color: #CCCCCC; /* Slightly lighter on hover for unselected */
    color: #333333; /* Darker text on hover */
}

/* Update bridge-buttons-container to accommodate tabs */
.bridge-buttons-container {
    background-color: #C4EDEB;
    border: 3px solid black;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 500px; /* Increased height to accommodate 4th tab */
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Add styles for the link container */
.bridge-buttons-container a {
    margin-top: auto;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #7FAFB1;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #EFFEFC;
}

/* Add 4px gap between connect MetaMask button and current balance in Bridge to Layer section */
#bridgeToLayerSection #walletButton + .balance-info {
    margin-top: 4px;
}

/* Update bridge section to account for link */
.bridge-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 0;
    flex: 1;
    overflow-y: visible;
}

.bridge-section.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Wallet Connection Container */
.wallet-connection-container {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

.wallet-disclaimer {
    text-align: center;
    color: #083b44;
    font-size: 14px;
    margin: 0 auto 12px auto;
    font-style: italic;
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.wallet-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #7FAFB1;
}

.wallet-button-group .button-style-2 {
    width: auto;
    min-width: 140px; /* Increased from 120px */
    max-width: 180px; /* Increased from 160px */
    font-size: 12px; /* Reduced from 16px */
    padding: 8px 6px;
    white-space: normal;
    line-height: 1.2;
    height: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.wallet-button-group .info-text {
    font-size: 12px;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 160px;
    font-weight: bold;
    color: #003734;
}

.wallet-button-group .truncated-address {
    font-size: 11px; /* Reduced from 14px */
    display: block;
    margin-top: 2px;
}

/* Remove the old balance-info styles that we're replacing */
.balance-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 0px;
}

.balance-info .info-text {
    margin: 0;
}

@media (max-width: 400px) {
    .wallet-button-group .button-style-2 {
        font-size: 11px; /* Reduced from 15px */
        padding: 6px 4px;
        min-width: 120px; /* Increased from 100px */
    }
    
    .wallet-button-group .info-text {
        font-size: 10px; /* Reduced from 13px */
    }
    
    .wallet-button-group .truncated-address {
        font-size: 10px; /* Reduced from 13px */
    }
}

/* Update existing styles */
.transactions-container {
    flex: 1 1 800px; /* Changed from flex: 0 0 900px to allow shrinking */
    min-width: 600px; /* Minimum width before scrolling */
    max-width: 900px; /* Maximum width */
    background-color: #C4EDEB;
    border: 3px solid black;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
    min-height: 450px;
    max-height: 600px;
    position: relative;
    margin: 0;
    box-sizing: border-box;
}

.transactions-container:not(.active) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.history-header {
    flex: 0 0 auto;
    height: 20px; /* Fixed height for header */
}

.history-header h3 {
    font-family: 'PPNeueMontreal-Medium', monospace;
    color: #003734;
    margin: 0 0 0.5rem 0;
}

.history-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-family: 'PPNeueMontreal-Book', Arial, sans-serif;
}

/* Update media queries to maintain centering */
@media (max-width: 1024px) {
    .box-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px;
        overflow-x: hidden;
    }

    .main-content,
    .transactions-container,
    .bridge-buttons-container {
        width: 100%;
        max-width: 100%;
        flex: none;
        min-width: 0;
    }

    .bridge-buttons-container {
        height: 450px; /* Maintain fixed height */
    }

    .transactions-container {
        min-height: 500px;
    }

    .withdrawal-table-container {
        min-height: 200px;
    }

    .transactions-container:not(.active) {
        transform: translateX(100%);
        right: -100%;
        width: 100%;
    }

    .transactions-container {
        width: 100%;
        flex: 0 0 auto;
    }

    .box-wrapper {
        flex-direction: column;
        align-items: center;
        overflow: visible;
    }
}

/* Update media queries for responsive design */
@media (max-width: 1400px) {
    .box-wrapper {
        max-width: 100%;
        padding: 20px 10px;
        gap: 20px;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #083b44 #C4EDEB;
    }

    /* Custom scrollbar for Webkit browsers */
    .box-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .box-wrapper::-webkit-scrollbar-track {
        background: #C4EDEB;
        border-radius: 4px;
    }

    .box-wrapper::-webkit-scrollbar-thumb {
        background-color: #083b44;
        border-radius: 4px;
        border: 2px solid #C4EDEB;
    }

    .main-content {
        flex: 1 1 380px; /* Slightly smaller on medium screens */
        min-width: 280px;
        max-width: 400px;
    }

    .transactions-container {
        flex: 1 1 700px; /* Slightly smaller on medium screens */
        min-width: 500px;
        max-width: 800px;
    }

    .bridge-buttons-container {
        max-width: 100%;
        width: 100%;
    }
}

/* Update media queries for responsive height */
@media (max-width: 1024px) {
    .transactions-container {
        min-height: 500px; /* Adjusted for mobile */
    }

    .withdrawal-table-container {
        min-height: 400px; /* Adjusted for mobile */
    }
}

@media (max-width: 800px) {
    .transactions-container {
        min-width: 0;
        width: 100%;
        margin: 10px 0;
    }

    .withdrawal-table-container {
        overflow-x: auto; /* Ensure horizontal scrolling is available */
    }
}

@media (max-width: 400px) {
    #connectButton {
        font-size: 11px;
        padding: 5px 6px;
        min-width: 80px;
    }

    #walletAddress {
        font-size: 9px;
        padding: 5px 2px;
    }
    
    .frontend-code-link {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Ethereum Wallet Modal Styles */
.wallet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.wallet-modal {
    background: linear-gradient(135deg, #003734 0%, #049159 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #38A8A3;
}

.wallet-modal-header {
    background: rgba(56, 168, 163, 0.1);
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(56, 168, 163, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-modal-header h3 {
    font-family: 'PPNeueMontreal-Bold', monospace;
    color: #eefffb;
    margin: 0;
    font-size: 20px;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #38A8A3;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wallet-modal-close:hover {
    background-color: rgba(56, 168, 163, 0.2);
    color: #eefffb;
}

.wallet-modal-content {
    padding: 20px 25px;
}

.wallet-modal-description {
    font-family: 'PPNeueMontreal-Book', monospace;
    color: #eefffb;
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.4;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.wallet-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(56, 168, 163, 0.1);
    border: 1px solid rgba(56, 168, 163, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wallet-item:hover {
    background: rgba(56, 168, 163, 0.2);
    border-color: #38A8A3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 168, 163, 0.2);
}

.wallet-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wallet-item.disabled:hover {
    transform: none;
    box-shadow: none;
}

.wallet-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.wallet-info {
    flex: 1;
}

.wallet-name {
    font-family: 'PPNeueMontreal-Bold', monospace;
    color: #eefffb;
    font-size: 16px;
    margin-bottom: 4px;
}

.wallet-description {
    font-family: 'PPNeueMontreal-Book', monospace;
    color: rgba(238, 255, 251, 0.8);
    font-size: 12px;
    line-height: 1.3;
}

.wallet-arrow {
    color: #38A8A3;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.wallet-item:hover .wallet-arrow {
    transform: translateX(3px);
}

.wallet-modal-footer {
    border-top: 1px solid rgba(56, 168, 163, 0.3);
    padding-top: 15px;
    text-align: center;
}

.wallet-modal-note {
    font-family: 'PPNeueMontreal-Book', monospace;
    color: rgba(238, 255, 251, 0.7);
    font-size: 12px;
    margin: 0;
}

.wallet-modal-note a {
    color: #38A8A3;
    text-decoration: none;
    font-weight: bold;
}

.wallet-modal-note a:hover {
    color: #eefffb;
    text-decoration: underline;
}

.wallet-error {
    text-align: center;
    padding: 20px;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.error-message {
    font-family: 'PPNeueMontreal-Book', monospace;
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 14px;
}

.error-retry {
    background: #38A8A3;
    color: #003734;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'PPNeueMontreal-Bold', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-retry:hover {
    background: #eefffb;
    transform: translateY(-1px);
}

/* Mobile responsive styles for wallet modal */
@media (max-width: 480px) {
    .wallet-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .wallet-modal-header {
        padding: 15px 20px 10px;
    }
    
    .wallet-modal-header h3 {
        font-size: 18px;
    }
    
    .wallet-modal-content {
        padding: 15px 20px;
    }
    
    .wallet-item {
        padding: 12px;
    }
    
    .wallet-icon {
        font-size: 20px;
        margin-right: 12px;
        width: 25px;
    }
    
    .wallet-name {
        font-size: 14px;
    }
    
    .wallet-description {
        font-size: 11px;
    }
}

/* Header Layout */
header {
    position: relative;
    width: 100%;
}

.header-content {
    position: relative;
    width: 100%;
}

/* Top Right Wallet Connection Styles */
.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.wallet-connection-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-width: 220px;
}

.wallet-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.wallet-balance {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 11px;
    color: #003734;
    margin: 0;
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #7FAFB1;
    min-width: 120px;
}

.network-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin: 4px 0;
}

.wallet-connection-top .button-style-1,
.wallet-connection-top .button-style-2,
.wallet-connection-top .button-style-3 {
    width: 100%;
    min-width: 180px;
    max-width: 220px;
    font-size: 12px;
    padding: 8px 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.wallet-connection-top .button-style-1 {
    background-color: #003734;
    color: #eefffb;
}

.wallet-connection-top .button-style-1:hover {
    background-color: #049159;
    color: #88FFEC;
}

.wallet-connection-top .button-style-2 {
    background-color: #003734;
    color: #eefffb;
}

.wallet-connection-top .button-style-2:hover {
    background-color: #049159;
    color: #88FFEC;
}

.wallet-connection-top .button-style-3 {
    background-color: #003734;
    color: #eefffb;
}

.wallet-connection-top .button-style-3:hover {
    background-color: #049159;
    color: #88FFEC;
}

.wallet-connection-top .button-style-1:disabled,
.wallet-connection-top .button-style-2:disabled,
.wallet-connection-top .button-style-3:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Network Display and Toggle Styles */

.network-group .network-display {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 11px;
    color: #003734;
    margin: 0;
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #7FAFB1;
    min-width: 120px;
}

.network-group .toggle-button {
    font-family: 'PPNeueMontreal-Book', monospace;
    font-size: 11px;
    color: #003734;
    margin: 0;
    text-align: center;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #7FAFB1;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Start hidden by default */
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Network state colors */
.network-group .toggle-button.sepolia {
    background: rgba(255, 193, 7, 0.9);
    border-color: #FFC107;
    color: #856404;
}

.network-group .toggle-button.mainnet {
    background: rgba(40, 167, 69, 0.9);
    border-color: #28A745;
    color: #155724;
}

.network-display {
    font-family: 'PPNeueMontreal-Medium', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #003734;
    white-space: nowrap;
}

.toggle-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #38A8A3 0%, #2C8A85 100%);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-family: 'PPNeueMontreal-Medium', monospace;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-button:hover {
    background: linear-gradient(135deg, #2C8A85 0%, #1F6B67 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.toggle-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.toggle-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.toggle-button:hover .toggle-icon {
    transform: rotate(180deg);
}

.toggle-button:disabled .toggle-icon {
    transform: none;
}

/* Network-specific colors */
.toggle-button[data-network="sepolia"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toggle-button[data-network="sepolia"]:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.toggle-button[data-network="mainnet"] {
    background: linear-gradient(135deg, #05C7BE 0%, #068987 100%);
}

.toggle-button[data-network="mainnet"]:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

@media (max-width: 600px) {
    .top-right {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .wallet-manager-dropdown {
        width: 100%;
        max-width: 300px;
    }
    
    .wallet-manager-toggle {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .wallet-manager-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        width: 90%;
        max-width: 320px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .wallet-section .button-style-1,
    .wallet-section .button-style-2 {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .wallet-section-title {
        font-size: 12px;
    }
    
    .wallet-section .wallet-balance {
        font-size: 11px;
    }
    
    .wallet-section .network-display {
        font-size: 10px;
    }
    
    .wallet-section .toggle-button {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .wallet-connection-top {
        min-width: 160px;
        padding: 8px;
        gap: 8px;
    }
    
    .wallet-group {
        gap: 3px;
    }
    
    .wallet-balance {
        font-size: 10px;
        padding: 1px 4px;
        min-width: 100px;
    }
    
    .network-group {
        gap: 3px;
        margin: 3px 0;
    }
    
    .network-group .network-display {
        font-size: 10px;
        padding: 1px 4px;
        min-width: 100px;
    }
    
    .network-group .toggle-button {
        padding: 1px 4px;
        font-size: 10px;
        gap: 3px;
        min-width: 100px;
    }
    
    .wallet-connection-top .button-style-1,
    .wallet-connection-top .button-style-2,
    .wallet-connection-top .button-style-3 {
        min-width: 140px;
        max-width: 180px;
        font-size: 11px;
        padding: 6px 8px;
        min-height: 32px;
    }
    

}

@media (max-width: 480px) {
    .top-right {
        top: 5px;
        right: 5px;
        gap: 6px;
    }
    
    .wallet-connection-top {
        min-width: 140px;
        padding: 6px;
        gap: 6px;
    }
    
    .wallet-group {
        gap: 2px;
    }
    
    .wallet-balance {
        font-size: 9px;
        padding: 1px 3px;
        min-width: 90px;
    }
    
    .network-group {
        gap: 2px;
        margin: 2px 0;
    }
    
    .network-group .network-display {
        font-size: 9px;
        padding: 1px 3px;
        min-width: 80px;
    }
    
    .network-group .toggle-button {
        padding: 1px 3px;
        font-size: 9px;
        gap: 2px;
        min-width: 80px;
    }
    
    .wallet-connection-top .button-style-1,
    .wallet-connection-top .button-style-2,
    .wallet-connection-top .button-style-3 {
        min-width: 120px;
        max-width: 160px;
        font-size: 10px;
        padding: 4px 6px;
        min-height: 28px;
    }
    

}
