:root {
  --primary: #4361ee;
  --accent: #4895ef;
  --dark: #212529;
  --warning: #f72585;
  --success: #4cc9f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
  padding: 10px;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 600;
  margin-left: 10px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scan-section,
.info-section,
.recent-entries {
  background: white;
  margin: 15px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 10px;
}

#reader {
  width: 100%;
  height: auto;
  min-height: 250px;
  max-height: 400px;
  border: 2px dashed #e0e0e0;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  #reader {
    min-height: 200px;
  }
}

#scan-status {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  color: var(--primary);
  transition: all 0.2s ease;
}

#scan-status.error {
  color: var(--warning);
}

.stat-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
}

.stat-card h3 {
  font-size: 14px;
  color: #6c757d;
}

.stat-card p {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
}

.manual-input {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.manual-input input[type="text"] {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}


@media (max-width: 480px) {
  .manual-input {
    flex-direction: column;
    gap: 5px;
  }
  .manual-input .scan-btn {
    width: 100%;
    margin-top: 5px;
  }
}
.scan-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.table-container {
  max-height: 300px;
  overflow-y: auto;
}

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

.entries-table th,
.entries-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  word-wrap: break-word;
  max-width: 150px;
}

.no-entries {
  text-align: center;
  color: #6c757d;
}

footer {
  text-align: center;
  margin-top: 30px;
  color: #6c757d;
  font-size: 14px;
}

@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
    gap: 30px;
  }
  .scan-section,
  .info-section {
    flex: 1;
  }
}
