body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(45deg, #f3ec78, #af4261);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 700px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2em;
}

input {
    padding: 10px;
    width: calc(100% - 22px);
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

/* button:hover {
    background-color: #00b333;
    transform: scale(1.05);
} */

#resultTable {
    width: 100%;
    border-collapse: collapse;
}

#resultTable th, #resultTable td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

#resultTable th {
    background-color: #f2f2f2;
    color: #333;
}

#resultTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#resultTable tr:hover {
    background-color: #f1f1f1;
}

#currentToken {
    margin-top: 20px;
    font-weight: bold;
    color: #555;
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    from { background-color: yellow; }
    to { background-color: transparent; }
}

.popup-dialog {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-dialog {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    position: relative;
    /* Remove movement styles for static position */
    transform: none;
    left: 0;
    top: 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.close:hover {
    color: red;
}



.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #007bff;
    padding: 10px;
    margin: 5px;
}

.icon-button:hover {
    color: #f50b0b;
}
#generateTokens {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #0dc952;
    padding: 10px;
    margin: 5px;
}
#pauseTesting {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ea7304;
    padding: 10px;
    margin: 5px;
}


body {
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
    background-color: #f4f4f4;
}

input, button {
    font-size: 16px;
    padding: 10px;
    margin: 5px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.popup {
    display: none; 
    position: fixed; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.user-info {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.user-info i {
    margin-left: 10px;
    cursor: pointer;
    color: #007bff;
}

.icon-check,
.icon-x {
    font-size: 100px;
    position: absolute;
    bottom: 50px;
    right: 50px;
    transform: translateY(-50%);
}

.icon-check {
    color: green;
}

.icon-x {
    color: red;
}
/* تحسين النصوص الخاصة بالحالة الحالية والرسائل */
#statusMessage {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

#currentToken {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    margin: 10px 0;
    padding: 10px;
    background-color: #e7f0ff;
    border: 1px solid #cce0ff;
    border-radius: 5px;
    text-align: center;
}

/* تحسين جدول النتائج */
#resultTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#resultTable thead {
    background-color: #0056b3;
    color: #fff;
}

#resultTable th, #resultTable td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

#resultTable th {
    font-weight: bold;
}

#resultTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#resultTable tr:hover {
    background-color: #f1f1f1;
}

/* تحسين الأزرار */
.icon-button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.icon-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.icon-button i {
    font-size: 16px;
}

/* تحسين نمط الpopup */
#popupDialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

#popupDialog.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#popupDialog h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

#popupDialog p {
    font-size: 14px;
    color: #555;
}

#popupDialog .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ff0000;
    font-size: 18px;
    cursor: pointer;
}

#popupDialog .close-button:hover {
    color: #cc0000;
}

/* تحسين نمط مدخلات المحفظة */
#walletAddressInput {
    width: calc(100% - 22px);
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* تحسين الأزرار داخل الpopup */
#popupSaveButton {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#popupSaveButton:hover {
    background-color: #218838;
}
