/* Reset some default styles */
body, h1, p {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* General container styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styling */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Styling for the input group and buttons */
.input-group, .button-group {
    margin-bottom: 20px;
    text-align: center;
}

/* Style for input fields */
input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Style for number inputs */
.char-input {
    width: 60px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

/* Style for buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    color: #fff;
    background-color: #007BFF;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* Styling for the token count result */
#tokenCountResult {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Style for character input fields */
.char-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.char-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style for input fields with specific conditions */
.char-input.zero {
    background-color: rgba(255, 0, 0, 0.3); /* Red with transparency */
}

.char-input.non-zero {
    background-color: rgba(0, 255, 0, 0.3); /* Green with transparency */
}

/* styles.css */

/* تنسيق الحاوية */
.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

/* تنسيق الحقول */
.char-input {
    width: 60px;
    font-size: 1.2em;
    text-align: center;
}

.char-group {
    margin: 10px;
}

/* تنسيق اللون الأحمر للحقول التي قيمتها صفر */
.zero {
    background-color: rgba(255, 0, 0, 0.2); /* أحمر شفاف */
}

/* تنسيق اللون الأخضر للحقول التي لا تساوي صفر */
.non-zero {
    background-color: rgba(0, 255, 0, 0.2); /* أخضر شفاف */
}

/* تنسيق الجدول */
#resultsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#resultsTable th, #resultsTable td {
    border: 1px solid #ddd;
    padding: 8px;
}

#resultsTable th {
    background-color: #f2f2f2;
    text-align: left;
}

#resultsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#resultsTable tr:hover {
    background-color: #e2e2e2;
}

/* تنسيق الرسائل */
#statusMessage, #currentToken {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}
