/* --- General Styles & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --background-color: #1a1a2e; /* Black-Purple */
    --primary-color: #9c88ff;    /* Light Purple */
    --secondary-color: #f0e8ff;  /* Lightest Purple/White */
    --text-color: #ffffff;
    --success-gtd-color: #2ecc71;  /* Green for GTD */
    --success-fcfs-color: #f1c40f; /* Yellow for FCFS */
    --error-color: #e74c3c;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column; /* Allow footer to be at the bottom */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Main Checker Container --- */
.checker-container {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--primary-color);
}

.header h1 {
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.header p {
    color: var(--secondary-color);
    margin: 0 0 30px 0;
    font-size: 1.1rem;
}

/* --- Input & Button --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#walletAddress {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background-color: #2a2a45;
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#walletAddress::placeholder {
    color: #b3b3e0;
}

#walletAddress:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

#checkBtn {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#checkBtn:hover {
    background-color: #7b68ee; /* Darker shade of light purple */
    transform: translateY(-2px);
}

#checkBtn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* --- Result Message --- */
#result {
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 50px; /* Prevents layout shift */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6; /* Improve readability for multi-line messages */
}

.gtd {
    color: var(--success-gtd-color);
}

.fcfs {
    color: var(--success-fcfs-color);
}

.error {
    color: var(--error-color);
}

.error a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.error a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
.footer {
    margin-top: 30px;
    color: var(--secondary-color);
    font-size: 1rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}