 	/* Base Styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#original-list-container {
    margin: 20px 0;
}

#history-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.pass {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.pass .pass-title {
    font-weight: bold;
    margin-right: 10px;
}

.number {
    padding: 10px 20px;
    margin: 5px;
    background-color: #ddd;
    border-radius: 5px;
}

.number.highlight {
    background-color: #ffeb3b; /* Yellow for highlighting */
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { box-shadow: 0 0 0 rgba(255, 235, 59, 0.4); }
    to { box-shadow: 0 0 10px rgba(255, 235, 59, 0.7); }
}

.number.green {
    background-color: #a5d6a7; /* Green for correct */
}

.number.red {
    background-color: #ef9a9a; /* Red for swap */
}

#button-container {
    margin-top: 20px;
}

#swap-button, #keep-button, #check-button, .action-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#swap-button {
    background-color: #ef9a9a; /* Red for swap */
}

#keep-button {
    background-color: #a5d6a7; /* Green for keep */
}

#check-button, .action-button {
    background-color: #4caf50; /* Green for check */
    color: white;
}

#swap-button:hover, #keep-button:hover, #check-button:hover, .action-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

#swap-button:disabled, #keep-button:disabled, #check-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#comparison-message {
    margin-top: 10px;
    font-weight: bold;
}

/* Enhanced Result Message Styles */
#result-message {
    margin: 20px 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.success-message, .error-message {
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result-icon {
    font-size: 24px;
    margin-right: 10px;
}

.animate-feedback {
    animation: scale-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.last-pass {
    background-color: #f0f0f0; /* Light gray background for the last pass */
    padding: 10px;
    border-radius: 5px;
}

/* Dropdown and Reset Button Styles */
#list-size, #reset-button {
    padding: 8px 12px;
    font-size: 16px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#reset-button {
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#reset-button:hover {
    background-color: #3d9140;
    transform: translateY(-2px);
}

#pass-count {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    padding: 5px 10px;
    background-color: #4caf50;
    color: white;
    border-radius: 5px;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
        width: 95%;
    }
    
    #button-container button, .action-button {
        padding: 8px 15px;
        font-size: 14px;
        margin-right: 5px;
        width: auto;
        display: inline-block;
    }
    
    .success-message, .error-message {
        font-size: 16px;
        padding: 10px;
    }
}