.error {
    color: red;
    margin: 10px 0;
    display: none;
}

.loading {
    margin: 10px 0;
    color: #ccc;
    font-style: italic;
    line-height: 1.4;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.search-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.input-type-selector {
    min-width: 120px;
    width: auto;
    padding: 6px 8px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    border-radius: 4px;
    height: 38px;
    box-sizing: border-box;
    align-self: center;
}

#query-input {
    flex-grow: 1;
    min-width: 250px;
    min-height: 38px;
    max-height: 38px;
    padding: 10px;
    box-sizing: border-box;
    resize: none;
    overflow-y: auto;
}

#lookup-button {
    align-self: flex-start;
    width: auto;
    max-width: 200px;
    padding: 8px 16px;
}

.result-container {
    margin-top: 20px;
    background-color: #333;
    border-radius: 8px;
    padding: 15px;
}

.result-data {
    padding: 15px;
    background-color: #222;
    border-radius: 4px;
}

.user-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #444;
}

.user-details {
    flex-grow: 1;
}

.user-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.user-details a {
    color: #58a6ff;
    text-decoration: none;
}

.user-details a:hover {
    text-decoration: underline;
}

.email-list {
    margin-top: 5px;
    padding-left: 20px;
}

/* Adjust responsive behavior */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-info {
        flex-direction: column;
        align-items: center;
    }
    
    .user-details {
        width: 100%;
        text-align: center;
    }
    
    #lookup-button {
        max-width: none;
        align-self: center;
    }
}

/* Improve accessibility and SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Add print styles for better printing */
@media print {
    .search-form button {
        display: none;
    }
    
    .tool-description {
        page-break-inside: avoid;
    }
}

.public-keys {
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid #58a6ff;
}

.public-keys p {
    margin: 8px 0;
}

.email-container {
    margin-top: 15px;
} 