
html {
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #c20044 0%, #ff6b9d 100%);
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(194, 0, 68, 0.3);
  padding: 30px;
}

h1 {
  color: #c20044;
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5em;
  font-weight: 700;
}

p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.introduction {
  background: #f8f9fa;
  border-left: 4px solid #c20044;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 0 8px 8px 0;
}

.introduction h3 {
  color: #c20044;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.introduction p {
  text-align: left;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.introduction a {
  color: #c20044;
  text-decoration: none;
  font-weight: 600;
}

.introduction a:hover {
  text-decoration: underline;
}

.credit {
  font-style: italic;
  color: #888;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 15px;
}

.upload-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  border: 2px dashed #c20044;
  border-radius: 8px;
  background: #fdf9fb;
}

#csvFile {
  padding: 10px;
  margin-right: 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background: white;
}

#uploadBtn {
  background: #c20044;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#uploadBtn:hover:not(:disabled) {
  background: #a0003a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(194, 0, 68, 0.4);
}

#uploadBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.process-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2px solid #c20044;
  border-radius: 20px;
  background: white;
  color: #c20044;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.process-btn:hover:not(:disabled) {
  background: #c20044;
  color: white;
  transform: none;
  box-shadow: 0 2px 8px rgba(194, 0, 68, 0.2);
}

.process-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.process-btn:disabled {
  background: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

.column-mapping {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.column-mapping h2 {
  color: #c20044;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.column-preview {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
}

.column-preview h3 {
  color: #c20044;
  margin-bottom: 8px;
  font-size: 1.2em;
}

.column-preview p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.preview-table-container {
  overflow-x: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 600px;
}

.preview-table th {
  background: #f8f9fa;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  white-space: nowrap;
}

.preview-table th:last-child {
  border-right: none;
}

.preview-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  color: #555;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-table td:last-child {
  border-right: none;
}

.preview-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.preview-table tbody tr:hover {
  background: #e3f2fd;
}

.column-mapping p {
  text-align: left;
  margin-bottom: 20px;
  color: #666;
}

.mapping-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.auto-map-btn, .reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid #c20044;
  border-radius: 20px;
  background: white;
  color: #c20044;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auto-map-btn:hover, .reset-btn:hover {
  background: #c20044;
  color: white;
}

.reset-btn {
  border-color: #6c757d;
  color: #6c757d;
}

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

.mapping-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.mapping-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mapping-row label {
  font-weight: 600;
  color: #333;
  min-width: 100px;
  text-align: right;
}

.mapping-row select {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  max-width: 300px;
}

.mapping-row select:focus {
  outline: none;
  border-color: #c20044;
}

.loading {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c20044, #ff6b9d);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin-bottom: 20px;
  text-align: center;
}

.results {
  margin-top: 30px;
}

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

.results h2 {
  color: #c20044;
  margin: 0;
  font-size: 1.8em;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.table-container {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 800px;
}

th {
  background: #c20044;
  color: white;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

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

tbody tr:hover {
  background: #fff3f5;
  transition: background 0.2s ease;
}

.currency-value {
  font-weight: 600;
  color: #c20044;
}

.original-value {
  color: #666;
  font-style: italic;
}

.original-amounts {
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.original-amounts span {
  color: #888;
  font-style: italic;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 10px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  .upload-section {
    padding: 20px;
  }
  
  #csvFile {
    margin-bottom: 15px;
    margin-right: 0;
    width: 100%;
    max-width: 300px;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
  }
  
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 8px 6px;
  }
}
