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

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: whitesmoke;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #1e293b;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
    text-shadow: none;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.task-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.task-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-form h2 i {
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid black(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    background: #f8f9fa;
}

.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: white;
}

.author-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #f8f9fa;
}

.author-input:focus {
    outline: none;
    border-color: #00d4ff;
    background: white;
}

.submit-btn {
    background: rgb(29, 28, 28);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-section h2 i {
    color: #667eea;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-indicator {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-indicator.processing {
    background: #4ade80;
    color: white;
}

.status-indicator.pending {
    background: #fbbf24;
    color: white;
}

.status-indicator.success {
    background: #10b981;
    color: white;
}

.status-indicator.error {
    background: #ef4444;
    color: white;
}

.result-text {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    display: none;
}

.result-text.show {
    display: block;
}

.result-text.structured-result {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border: 2px solid #667eea;
}

.evaluations-section {
    margin-bottom: 20px;
}

.evaluations-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evaluations-section h3 i {
    color: #667eea;
}

.evaluations-list {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evaluation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.2s;
    animation: slideInLeft 0.3s ease;
}

.evaluation-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.evaluation-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.evaluation-content {
    flex: 1;
    min-width: 0;
}

.evaluation-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.evaluation-text strong {
    color: #667eea;
    font-weight: 600;
}

.evaluation-text .success-text {
    color: #10b981;
    font-weight: 600;
}

.evaluation-text .error-text {
    color: #ef4444;
    font-weight: 600;
}

.evaluation-text .highlight-text {
    color: #667eea;
    font-weight: 500;
    background: #f0f4ff;
    padding: 2px 4px;
    border-radius: 3px;
}

.evaluation-timestamp {
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.structured-output {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-field {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
}

.result-field:hover {
    background: #f0f4ff;
    transform: translateX(4px);
}

.field-label {
    font-weight: 600;
    color: #333;
    min-width: 180px;
    margin-right: 15px;
    flex-shrink: 0;
}

.field-value {
    color: #555;
    flex: 1;
    word-break: break-word;
}

.field-value.empty {
    color: #999;
    font-style: italic;
}

.result-field.note-field {
    border-left-color: #fbbf24;
    background: #fffbf0;
}

.result-field.note-field:hover {
    background: #fff8e1;
}

@media (max-width: 768px) {
    .result-field {
        flex-direction: column;
        gap: 5px;
    }
    
    .field-label {
        min-width: auto;
        margin-right: 0;
    }
}

.examples-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.examples-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.examples-section h2 i {
    color: #667eea;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.example-card {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.example-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.example-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.example-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.example-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.author-search-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-header {
    background:white;
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.author-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.sanction-status {
    display: flex;
    align-items: center;
}

.sanction-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sanction-badge.found {
    background: #ef4444;
    color: white;
}

.sanction-badge.not-found {
    background: #10b981;
    color: white;
}

.search-result-section {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.search-result-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.result-status {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
}

.result-status.found {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.result-status.not-found {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-details .result-field {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.result-details .result-field .field-label {
    min-width: 150px;
    font-weight: 600;
    color: #555;
}

.result-details .result-field .field-value {
    flex: 1;
    color: #333;
    word-break: break-word;
}

.result-details .result-field .field-value a {
    color: #667eea;
    text-decoration: none;
}

.result-details .result-field .field-value a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .task-section,
    .result-section,
    .examples-section {
        padding: 20px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

