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

html,
body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  background: #f5f5f5;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

.upload-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.upload-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
}

.form-group input[type='text'],
.form-group input[type='number'],
.form-group input[type='file'] {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.checkbox-group {
  justify-content: center;
}

.help-text {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.file-list {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  max-height: 200px;
  overflow: auto;
  background: #fafafa;
}

.file-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.error-box {
  display: none;
  color: #b42318;
  background: #fee4e2;
  border: 1px solid #fdd3d0;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: pre-line;
}

.error-box.show {
  display: block;
}

.result-box {
  display: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
}

.result-box.success {
  display: block;
  background: #e6f4ea;
  color: #1e7d34;
  border: 1px solid #c7e6cf;
}

.result-box.error {
  display: block;
  background: #fee4e2;
  color: #b42318;
  border: 1px solid #fdd3d0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background: #4dabf7;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

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

.auth-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

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

.auth-modal-header h2 {
  font-size: 24px;
  color: #667eea;
  margin-bottom: 10px;
}

.auth-modal-header p {
  font-size: 13px;
  color: #666;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-error {
  color: #b42318;
  font-size: 12px;
  padding: 8px 12px;
  background: #fee4e2;
  border-radius: 4px;
  display: none;
}

.auth-error.show {
  display: block;
}

.auth-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
