body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #222;
    text-align: center;
    margin: 0 0 20px;
    padding: 20px 0;
    font-size: 2.2rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.upload-section {
    margin-bottom: 0;
}

.image-preview {
    margin-top: 10px;
    max-width: 300px;
    max-height: 300px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.setting {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.setting label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    color: #444;
}

.setting select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.result-section {
    margin: 0 0 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

.verification-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

.verification-badge.verified {
    background-color: #28a745;
    color: white;
}

.verification-badge.not-verified {
    background-color: #dc3545;
    color: white;
}

.result-details {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    text-align: left;
}

.result-metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.result-metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: #666;
    font-weight: 500;
}

.metric-value {
    color: #333;
    font-weight: 600;
}

.error-message {
    background-color: #ffe6e6;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffcccc;
}

.error-message h2 {
    color: #dc3545;
    margin-top: 0;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

h2 {
    color: #333;
    margin-bottom: 15px;
}

p {
    margin: 5px 0;
    color: #555;
}
