body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.upload-container {
    text-align: center;
    margin: 30px 0;
}

#pdfInput {
    display: none;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-btn:hover {
    background: #2980b9;
}

.icon {
    margin-right: 10px;
    font-size: 20px;
}

#fileName {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.option {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: 500;
}

select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
}

#convertBtn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#convertBtn:hover {
    background: #27ae60;
}

#convertBtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#previewSection {
    margin-top: 30px;
}

#tablePreview {
    max-height: 300px;
    overflow: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

.status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.hidden {
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}