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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #ee4d2d, #ff7337);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

section {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #ee4d2d;
    margin-bottom: 15px;
    border-bottom: 2px solid #ee4d2d;
    padding-bottom: 10px;
}

.upload-box {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    cursor: pointer;
    flex: 1;
}

button {
    padding: 12px 25px;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

button:hover {
    background: #d43816;
}

.batch-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.batch-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.batch-range {
    color: #666;
    font-size: 0.9em;
}

.batch-count {
    background: #ee4d2d;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.job-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-pending {
    background: #ffc107;
    color: #333;
}

.status-printing {
    background: #17a2b8;
    color: white;
}

.status-completed {
    background: #28a745;
    color: white;
}

.status-failed {
    background: #dc3545;
    color: white;
}

#uploadStatus {
    margin-top: 15px;
    padding: 15px;
    border-radius: 5px;
}

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

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

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.85em;
}

.preview-table th,
.preview-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.preview-table th {
    background: #f5f5f5;
}

.manual-print {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}
