/* General form styles */
form {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    margin-top: 20px; /* merged old margin-top */
}

/* Apply box-sizing to all form elements (optimized) */
form input,
form button,
form label,
form select,
form textarea {
    box-sizing: border-box; /* Ensures padding and border are included in width */
}

/* Input field styles */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* Button styles for form submission */
form button[type="submit"] {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* Hover effect for submit button */
form button[type="submit"]:hover {
    background-color: #005bb5;
}

/* Styles for general buttons (non-submit buttons) */
button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* Hover effect for general buttons */
button:hover {
    background-color: #45a049;
}

/* Existing user dashboard styles */
.user-dashboard {
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
}

/* Input global style (merged and fixed) */
input {
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box; /* important for consistency */
}

/* Referral code box style */
.referral-code {
    font-size: 18px;
    font-weight: bold;
    color: #1e90ff;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* NEW: Wallet address single line display */
.single-line-wallet {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    vertical-align: middle;
}

