/* General Body & Font Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f6f8fa;
    color: #24292e;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

/* Centered Containers */
header, main {
    max-width: 700px;
    margin: 20px auto;
    padding: 2em;
    background: #ffffff;
    border: 1px solid #d1d5da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(27,31,35,0.05);
}

header {
    text-align: center;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 1.5em;
}

h1 {
    color: #0366d6;
    margin-top: 0;
}

/* Input Form */
.input-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#usernameInput {
    flex-grow: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    transition: box-shadow 0.2s;
}

#usernameInput:focus {
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.3);
    outline: none;
}

#analyzeBtn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background-color: #2ea44f;
    color: white;
    border: 1px solid rgba(27,31,35,0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#analyzeBtn:hover {
    background-color: #2c974b;
}

/* Results & Report Styling */
#report {
    text-align: left;
    margin-top: 20px;
}

#report h3 {
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 0.3em;
    margin-top: 1.5em;
}

#report ul {
    list-style-type: disc;
    padding-left: 20px;
}

#report code {
    background-color: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.error {
    color: #cb2431;
    background-color: #ffeef0;
    padding: 1em;
    border-radius: 6px;
    border: 1px solid #ffc1c8;
}

/* Loader Animation */
.hidden {
    display: none;
}

#loader {
    margin: 40px auto;
    border: 6px solid #eaf0f6;
    border-top: 6px solid #0366d6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Styling for the container holding the action buttons */
#actionsContainer {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 15px;
}

/* Common styling for action buttons */
#actionsContainer button {
    background-color: #f6f8fa;
    color: #24292e;
    border: 1px solid rgba(27,31,35,0.15);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Hover effect for action buttons */
#actionsContainer button:hover {
    background-color: #e1e4e8;
    border-color: rgba(27,31,35,0.2);
}
