body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.converter-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.upload-button {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #2980b9;
}

#pdf-upload {
    display: none;
}

#file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-container {
    margin-top: 20px;
}

.text-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #27ae60;
}

#copy-text {
    background-color: #3498db;
}

#copy-text:hover {
    background-color: #2980b9;
}

#extracted-text {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    font-family: monospace;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .converter-container {
        padding: 20px;
    }
    
    .text-actions {
        flex-direction: column;
    }
}