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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
  margin-bottom: 5px;
}

.subtitle {
  color: #666;
  margin-bottom: 30px;
}

.upload-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-label:hover {
  border-color: #4285f4;
  background: #f8f9ff;
}

.upload-label.drag-over {
  border-color: #4285f4;
  background: #e8f0fe;
  border-style: solid;
}

.upload-icon {
  font-size: 48px;
  color: #4285f4;
  margin-bottom: 10px;
}

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

button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background: #4285f4;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover:not(:disabled) {
  background: #3367d6;
}

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

.preview {
  margin: 20px 0;
  text-align: center;
}

.preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status {
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  text-align: center;
  font-weight: 500;
}

.status.processing {
  background: #fff3cd;
  color: #856404;
}

.status.success {
  background: #d4edda;
  color: #155724;
}

.result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.result.needs-review {
  border: 2px solid #dc3545;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.review-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 20px;
}

.review-warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #856404;
}

.review-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

.review-warning ul {
  margin: 0;
  padding-left: 28px;
  color: #856404;
  font-size: 14px;
}

.review-warning li {
  margin: 4px 0;
}

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

.result-header h2 {
  font-size: 18px;
  margin: 0;
}

.edit-buttons {
  display: flex;
  gap: 8px;
}

.btn-edit {
  padding: 8px 16px;
  font-size: 14px;
  background: #6c757d;
}

.btn-edit:hover:not(:disabled) {
  background: #5a6268;
}

.btn-save {
  padding: 8px 16px;
  font-size: 14px;
  background: #28a745;
}

.btn-save:hover:not(:disabled) {
  background: #218838;
}

.btn-cancel {
  padding: 8px 16px;
  font-size: 14px;
  background: #dc3545;
}

.btn-cancel:hover:not(:disabled) {
  background: #c82333;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.result-item {
  display: flex;
  flex-direction: column;
}

.result-item label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.result-item span {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.field-input {
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

.field-input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

#lineItemsSection {
  margin-top: 20px;
}

#lineItemsSection h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
}

td {
  font-size: 14px;
}

td input {
  font-size: 14px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
}

td input:focus {
  outline: none;
  border-color: #4285f4;
}

.line-item-desc {
  min-width: 150px;
}

.include-col {
  width: 60px;
  text-align: center;
}

.include-col input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.excluded-item {
  opacity: 0.5;
  background: #f8f8f8;
}

.excluded-item td {
  text-decoration: line-through;
  color: #999;
}

.excluded-item .include-col td,
.excluded-item td:first-child {
  text-decoration: none;
}

.line-items-hint {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  font-style: italic;
}

/* Expensed Amount Section */
.expensed-section {
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-left: 4px solid #4caf50;
  border-radius: 6px;
}

.expensed-section h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #2e7d32;
}

.expensed-hint {
  font-size: 13px;
  color: #558b2f;
  margin-bottom: 15px;
  font-style: italic;
}

.expensed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.expensed-item {
  display: flex;
  flex-direction: column;
}

.expensed-item label {
  font-size: 11px;
  color: #558b2f;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.expensed-item span {
  font-size: 18px;
  color: #2e7d32;
  font-weight: 600;
}

.expensed-item input {
  font-size: 16px;
  padding: 6px 8px;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  width: 100%;
  background: white;
}

.expensed-item input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.expensed-total {
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 4px;
  margin: -10px;
  margin-left: 0;
}

.expensed-total span {
  font-size: 20px;
}

.line-item-qty {
  width: 60px !important;
}

.line-item-amount {
  width: 80px !important;
}

.action-col {
  width: 50px;
  text-align: center;
}

.btn-delete-item {
  padding: 4px 10px;
  font-size: 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-delete-item:hover {
  background: #c82333;
}

.btn-add-item {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 14px;
  background: #28a745;
}

.btn-add-item:hover {
  background: #218838;
}

.error {
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  background: #f8d7da;
  color: #721c24;
}

.hidden {
  display: none !important;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  gap: 5px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.top-nav a {
  padding: 8px 16px;
  text-decoration: none;
  color: #4285f4;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}

.top-nav a:hover:not(.active) {
  background: #f0f4ff;
}

.top-nav a.active {
  background: #e8e8e8;
  color: #888;
  cursor: default;
}

.nav-version {
  margin-left: auto;
  font-size: 12px;
  color: #999;
  align-self: center;
}

/* Navigation */
.back-link {
  display: inline-block;
  color: #4285f4;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Main Menu */
.main-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.menu-item:hover:not(.disabled) {
  border-color: #4285f4;
  background: #f8f9ff;
}

.menu-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #4285f4;
  color: white;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
}

.menu-item.disabled .menu-icon {
  background: #ccc;
}

.menu-content h2 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #333;
}

.menu-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.version-info {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* Accounts Page */
.accounts-section {
  margin-top: 20px;
}

.add-account-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.add-account-form input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.add-account-form input:focus {
  outline: none;
  border-color: #4285f4;
}

.add-account-form button {
  padding: 12px 20px;
  white-space: nowrap;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.account-name {
  font-size: 16px;
  color: #333;
}

.account-actions {
  display: flex;
  gap: 8px;
}

.account-actions button {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-categories {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: #17a2b8;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-categories:hover {
  background: #138496;
}

.btn-rename {
  background: #6c757d;
}

.btn-rename:hover {
  background: #5a6268;
}

.btn-delete {
  background: #dc3545;
}

.btn-delete:hover {
  background: #c82333;
}

.rename-input {
  font-size: 16px;
  padding: 4px 8px;
  border: 1px solid #4285f4;
  border-radius: 4px;
  width: 200px;
}

.empty-message {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.loading {
  color: #666;
  text-align: center;
  padding: 20px;
}

/* Categories Page */
.categories-section {
  margin-top: 20px;
}

.add-category-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.add-category-form input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.add-category-form input:focus {
  outline: none;
  border-color: #4285f4;
}

.add-category-form button {
  padding: 12px 20px;
  white-space: nowrap;
}

.category-actions-bar {
  margin-bottom: 20px;
}

.btn-reset {
  background: #6c757d;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-reset:hover:not(:disabled) {
  background: #5a6268;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.category-name {
  font-size: 15px;
  color: #333;
}

.category-actions {
  display: flex;
  gap: 8px;
}

.category-actions button {
  padding: 5px 10px;
  font-size: 12px;
}

/* Store Button */
.store-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-store {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  background: #28a745;
}

.btn-store:hover:not(:disabled) {
  background: #218838;
}

/* Confirm Page */
.confirm-content {
  margin-top: 20px;
}

.receipt-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.receipt-summary h2 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-item label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.summary-item span {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.assignment-section {
  margin-bottom: 25px;
}

.assignment-section h2 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
}

.assignment-field {
  margin-bottom: 15px;
}

.assignment-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.assignment-field select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.assignment-field select:focus {
  outline: none;
  border-color: #4285f4;
}

.confirm-actions {
  margin-top: 20px;
}

.btn-finish {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  background: #28a745;
}

.btn-finish:hover:not(:disabled) {
  background: #218838;
}

/* Receipts List Page */
.receipts-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-group {
  flex: 1;
}

.filter-group label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: #4285f4;
}

.receipts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.receipt-card:hover {
  background: #e9ecef;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.receipt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.receipt-vendor {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.receipt-total {
  font-size: 16px;
  font-weight: 600;
  color: #28a745;
}

.receipt-totals {
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-total-original {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.partial-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  background: #e8f5e9;
  color: #2e7d32;
}

.receipt-card-details {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.receipt-date {
  color: #333;
}

.receipt-account {
  color: #4285f4;
}

.receipt-category {
  color: #6c757d;
}

/* Pending page */
.pending-card {
  cursor: pointer;
  position: relative;
}

.pending-uploaded {
  color: #6c757d;
  font-style: italic;
}

.pending-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.pending-badge.review {
  background: #fff3cd;
  color: #856404;
}

.btn-delete-pending {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background: #dc3545;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.pending-card:hover .btn-delete-pending {
  opacity: 1;
}

.btn-delete-pending:hover {
  background: #c82333;
}

/* Duplicate warning */
.duplicate-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.duplicate-warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #856404;
}

.duplicate-warning p {
  color: #856404;
  font-size: 14px;
  margin: 4px 0;
}

.duplicate-card {
  border-left: 4px solid #ff9800;
}

.pending-badge.duplicate {
  background: #ffe0b2;
  color: #e65100;
}

/* Reports Page */
.report-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.report-field {
  display: flex;
  flex-direction: column;
}

.report-field label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.report-field select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.report-field select:focus {
  outline: none;
  border-color: #4285f4;
}

.report-field select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.btn-generate {
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 16px;
}

.report-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #dc3545;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #856404;
}

.warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

.report-warning p {
  color: #856404;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-review-pending {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.btn-review-pending:hover {
  background: #5a6268;
}

.report-preview {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.report-preview h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.preview-header {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.preview-header span {
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.report-table th,
.report-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.report-table th {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  background: #f8f9fa;
}

.report-table td {
  font-size: 14px;
}

.report-table th:last-child,
.report-table td:last-child {
  text-align: right;
}

.report-table th:nth-child(2),
.report-table td:nth-child(2) {
  text-align: center;
}

.report-total-row {
  background: #f8f9fa;
  font-weight: 600;
}

.report-total-row td {
  border-top: 2px solid #ddd;
}

.report-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-csv {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  background: #28a745;
}

.btn-csv:hover:not(:disabled) {
  background: #218838;
}

.btn-pdf {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  background: #dc3545;
}

.btn-pdf:hover:not(:disabled) {
  background: #c82333;
}

/* Receipt card action buttons */
.receipt-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dee2e6;
}

.btn-edit-receipt,
.btn-delete-receipt {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-edit-receipt {
  background: #6c757d;
  color: white;
}

.btn-edit-receipt:hover {
  background: #5a6268;
}

.btn-delete-receipt {
  background: #dc3545;
  color: white;
}

.btn-delete-receipt:hover {
  background: #c82333;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #333;
}

.modal-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.modal-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.modal-details .detail-row:last-child {
  border-bottom: none;
}

.modal-details .detail-label {
  font-size: 13px;
  color: #666;
}

.modal-details .detail-value {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.modal-warning {
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #c82333;
}

/* Multi-file Upload */
.upload-hint {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.upload-text {
  font-size: 16px;
  color: #333;
}

/* File Queue */
.file-queue {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.file-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.file-queue-header span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.btn-clear-queue {
  padding: 6px 12px;
  font-size: 12px;
  background: #6c757d;
}

.btn-clear-queue:hover {
  background: #5a6268;
}

.file-queue-list {
  max-height: 300px;
  overflow-y: auto;
}

.file-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.file-queue-item:last-child {
  border-bottom: none;
}

.file-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: #f0f0f0;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 12px;
  color: #999;
}

.btn-remove-file {
  padding: 4px 10px;
  font-size: 12px;
  background: #dc3545;
}

.btn-remove-file:hover {
  background: #c82333;
}

/* Upload Progress */
.upload-progress {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4285f4;
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0;
}

.progress-details {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

/* Upload Summary */
.upload-summary {
  margin-top: 20px;
  padding: 30px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  text-align: center;
}

.summary-icon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 15px;
}

.upload-summary h3 {
  font-size: 20px;
  color: #155724;
  margin-bottom: 8px;
}

.upload-summary p {
  font-size: 14px;
  color: #155724;
  margin-bottom: 20px;
}

.summary-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.summary-actions .btn-secondary {
  padding: 10px 20px;
  font-size: 14px;
}

.summary-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: #28a745;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.summary-actions .btn-primary:hover {
  background: #218838;
}

/* Account link in nav */
.nav-account {
  margin-left: auto;
}

/* Wide container for side-by-side layout */
.container-wide {
  max-width: 1200px;
}

/* Side-by-side layout for confirm page */
.confirm-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Image Viewer Panel */
.image-viewer-panel {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.image-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #e9ecef;
  border-bottom: 1px solid #ddd;
}

.image-viewer-header span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.image-viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-zoom {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  background: #6c757d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-zoom:hover {
  background: #5a6268;
}

.btn-zoom-fit,
.btn-zoom-reset {
  padding: 4px 10px;
  font-size: 12px;
  background: #6c757d;
  border-radius: 4px;
}

.btn-zoom-fit:hover,
.btn-zoom-reset:hover {
  background: #5a6268;
}

#zoomLevel {
  font-size: 12px;
  color: #666;
  min-width: 40px;
  text-align: center;
}

.image-container {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: grab;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper {
  transform-origin: 0 0;
  will-change: transform;
}

.image-wrapper img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.image-loading,
.image-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #666;
}

.image-error {
  color: #dc3545;
}

.image-viewer-hint {
  padding: 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
}

/* Form Panel */
.confirm-form-panel {
  flex: 1;
  min-width: 0;
  max-width: 500px;
}

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
  .container-wide {
    max-width: 100%;
  }

  .confirm-layout {
    flex-direction: column;
  }

  .image-viewer-panel {
    position: static;
    width: 100%;
  }

  .image-container {
    height: 300px;
  }

  .confirm-form-panel {
    max-width: 100%;
  }
}
