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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #9AB156 0%, #596A3D 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

#fileInput {
    display: none;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    border: 2px dashed #AB3437;
    border-radius: 5px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.file-input-wrapper.dragover {
    border-color: #7FB069;
    background-color: #f5faf2;
    box-shadow: 0 0 10px rgba(127, 176, 105, 0.3);
}

.file-input-label {
    display: block;
    padding: 12px 20px;
    background: #AB3437;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s;
    pointer-events: auto;
}

.file-input-label:hover {
    background: #8b2a2c;
}

.file-name {
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    color: #666;
    text-align: center;
    min-height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name.empty {
    justify-content: center;
}

#removeFileBtn {
    background: #dc3545;
    color: white;
    padding: 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-size: 10px;
    transition: background 0.3s;
    display: none;
    line-height: 1;
    min-width: auto;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

#removeFileBtn:hover {
    background: #c82333;
}

button {
    background: #7FB069;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s;
    margin-top: 10px;
}

button:hover {
    background: #6b9155;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#dataPreview {
    margin-top: 30px;
    display: none;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #D97E3C;
    color: white;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: none;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 20px;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: #AB3437;
}

.drop-zone-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.drop-zone-or {
    font-size: 14px;
    color: #999;
    margin: 10px 0;
}
