* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: #f8f9fc;
    padding: 1rem;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 100%;
    width: 100%;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    word-break: break-word;
}

.upload-box {
    background: #f8f9fc;
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.upload-box h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 500;
    word-break: break-word;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.custom-file-upload:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.preview {
    text-align: center;
    margin: 1.5rem 0;
    width: 100%;
    overflow: hidden;
}

.preview img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    object-fit: contain;
    width: 100%;
    height: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    table-layout: fixed;
    word-break: break-word;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
    max-width: 300px;
}

th {
    background: #f8f9fc;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #f8f9fc;
}

.no-data {
    color: #6b7280;
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    word-break: break-word;
}

.download-btn {
    margin-top: 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

.download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}