* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    width: auto;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.upload-options {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #ddd;
}

.option-btn {
    flex: 1;
    padding: 0.75rem;
    background-color: #f8f9fa;
    color: #333;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.option-btn.active {
    background-color: #3498db;
    color: white;
}

.option-btn:hover:not(.active) {
    background-color: #e9ecef;
}

.upload-form {
    margin-bottom: 1rem;
}

p {
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

select, input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

select:focus, input[type="file"]:focus {
    outline: none;
    border-color: #3498db;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.hidden {
    display: none;
}

.result {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 4px;
}

.result.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.person-info {
    margin-top: 1rem;
}

.person-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.person-info p {
    margin-bottom: 0.25rem;
    text-align: left;
}

.tags {
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 12px;
    font-size: 0.8rem;
}

.multiple-results {
    margin-top: 1rem;
}

.person-result {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.person-result h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.25rem;
}

.error-results {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.error-results h3 {
    color: #721c24;
    margin-bottom: 0.5rem;
}

.error-results ul {
    margin-left: 1rem;
    color: #721c24;
}

small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.25rem;
}