@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* --- Body and Layout --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    background-image: linear-gradient(180deg, #1a1a2e 0%, #162447 100%);
    color: #e0e0e0;
    display: flex;
    flex-direction: column; /* Allow footer to sit below container */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: #1f2a40;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid #33415c;
    margin-bottom: 2rem; /* Space between container and footer */
}

h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}

/* --- Search Box --- */
.search-box {
    display: flex;
    margin-bottom: 30px;
}

#characterInput {
    flex-grow: 1;
    border: 1px solid #33415c;
    background-color: #162447;
    color: #fff;
    padding: 15px;
    border-radius: 10px 0 0 10px;
    font-size: 16px;
    transition: background-color 0.3s;
}

#characterInput:focus {
    background-color: #1f4068;
}

#characterInput::placeholder {
    color: #e0e0e0a6;
}

#submitBtn {
    border: none;
    background-color: #1b98e0;
    color: white;
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#submitBtn:hover {
    background-color: #136a9e;
}

/* --- Dynamic Content Sections --- */
.hidden {
    display: none !important;
}

#loading {
    text-align: center;
    font-size: 18px;
    padding: 20px;
    color: #7f7fd5;
    font-weight: 500;
}

#results h2 {
    font-size: 3rem;
    margin: 0;
    color: #fff;
    text-align: center;
}

.human-count {
    font-size: 2rem;
    color: #7f7fd5;
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
}

#results h3 {
    color: #fff;
    border-bottom: 2px solid #1b98e0;
    padding-bottom: 5px;
    margin-top: 30px;
}

#analysis {
    line-height: 1.6;
    color: #e0e0e0;
}

.assessment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.card {
    background-color: #1f4068;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #1b98e0;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    opacity: 0.9;
}

.card p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

#error {
    text-align: center;
    background-color: #ff475744;
    color: #ff6b81;
    padding: 15px;
    border-radius: 10px;
}

/* --- Footer --- */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff80;
    padding: 10px;
}
*:focus {
  outline: none !important;
  box-shadow: none !important;
}
