body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F0F2F5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    flex: 1;
}

#tokenInput {
    width: 100%;
    height: 120px;
    margin: 20px 0;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.warning {
    color: #dc3545;
    margin: 10px 0;
}

.token-display {
    justify-content: center;
    align-items: center;
    min-height: 60px;
    margin: 20px 0;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: none;
    box-sizing: border-box;
}

.token-number-box {
    width: calc(100% - 20px);
    font-size: 18px;
    letter-spacing: 2px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0 auto;
    box-sizing: border-box;
}

.navigation {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.nav-btn, .start-btn {
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.nav-btn:hover, .nav-btn:focus,
.start-btn:hover, .start-btn:focus {
    background-color: #0056b3;
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.nav-btn i, .start-btn i {
    margin: 0 5px;
}

.new-token-container .nav-btn {
    background-color: #28a745;
    color: white;
    font-size: 1em;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.new-token-container .nav-btn:hover {
    background-color: #218838;
}

.instructions {
    text-align: left;
    background-color: #e7f3fe;
    border-left: 6px solid #ff0000;
    border-right: 6px solid  #ff0000;
    margin: 30px 0;
    padding: 15px 20px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 18px;
}

.instructions p {
    margin: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.instructions ul {
    padding-left: 20px;
    margin: 0;
}

.instructions li {
    margin-bottom: 5px;
}

.token-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #007bff;
    text-align: center;
}

th, td {
    padding: 8px;
}

tr.done-token {
    background-color: #d4edda;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr.current-token {
    background-color: #add8e6;
}

footer {
    background-color: #f8f9fa;
    color: #333;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    border-top: 1px solid #e7e7e7;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-icons {
    display: flex;
    gap: 10px;
}

.footer-icons a {
    color: #007bff;
    text-decoration: none;
}

.footer-icons a:hover {
    text-decoration: underline;
}

.footer-content i {
    font-size: 24px;
}

.footer-contribute {
    padding-top: 10px;
}

.footer-contribute a {
    color: #007bff;
    text-decoration: none;
}

.footer-contribute a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    #tokenInput {
        height: 100px;
        font-size: 15px;
    }

    .nav-btn, .start-btn {
        padding: 9px 16px;
        font-size: 16px;
    }

    .instructions {
        font-size: 13px;
        padding: 10px 15px;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.token-display {
    animation: fadeIn 0.5s ease-out;
}
