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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f0e0;
    color: #333;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    color: #8b772a;
    letter-spacing: 2px;
}

.subtitle {
    color: #888;
    margin-top: 4px;
    font-size: 0.95rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.1rem;
    color: #8b772a;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0ead2;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #c8b87a;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf8f0;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #8b772a;
    background: #f5f0e0;
}

.dropzone-content svg {
    color: #8b772a;
    margin-bottom: 10px;
}

.dropzone p {
    color: #666;
    margin: 4px 0;
}

.dropzone .hint {
    font-size: 0.85rem;
    color: #999;
}

/* File info */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0ead2;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.9rem;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #999;
    cursor: pointer;
    padding: 0 6px;
}

.btn-remove:hover {
    color: #c0392b;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #8b772a;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #6d5e1f;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #8b772a;
    border: 2px solid #8b772a;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 16px;
    margin-left: 10px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f5f0e0;
}

.btn-small {
    display: inline-block;
    background: #8b772a;
    color: #fff;
    padding: 4px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn-small:hover {
    background: #6d5e1f;
}

.btn-download {
    background: #666;
    margin-left: 4px;
    padding: 4px 10px;
}

.btn-download:hover {
    background: #444;
}

/* Progress */
.progress-bar {
    background: #f0ead2;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: #8b772a;
    border-radius: 10px;
    width: 0;
    transition: width 0.4s ease;
}

#progressText {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Results */
.result-summary {
    text-align: center;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    margin-bottom: 16px;
}

.result-actions {
    text-align: center;
    margin-bottom: 20px;
}

.error-list {
    background: #fce4ec;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #c0392b;
    font-size: 0.85rem;
}

.error-list h3 {
    margin-bottom: 6px;
}

.error-list ul {
    padding-left: 20px;
}

/* Table */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.invoice-table th {
    background: #8b772a;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
}

.invoice-table th:first-child {
    border-radius: 6px 0 0 0;
}

.invoice-table th:last-child {
    border-radius: 0 6px 0 0;
}

.invoice-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0ead2;
}

.invoice-table tr:hover td {
    background: #faf8f0;
}

.text-right {
    text-align: right;
}
